Problem compiling XFree86

Jens Olav Nygaard jens_olav.nygaard at chello.no
Sat Jan 15 01:08:01 PST 2005


I'm following LFS-BOOK-6.1-testing-20050105 to the letter, has just
finished chapter 6, then I wanted to install XFree86.

Used XFree86 4.4.0, and the host.def defined in BLFS 1.0.

Have commented out the #include <linux/config.h> in the drm.h, and
have tried various combinations of XF86CardDrivers, last with only
"nv" enabled. Have also been experimenting with the adding of
"#define BuildXF86DRI No" and "#define BuildXF86DRM Yes" to the
host.def, as per suggestion in other discussion threads found by
Google.

But, alas! It simply will not compile. It stops here:

...
making all in programs/Xserver/hw/xfree86/fbdevhw...
make[6]: Entering directory `/sources/Xfree86/xc/programs/Xserver/hw/xfree86/fbdevhw'
...
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic -pipe    -fno-merge-constants -I. -I../../../../../programs/Xserver/hw/xfree86/common -I../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../programs/Xserver/Xext           -I../../../../../programs/Xserver/cfb -I../../../../../programs/Xserver/mfb -I../../../../../programs/Xserver/mi               -I../../../../../programs/Xserver/include -I../../../../../exports/include/X11               -I../../../../../programs/Xserver/hw/xfree86/ddc -I../../../../../programs/Xserver/hw/xfree86/i2c  -I../../../../.. -I../../../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                           -D_POSIX_SOURCE 
-D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE    -D_GNU_SOURCE                            -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension    -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension                               -DXFree86LOADER  -DXFree86Server                                -DXF86VIDMODE                          -DXvMCExtension                          -DSMART_SCHEDULE                       -DBUILDDEBUG -DXResExtension                             -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module 
-c fbdevhw.c
In file included from /usr/include/asm/page.h:4,
                  from fbdevhw.c:17:
/usr/include/unistd.h:189: error: conflicting types for 'xf86ssize_t'
../../../../../programs/Xserver/include/xf86_libc.h:105: error: previous declaration of 'xf86ssize_t' was here
In file included from /usr/include/asm/page.h:4,
                  from fbdevhw.c:17:
/usr/include/unistd.h:312: error: conflicting types for 'xf86read'
../../../../../programs/Xserver/include/xf86_ansic.h:294: error: previous declaration of 'xf86read' was here
/usr/include/unistd.h:312: error: conflicting types for 'xf86read'
../../../../../programs/Xserver/include/xf86_ansic.h:294: error: previous declaration of 'xf86read' was here
...

[Sorry for the long lines. There are some more similar messages
about xf86write, xf86usleep also.]



To me it looks almost as if there are som incompatible definitions
of the same types, maybe indicating some header file contamination
from the host or something, but being done with chapter 6, I have
removed /tools, and everything is running in the totally isolated
chroot-environment.

Are there any known or suspected issues with headerfiles or other
packages in 6.1-testing, in conjunction with XFree86??

Any suggestions, hints or solutions will be greatly appreciated!


J.O.




More information about the lfs-dev mailing list