X.org 6.7.0 compilation fails

Vrihad Shoonya vrihad at softhome.net
Thu Sep 9 08:53:54 PDT 2004


I am trying to compile X.org version 6.7.0 from source on Linux 2.4.18. I
tried to build it with custom host.def as well as the stock host.def. In
either ways the compilation fails at two points. First failure message is

----------------------------------------
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic
-Wall -Wpointer-arith -Wundef    -fno-merge-constants
-I../../../../../../programs/Xserver/GL/mesa/src/X
-I../../../../../../exports/include
-I../../../../../../exports/include/X11
-I../../../../../../include/extensions -I../../../../../../extras/Mesa/src
-I../../../../../../extras/Mesa/src/X
-I../../../../../../extras/Mesa/include -I../../../../../../lib/GL/glx
-I../../../../../../lib/GL/include
-I../../../../../../programs/Xserver/include
-I../../../../../../programs/Xserver/GL/include
-I../../../../../../programs/Xserver/GL/glx -I../../../../../..
-I../../../../../../exports/include -I/usr/X11R6/include  -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX
-DXAPPGROUP -DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension 
-DPIXPRIV   -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server
-DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG
-DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) *100000) + ((0) * 1000) +
0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module
-DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA
-DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  -c
compsize.c
In file included from compsize.c:38:
../../../../../../lib/GL/glx/glxclient.h:49:25: X11/Xlibint.h: No such
file or directory

<snip>
----------------------------------------
I fix it by manually suppliying the include directory where Xlibint.h
resides. Then the compilation fails withe following messages

----------------------------------------
gcc -m32 -o Xnest -O2 -fno-strength-reduce -fno-strict-aliasing -ansi
-pedantic -Wall -Wpointer-arith -Wundef -L../../exports/lib
-L/usr/X11R6/lib hw/xnest/ miinitext.o os/libcwrapper.o dix/libdix.a
os/libos.a hw/xnest/libxnest.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a
xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a 
randr/librandr.a render/librender.a hw/xnest/libxnest.a Xext/libext.a
dbe/libdbe.a record/librecord.a GL/glx/libglx.a GL/mesa/GLcore/libGLcore.a
XTrap/libxtrap.a -L../../exports/lib -L/usr/X11R6/lib -lXfont -lfreetype
dix/libxpstubs.a -L../../exports/lib -L/usr/X11R6/lib -lXext -lX11 -lz -lm
-lXau -lXdmcp  -Wl,-rpath-link,../../exports/lib
/usr/local/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.2.3/../../../../i586-pc-linux-
gnu/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[3]: *** [Xnest] Error 1
make[3]: Leaving directory `/usr/local/src/X11-6.7.0/programs/Xserver'
----------------------------------------

In fact libXext.so is not built at all. How can I make sure that this
library is built before the actual linking happens?

Thanks in advance

-vrihad





More information about the xorg mailing list