Hi! > So has 1.6.0 meanwhile has been released (and I also found > a rc2 on my system from april, but in contrib is beta2, > strange too ;) it would be good to update. The version > from contrib does not build because of problems with the > changes of /usr/src/linux/videodev.h.
I found another thread for this subject:
<cite>
* From: Guillaume Rousse
* Subject: Re: [Cooker] FYI: Getting mjpegtools built with avifile
(divx/lav2divxt) for >=Mandrake 8.2
* Date: Mon, 3 Jun 2002 07:03:50 -0700 (PDT)
Le Lundi 3 Juin 2002 14:24, Geoffrey Lee a %/1iso8859-15écrit :
> > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
> > -I/usr/X11R6/include -mcpu=i586 -march=i586 -O3 -fomit-frame-pointer
> > -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -Wall
> > -Wunused -c liblavrec.c -MT liblavrec.lo -MD -MP -MF .deps/liblavrec.TPlo
> > -fPIC -DPIC -o liblavrec.o
> > cc1: warning: changing search order for system directory
> > "/usr/local/include" cc1: warning: as it has already been specified as
> > a non-system directory In file included from /usr/include/linux/vfs.h:4,
> > from /usr/include/linux/fs.h:13,
> > from /usr/include/linux/videodev.h:6,
> > from liblavrec.c:53:
> > /usr/include/asm/statfs.h:12: redefinition of `struct statfs'
>
> This is because glibc has a statfs and statfs.h apparently also has a
> statfs.
>
>
> There is no #ifdef __KERNEL__ wrapped around the kernel one, so it fails.
Thanks for the explanation, but i still have no clue how to fix the build
problem :-)
</cite>
To solve the problem you have to patch the include/asm/statfs.h
file so it is only used by the kernel. You need to insert
the following line before the statfs structure:
#ifdef __KERNEL__
and the following line after the structure:
#endif /* __KERNEL */
Please apply this to the kernel-headers :-)
Regards,
Reinhard Katzmann
--
Software-Engineer, Developer for Embedded Devices
Project: Pertergrin, a role playing game system
GnuPG Public Key available on request
msg70548/pgp00000.pgp
Description: PGP signature
