Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#3135 closed defect (duplicate)

libsdl_mixer does not build with gcc 4.0

Reported by: jyrki.wahlstedt@… Owned by: rshaw@…
Priority: High Milestone:
Component: ports Version: 1.0
Keywords: Cc: blb@…
Port:

Description

Trying to build libsdl_mixer (as a dependency to wxWidgets) in 10.4, where the default compiler is 4.0, stops with the following: Error: Target com.apple.build returned: shell command "cd "/usr/local/var/db/dports/build/ file._usr_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_audio_libsdl_mixer /work/SDL_mixer-1.2.6/PBProjects" && /usr/bin/xcodebuild -buildstyle Deployment -target Framework" returned error 1 Command output: ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:537: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:537: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:540: error: syntax error before "void" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:540: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:541: error: syntax error before "void" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:541: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:542: error: syntax error before "void" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:542: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:543: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:543: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:551: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:551: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:556: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:556: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:557: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:557: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:560: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:560: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:563: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:563: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:564: error: syntax error before "int" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:564: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:569: error: parse error before "Mix_Chunk" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:569: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:572: error: syntax error before "void" ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:572: warning: data definition has no type or storage class ./build/Frameworks/SDL_mixer.framework/Headers/SDL_mixer.h:582:24: error: close_code.h: No such file or directory

Exit code: 1

...failed PhaseScriptExecution <Execution>/usr/local/var/db/dports/build/ file._usr_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_audio_libsdl_mixer /work/SDL_mixer-1.2.6/PBProjects/build/SDL_mixer.build/Framework.build/BPTag005-script.sh ... BUILD FAILED

Changing the compiler to 3.3 using gcc_select allows the build to succeed.

Change History (1)

comment:1 Changed 19 years ago by mvitocruz@…

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 3134 *

Note: See TracTickets for help on using tickets.