Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#3134 closed defect (fixed)

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.

Attachments (1)

Portfile.diff (703 bytes) - added by mvitocruz@… 19 years ago.
Not quite a fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed 19 years ago by mvitocruz@…

* Bug 3135 has been marked as a duplicate of this bug. *

Changed 19 years ago by mvitocruz@…

Attachment: Portfile.diff added

Not quite a fix

comment:2 Changed 19 years ago by mvitocruz@…

Forget what I said about having linking problems -- they come from building smpeg. I've retested by cheating and building smpeg with gcc 3.3, and then building libsdl_mixer and neverball with gcc 4.0; things seem to work fine.

comment:3 Changed 19 years ago by blb@…

Resolution: fixed
Status: newclosed

mww@ recently committed a fix to libsdl_mixer for 10.4, which should fix any issues...reopen if that's not the case.

Note: See TracTickets for help on using tickets.