xserver build failure from lnx_agp.c

Dan Nicholson dbn.lists at gmail.com
Mon Sep 18 16:14:06 PDT 2006


On 9/18/06, dave frost <dj.frost at blueyonder.co.uk> wrote:
> 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 ?
>
> In file included from lnx_agp.c:23:
> /usr/include/linux/agpgart.h:55: error: parse error before "__u16"

What version of glibc are you using? I imagine it is 2.3.x. The
problem has to do with the order in which the headers are included and
has been fixed in the current version of glibc.

Anyway, you can try to work around the problem in the xserver with this sed:

sed -i.bak '/CONFIG_H/i #include <linux/types.h>' \
   hw/xfree86/os-support/linux/lnx_agp.c

This just makes sure that <linux/types.h> is included before <sys/kd.h>.

HTH.

--
Dan



More information about the xorg mailing list