xserver build failure from lnx_agp.c

dave frost dj.frost at blueyonder.co.uk
Mon Sep 18 11:14:02 PDT 2006


everyhting builds fine up to this point on the 'xserver' build section. 
mesa also builds and installs fine.  I think this must be an issue with 
my linux kernel includes possibly ? im running kernel 2.6.16 and i dont 
have the usual /usr/src/linux symlink, is this important ?

thanks for any help.

cheers

Dave

In file included from lnx_agp.c:23:
/usr/include/linux/agpgart.h:55: error: parse error before "__u16"
/usr/include/linux/agpgart.h:60: error: field `version' has incomplete type
/usr/include/linux/agpgart.h:61: error: parse error before "__u32"
/usr/include/linux/agpgart.h:68: error: parse error before '}' token
/usr/include/linux/agpgart.h:71: error: parse error before "__u32"
/usr/include/linux/agpgart.h:92: error: parse error before "__u32"
/usr/include/linux/agpgart.h:106: error: parse error before "__u32"
lnx_agp.c: In function `GARTInit':
lnx_agp.c:64: error: storage size of 'agpinf' isn't known
lnx_agp.c:64: warning: unused variable `agpinf'
lnx_agp.c: In function `xf86GetAGPInfo':
lnx_agp.c:128: error: storage size of 'agpinf' isn't known
lnx_agp.c:128: warning: unused variable `agpinf'
lnx_agp.c: In function `xf86AllocateGARTMemory':
lnx_agp.c:220: error: storage size of 'alloc' isn't known
lnx_agp.c:220: warning: unused variable `alloc'
lnx_agp.c: In function `xf86UnbindGARTMemory':
lnx_agp.c:327: error: storage size of 'unbind' isn't known
lnx_agp.c:327: warning: unused variable `unbind'
lnx_agp.c: In function `xf86EnableAGP':
lnx_agp.c:359: error: parse error before "setup"
lnx_agp.c:364: error: `setup' undeclared (first use in this function)
lnx_agp.c:364: error: (Each undeclared identifier is reported only once
lnx_agp.c:364: error: for each function it appears in.)
make[5]: *** [lnx_agp.lo] Error 1
make[4]: *** [install-recursive] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1

the compilation command line doesnt seem to include a reference to the 
kernel includes with some of the lnx_ahp.c includes require

 gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include 
-I../../../../include -I../../../../include -I../../../../include 
-I../../../../include -I../../../../include -I../../../../include 
-I../../../../hw/xfree86 -I../../../../hw/xfree86/include 
-I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support 
-I../../../../hw/xfree86/os-support/bus -I../../../../os 
-I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H 
-DXF86PM -DHAVE_ACPI -DHAVE_APM -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT -I/usr/local/xorg/xbuild/include 
-I../../../../include -I../../../../include -I../../../../Xext 
-I../../../../composite -I../../../../damageext -I../../../../xfixes 
-I../../../../Xi -I../../../../mi -I../../../../miext/shadow 
-I../../../../miext/damage -I../../../../render -I../../../../randr 
-I../../../../fb -g -O2 -MT lnx_agp.lo -MD -MP -MF .deps/lnx_agp.Tpo -c 
lnx_agp.c  -fPIC -DPIC -o .libs/lnx_agp.o
make[5]: Leaving directory 
`/usr/local/xorg/xsrc/xserver/hw/xfree86/os-support/linux'






More information about the xorg mailing list