FYI: v4l-linuxulator support in FreeBSD-current now

Matthias Apitz guru at unixarea.de
Sat Jan 9 09:08:01 UTC 2010


El día Saturday, January 09, 2010 a las 08:12:57AM +0100, Matthias Apitz escribió:

> El día Friday, January 08, 2010 a las 11:36:58AM -0500, J.R. Oldroyd escribió:
> 
> > On Fri, 8 Jan 2010 17:03:05 +0100, Matthias Apitz <guru at unixarea.de> wrote:
> > >
> > > Thanks,
> > > 
> > > but compiling the kernel fails with:
> > > 
> > > ...
> > > In file included from
> > > /usr/src/sys/modules/linux/../../compat/linux/linux_ioctl.
> > > c:66:
> > > @/net/vnet.h:47: error: field '_rtstat' has incomplete type
> > > @/net/vnet.h:48: error: 'RT_MAXFIBS' undeclared here (not in a function)
> > > @/net/vnet.h:64: error: expected ')' before 'sizeof'
> > > 
> > > the kernel sources are a CVS checkout of 8-CURRENT from May, 28 2009.
> > > 
> > > Any idea?
> > > 
> > > 	matthias
> > > 
> > 
> > There is no reference to _rtstat or RT_MAXFIBS in net/vnet.h
> > on my system.  Lines 47/48 in my vnet.h are part of a comment.
> 
> mine reads:
> 
>  * $FreeBSD: src/sys/net/vnet.h,v 1.10 2009/05/23 21:43:44 zec Exp $
>  */
> 
...

I digged into this and the problem is that the original compat/linux/linux_ioctl.c
includes from net/*.h

...
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/route.h>
#include <net/vnet.h>

while the V4L compat/linux/linux_ioctl.c does only include

#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <net/vnet.h>

and exactly net/route.h contains the definition of RT_MAXFIBS required by net/vnet.h;

will see if I can fix this...

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu


More information about the freebsd-emulation mailing list