Xorg 6.9/7.0 compile failure

Declan Moriarty junk_mail at iol.ie
Mon Jan 9 04:07:22 PST 2006


I'm probably the last person on the planet to cop on that
xorg-6.9.0 and xorg-7.0.0 are _the_same_source_tree_exactly.

6.9 has the old build system. I tried that, as this is 'from
scratch' and if you build 6.9 you have 7.0 :-/.

Some pointers for those who will try Xorg-6.9.

The xorg-6.8.2 patches don't go, principally because they were
applied by the developers. The -nonow patch can be applied, and 1
hunk will go. That's fine. I kept the sed instructions
from 6.8.2, except on the Xserver, where I had problems (see
below) and varied things.

Kevin Day's  Mesa-Stop_Asking patch does go once you cd into 
extras/Mesa. It's helpful. Better submit that one, Kevin!

Before the 'lndir' execute  'touch
~/xc/config/imake/imakemdep_cpp.h' to correct for some  random
#include for a file that doesn't exist. Otherwise imake fails.

instead of 'mkdir ../xcbuild' from ~/xc, use

cd .. &&
install -d xcbuild/exports/include/X11 (making 4 directories)

This is because that directory is where __everything__ searches
for it's includes; If you have it there, it fills up and all is
rosy. If it isn't there, errors go to /dev/null and you get left
there with your jaw sagging...:-o.  

/Wishes meaningful Kick on the rear end of appropiate X developer

In programs/xdm, out looking for RPCLIBS, which is set at
-lrpcsvc, whatever that means.Ld can't find it. Delete the
definition, perhaps sed -e '/RPCLIB =/d' (untested).

I get to programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c

rm -f lnx_agp.o
gcc -m32 -c -O2 -fno-strength-reduce         -fno-strict-aliasing
-march=i686 -ansi -Wall -Wpointer-arith -Wundef
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../extras/drm/shared-core  -I../../../../../..
-I../../../../../../exports/include   -Dlinux -D__i386__
        -DXFreeXDGA -DXvExtension
-DXF86VIDMODE                           -DXvMCExtension
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0)
In file included from lnx_agp.c:24:
/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"

etc. I get a string of syntax errors, whatever version of
agpgart.h is in /usr/include/linux, whatever way I try it. The
compiler can't parse it. I'm pretty sure it's the compiler
settings - I have just built the same source from a lfs6 system,
and it finished (7.8Meg log).

Any ideas? 

When I cd into the directory and type 'gcc lnx_agp.c' it notes 5
or so missing includes and then falls over the

My /usr/include/linux/agpgart.h is from kernel

	With best Regards,

	Declan Moriarty.

More information about the hlfs-dev mailing list