Xorg 6.9/7.0 compile failure

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


Hmmph!

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/common
-I../../../../../../programs/Xserver/hw/xfree86/os-support -I.
-I../../../../../../programs/Xserver/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions
-I../../../../../../programs/Xserver/hw/xfree86/os-support/shared
-I../../../../../../programs/Xserver/hw/xfree86/os-support/bus
-I../../../../../../extras/drm/shared-core  -I../../../../../..
-I../../../../../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE
                 -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP
-DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension
-DXPRINT -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR       -DXFIXES
-DDAMAGE -DCOMPOSITE -DXEVIE        -DGCCUSESGAS -DAVOID_GLYPHBLT
-DPIXPRIV -DSINGLEDEPTH
        -DXFreeXDGA -DXvExtension
-DXFree86LOADER -DDLOPEN_HACK -DXFree86Server
-DXF86VIDMODE                           -DXvMCExtension
                                -DSMART_SCHEDULE
-DBUILDDEBUG -DXResExtension
-DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0)
* 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO
* -DHAS_MTRR_SUPPORT -DUSESTDRES  -DDO_OS_FONTRESTORE
* -DCHECK_OS_VERSION=1 -DHAVE_SYSV_IPC   lnx_agp.c
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
/usr/include/linux/agpgart.h


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

	With best Regards,


	Declan Moriarty.



More information about the hlfs-dev mailing list