XFree86-4.4.0 and linux-libc-headers-2.6.9.1

Andrew Benton andy at benton987.fsnet.co.uk
Sun Nov 14 09:06:39 PST 2004


Hello people,
    I've recently rebuilt LFS with a 2.6.9 kernel and 
linux-libc-headers-2.6.9.1. Building LFS went fine but in BLFS straight 
away I hit a problem building XFree86-4.4.0, it errored out like this

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
/usr/include/unistd.h:318: error: conflicting types for 'xf86write'
../../../../../programs/Xserver/include/xf86_ansic.h:295: error: 
previous declaration of 'xf86write' was here
/usr/include/unistd.h:318: error: conflicting types for 'xf86write'
../../../../../programs/Xserver/include/xf86_ansic.h:295: error: 
previous declaration of 'xf86write' was here
/usr/include/unistd.h:405: error: conflicting types for 'xf86usleep'
../../../../../programs/Xserver/include/xf86_ansic.h:366: error: 
previous declaration of 'xf86usleep' was here
/usr/include/unistd.h:405: error: conflicting types for 'xf86usleep'
../../../../../programs/Xserver/include/xf86_ansic.h:366: error: 
previous declaration of 'xf86usleep' was here
In file included from /usr/include/asm/page.h:4,
                  from fbdevhw.c:17:
/usr/include/unistd.h:884:29: macro "getpagesize" passed 1 arguments, 
but takes just 0
make[6]: *** [fbdevhw.o] Error 1
make[6]: Leaving directory `/sources/xc/programs/Xserver/hw/xfree86/fbdevhw'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/sources/xc/programs/Xserver/hw/xfree86'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/sources/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/sources/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/sources/xc'
make: *** [World] Error 2

the solution was to alter the file that errored, fbdevhw.c, like this



diff -Naur xc-orig/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c 
xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c
--- xc-orig/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c	2003-10-30 
17:37:16.000000000 +0000
+++ xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c	2004-11-14 
16:51:34.746450592 +0000
@@ -14,7 +14,11 @@
  #include "fbdevhw.h"
  #include "fbpriv.h"

-#include "asm/page.h"	/* #define for PAGE_* */
+#if 0
+# include "asm/page.h"	/* #define for PAGE_* */
+#else
+# define PAGE_MASK               (~(getpagesize() - 1))
+#endif

  #include "globals.h"
  #define DPMS_SERVER
@@ -22,6 +26,8 @@

  #define DEBUG 0

+#define PAGE_MASK               (~(getpagesize() - 1))
+
  #if DEBUG
  # define TRACE_ENTER(str)	ErrorF("fbdevHW: " str " %d\n",pScrn->scrnIndex)
  #else



More information about the blfs-support mailing list