[SDL] mac osx gcc 3.3 link prob

tigital tigital at mac.com
Mon Nov 17 09:08:01 PST 2003


hello,

...I just updated my code base to latest cvs, and also am trying to  
update all of my projects to gcc 3.3 (note:  I use project builder  
projects)...when I tried to do a clean build of the @executable  
framework, I got a warning about -frtti not being allowed with c files:  
  this was weird because the deployment setting specifically said  
-fno-rtti...so then I removed that and added -fast (to get all the  
bang-for-my-buck outta 3.3), and the rtti warning went away, but now I  
get an error on linking:

DynamicLibrary.LinkUsingFileList  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.framework/Versions/ 
A/SDL
     /usr/bin/gcc-3.3  -o  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.framework/Versions/ 
A/SDL   "-L/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build"   
"-F/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build"  -filelist  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.build/ 
Framework.build/Objects-normal/LinkFileList   "-arch" "ppc"  
"-Wl,-exported_symbols_list" "../../src/main/macosx/exports/SDL.x"  
"-prebind" "-Wl,-single_module" "-dynamiclib" "-compatibility_version"  
"1" "-current_version" "1" "-seg1addr" "0x30000000" "-framework"  
"IOKit" "-framework" "Cocoa" "-framework" "OpenGL" "-framework"  
"Carbon" "-framework" "QuickTime" "-framework" "AudioToolbox"  
"-framework" "AudioUnit"  -install_name "`echo  
"@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" |  
/usr/bin/sed 's!//*!/!g'`"

ld:  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.build/ 
Framework.build/Objects-normal/ppc/SDL_romaudio.o has local relocation  
entries in non-writable section (__TEXT,__text)

...anyone know of a solution here?

thanx,
jamie

ps:  maybe this'll help too:  this is the line for compiling  
SDL_romaudio.c:

CompileC  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.build/ 
Framework.build/Objects-normal/ppc/SDL_romaudio.o
     /usr/bin/gcc-3.3  -c  
-F/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build   
-I/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/include  
-I/System/Library/Frameworks/Carbon.framework/Headers -I../../src  
-I../../src/audio -I../../src/cdrom -I../../src/endian  
-I../../src/events -I../../src/file -I../../src/hermes  
-I../../src/joystick -I../../src/main -I../../src/thread  
-I../../src/timer -I../../src/video -I../../src/audio/macrom  -arch ppc  
-fno-common -fpascal-strings -Os -fast -Wall -Wno-four-char-constants  
-pipe -precomp-trustfile  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.build/ 
Framework.build/TrustedPrecomps.txt  
-Wp,-header-mapfile,/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/ 
SDL.build/Framework.build/SDL.hmap     "-DENABLE_QUARTZ"  
"-DPTHREAD_NO_RECURSIVE_MUTEX" "-DSDL_USE_PTHREADS"  
"-DTARGET_API_MAC_CARBON" "-DTARGET_API_MAC_OSX" "-DMACOSX"  
"-DHAVE_OPENGL"   ../../src/audio/macrom/SDL_romaudio.c  -o  
/Users/tigital/dev/SDL-1.2/PBProjects/SDL/build/SDL.build/ 
Framework.build/Objects-normal/ppc/SDL_romaudio.o 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3010 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031117/c5a56f5b/attachment-0007.bin>


More information about the SDL mailing list