Okay, I've come across this problem two more times since my first two
emails went unnoticed.  There are some problems with the current headers
at least.  I want to help fix them.

First is the struct statfs problem.  We are the only distro with this
problem.  We have two different definitions of struct statfs.  Any
compilation that includes both definitions fails.  Mjpegtools is one and
dvr is another.  I understand what the problem is, but I'm not sure how
to fix it.  Can someone help me...
/usr/include/asm/statfs.h:12: redefinition of `struct statfs'
/usr/include/bits/statfs.h:26: previous definition of `struct statfs'

Secondly, some video4linux headers give this "exist but cannot be
compiled" error.
checking linux/videodev2.h presence... yes
configure: WARNING: linux/videodev2.h: present but cannot be compiled
configure: WARNING: linux/videodev2.h: check for missing prerequisite
headers?
configure: WARNING: linux/videodev2.h: proceeding with the
preprocessor's result
checking for linux/videodev2.h... yes

This happens when trying to compile v4lgrab.
In file included from ../../src/v4lgrab.h:103,
                 from list.cpp:2:
/usr/include/linux/videodev2.h:36: syntax error before `;' token
/usr/include/linux/videodev2.h:54: '__u32' is used as a type, but is not
defined as a type.

I compared our version of /usr/include/linux/videodev2.h to the original
source code at
ftp://ftp.thedirks.org/pub/v4l2/kernel2.4/videodevX/videodevX-20020330.tgz and in fact 
we are missing SEVERAL lines including:
#define <linux/types.h>
where (not surprisingly), __u32 is defined as a type.

So, how does code magically disappear from our headers, where does it
go, and how can I fix it?  I'm trying to package a bunch of new video
apps for Mandrake, and it's hard when they don't even compile.

There must be at least ONE more person who cares about these problems...
:-)
Austin

-- 
                        Austin Acton Hon.B.Sc.
             Synthetic Organic Chemist, Teaching Assistant
           Department of Chemistry, York University, Toronto
             MandrakeClub Volunteer (www.mandrakeclub.com)
                     homepage: www.groundstate.ca

Reply via email to