[MacPorts] #20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- I can build xorg-server on Tiger Intel now, but not on Tiger PowerPC: {{{ /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT }}} Attached are the build logs from the two machines. I've tried to minimize the differences between them. I'm not able to tell by diffing them why the PowerPC build fails. I note xorg-server builds with dbus if it's present (see Intel log). -- Ticket URL: <http://trac.macports.org/ticket/20638> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by jeremyhu@…): Can you please try the attached patch? -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Changes (by jeremyhu@…): * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by devans@…): This patch made no difference that I can see. Still fails as shown above. -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by jeremyhu@…): Can you please do this on both your ppc and intel boxes: {{{ grep GL_EXT_gpu_program_parameters /System/Library/Frameworks/OpenGL.framework/Headers/glext.h }}} Actually, if you could attach your /System/Library/Frameworks/OpenGL.framework/Headers/glext.h, that would help a bit. If the above patch didn't work, it looks like your glext.h is explicitly setting GL_EXT_gpu_program_parameters to 1 even though the symbols are not defined. That is naughty. Perhaps I should make these checks all runtime instead of compile-time... sigh. -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by devans@…): Here's the grep output for the ppc case: {{{ devans% grep GL_EXT_gpu_program_parameters /System/Library/Frameworks/OpenGL.framework/Headers/glext.h #define GL_EXT_gpu_program_parameters 1 #if GL_EXT_gpu_program_parameters #if GL_EXT_gpu_program_parameters }}} Full include file is attached Ryan will have to supply the intel version as I don't have one. -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by jeremyhu@…): Ok, it looks like OpenGL.framework flat out lies to us on Tiger/ppc ... Try the updated patch. -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by devans@…): Building .... news at 11. -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: xorg-server -------------------------------------+-------------------------------------- Comment(by devans@…): OK, build completed without error although still see these multiple definition warnins: {{{ libtool: link: /usr/bin/gcc-4.0 -O2 -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -Objc -Wl,-u -Wl,_miDCInitialize -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,CoreAudio -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,OpenGL -o X11.bin bundle-main.o mach_startupServer.o mach_startupUser.o ../../../dix/.libs/dixfonts.o -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -L/opt/local/lib ../../../hw/xquartz/.libs/libXquartz.a ../../../hw/xquartz/xpr/.libs/libXquartzXpr.a ../../../miext/rootless/.libs/librootless.a ../../../hw/xquartz/pbproxy/.libs/libxpbproxy.a /opt/local/lib/libAppleWM.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libX11.dylib ../../../fb/.libs/libfb.a ../../../xfixes/.libs/libxfixes.a ../../../Xext/.libs/libXext.a ../../../dbe/.libs/libdbe.a ../../../render/.libs/librender.a ../../../randr/.libs/librandr.a ../../../damageext/.libs/libdamageext.a ../../../miext/damage/.libs/libdamage.a ../../../miext/shadow/.libs/libshadow.a ../../../Xi/.libs/libXi.a ../../../xkb/.libs/libxkb.a ../../../xkb/.libs/libxkbstubs.a ../../../dix/.libs/libxpstubs.a ../../../dix/.libs/libdix.a ../../../config/libconfig.a ../../../mi/.libs/libmi.a ../../../os/.libs/libos.a /opt/local/lib/libXfont.dylib -lbz2 /opt/local/lib/libfreetype.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libfontenc.dylib -lz /opt/local/lib/libpixman-1.dylib /opt/local/lib/libXdmcp.dylib -lcrypto -lXplugin ../../../hw/xquartz/GL/.libs/libCGLCore.a ../../../glx/.libs/libglx.a -lm -framework ApplicationServices /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _Xalloc ../../../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text) /opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xalloc /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _Xfree ../../../os/.libs/libos.a(utils.o) definition of _Xfree in section (__TEXT,__text) /opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xfree /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _Xrealloc ../../../os/.libs/libos.a(utils.o) definition of _Xrealloc in section (__TEXT,__text) /opt/local/lib/libXdmcp.dylib(Alloc.o) definition of _Xrealloc }}} Started the server, ran gimp and all seems to work. On start of the server, the following console warnings appear though (did with earlier versions as well). Is there some configuration missing or is this just noise? {{{ .Xquartz starting: X.Org X Server 1.5.3-apple14 Build Date: 20090827 . (EE) XKB: Couldn't open rules file /opt/local/share/X11/xkb/rules/base (EE) XKB: No components provided for device Virtual core keyboard (EE) XKB: Couldn't open rules file /opt/local/share/X11/xkb/rules/base (EE) XKB: No components provided for device keyboard Could not init font path element /Library/Fonts, removing from list! Could not init font path element /System/Library/Fonts, removing from list! }}} Thanks for the help! -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20638: xorg-server: undefined symbols _glProgramEnvParameters4fvEXT _glProgramLocalParameters4fvEXT on Tiger PowerPC --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: xorg-server | --------------------------------------+------------------------------------- Changes (by jeremyhu@…): * status: assigned => closed * resolution: => fixed Comment: The XKB stuff is just noise. The multiple definitions are annoying but fine. They're the same code in two places, so as long as the linker finds one of the two, we're fine... r56456 -- Ticket URL: <http://trac.macports.org/ticket/20638#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts