Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#3033 closed defect (remind)

BUG: libsdl_image fails to build on Tiger

Reported by: james@… Owned by: rshaw@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: benwill@…
Port:

Description

Output follows:

---> Building libsdl_image with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_devel_libsdl_imag e/work/SDL_image-1.2.4/PBProjects" && CFLAGS=\"-I/opt/local/include\" LDFLAGS=\"-L/opt/local/lib \" /usr/bin/xcodebuild -buildstyle Deployment -target Framework" returned error 1 Command output: ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:95: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:95: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:95: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:96: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:96: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:96: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:97: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:97: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:97: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:98: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:98: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:98: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:99: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:99: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:99: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:100: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:100: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:100: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:101: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:101: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:101: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:102: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:102: error: parse error before '*' token ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:102: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:104: error: parse error before "SDL_Surface" ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:104: warning: data definition has no type or storage class ./build/Frameworks/SDL_image.framework/Headers/SDL_image.h:114:24: error: close_code.h: No such file or directory

Exit code: 1

...failed PhaseScriptExecution <Execution>/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_devel_libsdl_imag e/work/SDL_image-1.2.4/PBProjects/build/SDL_image.build/Framework.build/BPTag005-script.sh ... BUILD FAILED

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

comment:1 Changed 20 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to rshaw@…

Please, when creating bugs against already existing ports remember to assign them to the corresponding maintainer. Thanks!

-jmpp

Changed 19 years ago by mvitocruz@…

Attachment: Portfile.diff added

Proposed fix

comment:2 Changed 19 years ago by james@…

Confirmed fixed (1.2.4_3). Many thanks!

comment:3 Changed 19 years ago by bugz@…

Resolution: remind
Status: newclosed

You can compile the project, by comment out the last line in a shell script, that is located in the ProjectBuilder projectfile. It just precompiles the header files. But I don't know, if this will break future things, so use it with caution:

# make frameworks directory if it doesn't already exist mkdir -p ./build/Frameworks\n# delete the old framework\nrm -rf ./build/Frameworks/ SDL_image.framework # copy framework to its home /Developer/Tools/CpMac -r build/SDL_image.framework ./build/Frameworks/SDL_image.framework # precompile header for speedier compiles #/usr/bin/gcc4 -I $HOME/Library/Frameworks/SDL.framework/Headers -precomp ./build/ Frameworks/SDL_image.framework/Headers/SDL_image.h -o ./build/Frameworks/ SDL_image.framework/Headers/SDL_image.p";

comment:4 Changed 19 years ago by rshaw@…

Fix committed as 1.2.4_4

comment:5 Changed 19 years ago by benwill@…

Cc: benwill@… added

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

Note: See TracTickets for help on using tickets.