multiply defined symbols in libGL and OpenGL.fwk
multiply defined symbols in libGL and OpenGL.fwk
- Subject: multiply defined symbols in libGL and OpenGL.fwk
- From: Ian Piumarta <email@hidden>
- Date: Thu, 20 Feb 2003 19:32:11 +0100 (MET)
Hi,
I did a clean install of beta 0.2.1 (removing all vestiges of 0.1) on Mac
OS 10.2.4 (6I32) and can no longer compile an X11 plugin that has dynamic
dependencies on libGL.
The link command is:
gcc -dynamiclib -flat_namespace -undefined suppress
-o .libs/vm-display-X11.so sqUnixX11.lo sqUnixMozilla.lo
-L/usr/X11R6/lib -lGL -lXext -lSM -lICE -ldl -lm -lX11 -lc
-install_name /usr/local/lib/squeak/3.5-1/vm-display-X11.so
which in turn runs
/usr/bin/libtool -arch_only ppc -noall_load
-install_name /usr/local/lib/squeak/3.5-1/vm-display-X11.so
-o .libs/vm-display-X11.so -dynamic -undefined suppress
-L/usr/X11R6/lib -L/usr/lib/gcc/darwin/2.95.2
-L/usr/lib/gcc/darwin -L/usr/local/lib
-flat_namespace sqUnixX11.lo sqUnixMozilla.lo
-lGL -lXext -lSM -lICE -ldl -lm -lX11 -lc -lcc_dynamic -lSystem
Using 0.2.1 only I get the following warnings:
ld: warning multiple definitions of symbol _glGetColorTableEXT
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glGetColorTableEXT
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glGetColorTableEXT
ld: warning multiple definitions of symbol _glGetColorTableParameterfvEXT
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glGetColorTableParameterfvEXT
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glGetColorTableParameterfvEXT
ld: warning multiple definitions of symbol _glGetColorTableParameterivEXT
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib(gll_api.o) definition of _glGetColorTableParameterivEXT
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glGetColorTableParameterivEXT
The resulting binary crashes (not surprisingly) with:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 129 (Apple-DRI)
Minor opcode of failed request: 3 ()
Value in failed request: 0x80001f
Serial number of failed request: 274
Current serial number in output stream: 279
If I remove all traces of 0.2.1 from my system and perform a clean
reinstall of beta 0.1 the same code links and runs just fine.
I'm hoping someone can either correct the way I'm compiling my code, or
confirm that this is a known problem and will be fixed in the next
release. Currently it's preventing my development moving to 0.2.1; to
continue to make progress I've had to revert to 0.1.
(Apologies if this has already come up on the list and I missed it. A
quick search of the archive revealed nothing similiar.)
Any and all help appreciated. Thanks!
Regards,
Ian
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.