Link problems on OSX
by Tawn Kramer · in Torque Game Engine · 05/02/2005 (1:38 am) · 10 replies
Lo'
Just bought the sdk. Compiled and ran fine on my XP box with .Net 7.1.
But not so on my mac:
OSX 10.3.9
XTools 1.5, with gcc update
/usr/bin/g++-3.3 -o "/Users/tkramer/projects/torque/pb/../example/Torque Demo Debug OSX.app/Contents/MacOS/Torque Demo Debug OSX" "-L/Users/tkramer/projects/torque/pb/../example" "-L../lib/vorbis/macosx" "-F/Users/tkramer/projects/torque/pb/../example" "-F../lib/openal/macCarb" "-F/Users/tkramer/projects/torque/lib/vorbis/macosx" -filelist /Users/tkramer/projects/torque/pb/../example/torque_pb_2_1.build/Torque-MacCarb-Debug.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-flat_namespace" "-framework" "AGL" "-framework" "Carbon" "-framework" "OpenGL" "-framework" "CoreFoundation" "-framework" "DrawSprocket" "-framework" "CoreServices" "-logg" "-lvorbis"
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
any ideas?
(very impressed with the integrated editor so far. very cool coding, guys.)
thanks,
Tawn
Just bought the sdk. Compiled and ran fine on my XP box with .Net 7.1.
But not so on my mac:
OSX 10.3.9
XTools 1.5, with gcc update
/usr/bin/g++-3.3 -o "/Users/tkramer/projects/torque/pb/../example/Torque Demo Debug OSX.app/Contents/MacOS/Torque Demo Debug OSX" "-L/Users/tkramer/projects/torque/pb/../example" "-L../lib/vorbis/macosx" "-F/Users/tkramer/projects/torque/pb/../example" "-F../lib/openal/macCarb" "-F/Users/tkramer/projects/torque/lib/vorbis/macosx" -filelist /Users/tkramer/projects/torque/pb/../example/torque_pb_2_1.build/Torque-MacCarb-Debug.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-flat_namespace" "-framework" "AGL" "-framework" "Carbon" "-framework" "OpenGL" "-framework" "CoreFoundation" "-framework" "DrawSprocket" "-framework" "CoreServices" "-logg" "-lvorbis"
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
any ideas?
(very impressed with the integrated editor so far. very cool coding, guys.)
thanks,
Tawn
#2
Get into the console.
cd ~/projects/torque/lib/vorbis/macosx/
ranlib *.a
Recompile
EDIT: Added vorbis to the directory structure.
05/02/2005 (9:41 am)
To expand:Get into the console.
cd ~/projects/torque/lib/vorbis/macosx/
ranlib *.a
Recompile
EDIT: Added vorbis to the directory structure.
#4
Building target "Torque-MacCarb-Debug" with build style "Development" (optimization:level '0', debug-symbols:on) (2 errors, 1 warning)
/usr/bin/g++-3.3 -o "/Users/jameslangford/SAGE/TorqueGameEngineSDK/example/Torque Demo Debug OSX.app/Contents/MacOS/Torque Demo Debug OSX" "-L/Users/jameslangford/SAGE/TorqueGameEngineSDK/example" "-L../lib/vorbis/macosx" "-F/Users/jameslangford/SAGE/TorqueGameEngineSDK/example" "-F../lib/openal/macCarb" -filelist /Users/jameslangford/SAGE/TorqueGameEngineSDK/example/torque_pb_2_1.build/Torque-MacCarb-Debug.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-flat_namespace" "-framework" "AGL" "-framework" "Carbon" "-framework" "OpenGL" "-framework" "CoreFoundation" "-framework" "DrawSprocket" "-framework" "CoreServices" "-logg" "-lvorbis"
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
05/06/2005 (4:38 pm)
I still haven't figured this on out yet either. Can you give a litte more help. I got the exact same error.Building target "Torque-MacCarb-Debug" with build style "Development" (optimization:level '0', debug-symbols:on) (2 errors, 1 warning)
/usr/bin/g++-3.3 -o "/Users/jameslangford/SAGE/TorqueGameEngineSDK/example/Torque Demo Debug OSX.app/Contents/MacOS/Torque Demo Debug OSX" "-L/Users/jameslangford/SAGE/TorqueGameEngineSDK/example" "-L../lib/vorbis/macosx" "-F/Users/jameslangford/SAGE/TorqueGameEngineSDK/example" "-F../lib/openal/macCarb" -filelist /Users/jameslangford/SAGE/TorqueGameEngineSDK/example/torque_pb_2_1.build/Torque-MacCarb-Debug.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-flat_namespace" "-framework" "AGL" "-framework" "Carbon" "-framework" "OpenGL" "-framework" "CoreFoundation" "-framework" "DrawSprocket" "-framework" "CoreServices" "-logg" "-lvorbis"
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
ld: table of contents for archive: ../lib/vorbis/macosx/libogg.a is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: ../lib/vorbis/macosx/libvorbis.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices can't be searched
#5
get in the terminal
type cd ~/SAGE/TorqueGameEngineSDK/ib/vorbis/macosx/
ranlib *.a
recompile
05/06/2005 (8:49 pm)
Do this:get in the terminal
type cd ~/SAGE/TorqueGameEngineSDK/ib/vorbis/macosx/
ranlib *.a
recompile
#6
EDIT: changed "ib" to "lib"
This was the result of the Build:
Any thoughts?
05/09/2005 (11:40 am)
Thank you for your help, the build workedEDIT: changed "ib" to "lib"
This was the result of the Build:
Building target "Torque-MacCarb-Debug" with build style "Development" (optimization:level '0', debug-symbols:on) (38 warnings) ld: warning multiple definitions of symbol _crc32 ld: warning multiple definitions of symbol _get_crc_table ld: warning multiple definitions of symbol _deflate ld: warning multiple definitions of symbol _deflateCopy ld: warning multiple definitions of symbol _deflateReset ld: warning multiple definitions of symbol _deflateSetDictionary ld: warning multiple definitions of symbol _deflateInit2_ ld: warning multiple definitions of symbol _deflateEnd ld: warning multiple definitions of symbol _deflateParams ld: warning multiple definitions of symbol _deflateInit_ ld: warning multiple definitions of symbol _zError ld: warning multiple definitions of symbol _zlibVersion ld: warning multiple definitions of symbol _inflateEnd ld: warning multiple definitions of symbol _inflateSync ld: warning multiple definitions of symbol _inflateSyncPoint ld: warning multiple definitions of symbol _inflate ld: warning multiple definitions of symbol _inflateSetDictionary ld: warning multiple definitions of symbol _inflateInit2_ ld: warning multiple definitions of symbol _inflateReset ld: warning multiple definitions of symbol _inflateInit_ ld: warning multiple definitions of symbol _adler32 ld: warning multiple definitions of symbol _gzeof ld: warning multiple definitions of symbol _gzclose ld: warning multiple definitions of symbol _gzdopen ld: warning multiple definitions of symbol _gzerror ld: warning multiple definitions of symbol _gzflush ld: warning multiple definitions of symbol _gzgetc ld: warning multiple definitions of symbol _gzgets ld: warning multiple definitions of symbol _gzopen ld: warning multiple definitions of symbol _gzprintf ld: warning multiple definitions of symbol _gzputc ld: warning multiple definitions of symbol _gzputs ld: warning multiple definitions of symbol _gzread ld: warning multiple definitions of symbol _gzrewind ld: warning multiple definitions of symbol _gzseek ld: warning multiple definitions of symbol _gzsetparams ld: warning multiple definitions of symbol _gztell ld: warning multiple definitions of symbol _gzwrite
Any thoughts?
#7
05/10/2005 (1:08 pm)
Those are warnings, you're fine.
#8
crc32.c
adler32.c
zutil.c
gzio.c
inflate.c
deflate.c
These symbols are also defined in zlib.h which is included in these files.
Perhaps this has something to do with the 'ZEXPORT' (modifier?keyword?). I'm not familiar with its use.
Although they may be warnings and not errors some warnings point to potential problems. Multiple definitions can most definitely be a problem if the definitions are different. Can someone enlighten me on ZEXPORT?
07/10/2005 (3:21 pm)
Those symbols are defined in:crc32.c
adler32.c
zutil.c
gzio.c
inflate.c
deflate.c
These symbols are also defined in zlib.h which is included in these files.
Perhaps this has something to do with the 'ZEXPORT' (modifier?keyword?). I'm not familiar with its use.
Although they may be warnings and not errors some warnings point to potential problems. Multiple definitions can most definitely be a problem if the definitions are different. Can someone enlighten me on ZEXPORT?
#9
07/29/2005 (1:23 pm)
.....
#10
11/13/2005 (6:27 pm)
Thanks to this post and the one regarding the GCC compiler stuff in Platform/Types.h, I am very pleased that we can resume game development on both platforms. Thank you so much
Associate Kyle Carter