Environment: FreeBSD 5.3; system compiler gcc 3.4.2 Source: CVS HEAD as of April 1. Compilation fails in programs/Xserver/GL/glx compiling glxcontextmodes.c cc -O2 -g -ansi -pedantic -Wno-system-headers -Dasm=__asm -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -fPIC -I../../../../programs/Xserver/GL/glx -I../../../../programs/Xserver/GL/include -I../../../../programs/Xserver/include -I../../../../exports/include -I../../../../extras/Mesa/include -I../../../../exports/include/X11 -I../../../../programs/Xserver/mi -I../../../../include/extensions -I../../../../include/fonts -I../../../../lib/GL/include -I../../../../programs/Xserver/hw/xfree86 -I../../../.. -I../../../../exports/include -I/usr/Xorg-current/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -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) + ((8) * 100000) + ((1) * 1000) + 99)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -c glcontextmodes.c In file included from glcontextmodes.c:43: ../../../../exports/include/GL/glx.h:39:22: X11/Xlib.h: No such file or directory ../../../../exports/include/GL/glx.h:40:23: X11/Xutil.h: No such file or directory In file included from glcontextmodes.c:43: ../../../../exports/include/GL/glx.h:70: error: syntax error before '*' token ../../../../exports/include/GL/glx.h:70: error: syntax error before '*' token [many errors snipped; see attached log] If I add #define BuildGlxExt NO to host.def, then the server seems to build OK. Here is the rest of host.def #define ProjectRoot /usr/Xorg-current #define NothingOutsideProjectRoot YES #define DefaultGcc2i386Opt -O2 -g #define HasFreeType2 YES #define HasFontconfig YES #define XnestServer NO #define XVirtualFramebufferServer NO #define XprtServer NO #define BuildFontServer NO #define BuildFreeType NO #define BuildXTrueType NO #define Freetype2BuildDefines -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER #define BuildFonts NO #define BuildServersOnly YES
Created attachment 2292 [details] Full error messages from compilation failure
If you're going to build servers only, you need to have the libraries and things already installed in your projectroot, which appears to be the problem here.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.