Bug 5106 - build failure, 6.8.99.902 on Mac OS X 10.4
Summary: build failure, 6.8.99.902 on Mac OS X 10.4
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 6.8.99.902 (6.9 RC2)
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Torrey T. Lyons
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2005-11-21 00:56 UTC by Benjamin Reed
Modified: 2011-10-15 15:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to fix Mac OS X build failure in 6.9 (72.48 KB, patch)
2006-05-31 15:12 UTC, Torrey T. Lyons
no flags Details | Splinter Review

Description Benjamin Reed 2005-11-21 00:56:27 UTC
Getting the following error building the latest snapshot with Xcode 2.2 on Mac
OS X 10.4:

---(snip!)---
/usr/bin/cc -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common 
-I../../../lib/X11 -I../../../include/extensions
-I../../../programs/Xserver/hw/xfree86/os-support                
-I../../../extras/drm/shared-core -I-I. -I../../../lib/GL/glx
-I../../../exports/include -I../../../exports/include/GL                
-I../../../exports/include/X11 -I../../../programs/Xserver/GL/dri
-I../../../programs/Xserver/hw/darwin/quartz/xpr                
-I../../../extras/Mesa/include -I../../../extras/Mesa/src/mesa/glapi           
     -I../../../lib/GL/include
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks 
-I../../.. -I../../../exports/include   -D__powerpc__ -D__DARWIN__             
                   -DNO_ALLOCA -DCSRG_BASED    -DXTHREADS  -D_REENTRANT
-DXUSE_MTSAFE_API -DXNO_MTSAFE_UNISTDAPI     -DGLXEXT -DGLX_DIRECT_RENDERING
-DGLX_USE_APPLEGL -fno-common  -DXP_NO_X_HEADERS=1                
-DOSVERSION=8*100+4        -Os   dri_glx.c -o unshared/dri_glx.o
dri_glx.c: In function 'driCreateDisplay':
dri_glx.c:186: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
dri_glx.c:208: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
dri_glx.c:208: error: 'CreateScreenFunc' undeclared (first use in this function)
dri_glx.c:208: error: (Each undeclared identifier is reported only once
dri_glx.c:208: error: for each function it appears in.)
dri_glx.c:208: error: parse error before ')' token
dri_glx.c:209: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
dri_glx.c:213: error: 'CreateNewScreenFunc' undeclared (first use in this function)
dri_glx.c:213: error: parse error before ')' token
dri_glx.c:215: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
dri_glx.c:224: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
dri_glx.c:231: error: 'struct __DRIdisplayRec' has no member named 'createScreen'
make[5]: *** [dri_glx.o] Error 1
making all in lib/GL/GL...
make[5]: *** No rule to make target
`../../../lib/GL/apple/unshared/dri_dispatch.o', needed by `libGL.a'.  Stop.
---(snip!)---

config/cf/host.def contains the following:

---(snip!)---
#define ExtraIncDir /sw/include
#define EtcX11Directory ProjectRoot/etc
#define BuildFontCache YES
#define HasFreetype2 NO
#define InstallCmd /usr/bin/install
---(snip!)---
Comment 1 Torrey T. Lyons 2005-11-22 08:16:12 UTC
The internal changes in the GL driver interface breaks a lot of things in Mac OS X support for GLX. I'm 
working on a fix for this.
Comment 2 Torrey T. Lyons 2005-11-22 08:16:53 UTC
Assigning to myself.
Comment 3 Erik Andren 2006-05-23 16:25:28 UTC
Torrey, any ETA on the fix?
Comment 4 Torrey T. Lyons 2006-05-24 08:17:48 UTC
My ETA is very soon, probably this week. After a bit of hiatus I had some time to work on this and the GL 
libraries now build fine for me. Just a few remaining issues left with the server.
Comment 5 Torrey T. Lyons 2006-05-31 15:12:47 UTC
Created attachment 5774 [details] [review]
Patch to fix Mac OS X build failure in 6.9

This patch fixes the build failure and restores hardware accelerated GLX
rendering on Mac OS X. I have only tested on Mac OS X 10.4, but it should work
on the same earlier versions supported in X11R6.8.
Comment 6 Torrey T. Lyons 2006-06-05 17:59:29 UTC
Checked into top of 6.9 tree.


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.