On Thu, Dec 14, 2006 at 09:34:35PM +0100, Duncan Webb wrote:
> Ville Syrjälä wrote:
> > On Tue, Dec 12, 2006 at 10:56:45PM +0100, Duncan Webb wrote:
> >> Problem compiling DirectFB-1.0.0-rc2, must be a header problem. I tried
> >> upping the kernel headers to 2.6.18.5 but this caused too many problems
> >> so I brought them back down to 2.6.12.0.
> >>
> >> The top of the output is:
> >>
> >> make[3]: Entering directory
> >> `/sources/ffs/DirectFB-1.0.0-rc2/gfxdrivers/matrox'
> >> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
> >> -I../../include                -I../../lib    -I../../lib             
> >> -I../../src             -I../../systems  -D_REENTRANT   -O3 -ffast-math
> >> -pipe -O3 -march=pentium3 -mtune=pentium3 -fPIC -pipe -D_GNU_SOURCE 
> >> -Werror-implicit-function-declaration -c matrox_maven.c
> >>  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib
> >> -I../../lib -I../../src -I../../systems -D_REENTRANT -O3 -ffast-math
> >> -pipe -O3 -march=pentium3 -mtune=pentium3 -fPIC -pipe -D_GNU_SOURCE
> >> -Werror-implicit-function-declaration -c matrox_maven.c  -fPIC -DPIC -o
> >> .libs/matrox_maven.o
> >> In file included from matrox_maven.c:37:
> >> /usr/include/linux/sysfs.h:70: error: field `s_sibling' has incomplete type
> > 
> > You kernel headers are broken (linux/i2c.h at least). linux/sysfs.h 
> > should not be included in user space code.
> > 
> Just diff'ed various headers they are the same as in the
> linux-libc-headers-2.6.12.0.tar.bz2 sources. Anyway DirectFB-0.9.25.1
> still compiles correctly.

That's because it has a private non-broken copy of i2c.h.

> in 0.9.25.1:
> #ifdef USE_SYSFS
> #include <sysfs/libsysfs.h>
> #endif
> 
> in 1.0.0-rc2
> #ifdef USE_SYSFS
> #include <linux/sysfs.h>
> #include <sysfs/libsysfs.h>
> #endif

In matrox_maven.c? Not in any official version. Are you sure you didn't 
add that yourself?

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to