Bug 2883 - server GLX extension does not build on FreeBSD 5.3
Summary: server GLX extension does not build on FreeBSD 5.3
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) FreeBSD
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-02 10:59 UTC by David Bremner
Modified: 2005-05-03 02:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Full error messages from compilation failure (18.74 KB, text/plain)
2005-04-02 11:03 UTC, David Bremner
no flags Details

Description David Bremner 2005-04-02 10:59:54 UTC
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
Comment 1 David Bremner 2005-04-02 11:03:12 UTC
Created attachment 2292 [details]
Full error messages from compilation failure
Comment 2 Eric Anholt 2005-05-03 19:38:45 UTC
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.