Error compiling xorg-server form 7.0-RC4

Daniel Stone daniel at freedesktop.org
Thu Dec 15 21:45:46 PST 2005


On Thu, Dec 15, 2005 at 11:22:45PM -0600, Robin Cook wrote:
>  gcc -DHAVE_CONFIG_H -I. -I. -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
> -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
> -DHAS_STICKY_DIR_BIT -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
> -I../../../../lbx -O -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow
> -pipe -DPIC -fPIC -O3 -MT lnx_agp.lo -MD -MP -MF .deps/lnx_agp.Tpo -c
> lnx_agp.c  -fPIC -DPIC -o .libs/lnx_agp.o
> In file included from lnx_agp.c:24:
> /usr/include/linux/agpgart.h:55: error: syntax error before '__u16'
> /usr/include/linux/agpgart.h:60: error: field 'version' has incomplete
> type

Edit /usr/include/sys/kd.h, change:
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H 1
#endif

#include <linux/kd.h>

(or whatever it is.)

to:
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H 1
#define __undef_LINUX_TYPES_H 1
#endif

#include <linux/kd.h>

#ifdef __undef_LINUX_TYPES_H
#undef _LINUX_TYPES_H
#undef __undef_LINUX_TYPES_H
#endif

Cheers,
Daniel



More information about the xorg mailing list