On Thursday 13 February 2003 16:15, Craig Iffelberg wrote: > 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' > make[2]: *** [liblavrec.lo] Error 1 > make[2]: Leaving directory `/usr/local/mjpegtools-1.6.1/lavtools' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/mjpegtools-1.6.1' > make: *** [all] Error 2 > > I believe there to be an error in the kernel headers on Mandrake 9.0. Here's a copy of a post that I made to this list in Oct where I hacked my way around this problem. This was with 1.6.0 and not 1.6.1, but it seems like you got stuck when compiling lavrec.c just as I did back then.
Narfi. ---------- Forwarded Message ---------- Subject: [Mjpeg-users] compiling on Mandrake 9.0 -- the 'struct statfs' problem Date: Thu, 10 Oct 2002 22:34:29 -0500 (CDT) To: [EMAIL PROTECTED] Hi, everybody, I finally got mjpegtools to compile on my Mandrake 9.0 system. As has been noted before, compilation fails because struct statfs is multiply defined. First, the solution, it's a hack, but I added the line #define _I386_STATFS_H to the top of the following files in lavtools/: liblavrec.c, liblavplay.c and testrec.c The reason is that all these files need both linux/videodev.h and sys/statfs.h, however: /usr/include/sys/statfs.h includes /usr/include/bits/statfs.h /usr/include/linux/videodev.h includes /usr/include/linux/fs.h which includes /usr/include/linux/vfs.h which includes /usr/include/asm/statfs.h and bits/statfs.h and asm/statfs.h both define struct statfs. The #define results in asm/statfs.h not being read. As I said, it's a hack, but at least I seem to have working mjpegtools on my mdk 9.0 system! Narfi. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
