#13854 closed defect (fixed)
p5-sdl_perl: library not found for -lSDL_ttf
Reported by: | lisfolks.lists@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | sethk@… | |
Port: |
Description
p5-sdl_perl port brings up the following error regarding the sdl_ttf library being missing. Note that the info command doesn't show the sdl_ttf library as a dependency.
...
---> Building p5-sdl_perl with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-sdl_perl/work/SDL_Perl-2.1.3" && /opt/local/bin/perl Build build " returned error 2
Command output: Copying lib/SDL/Video.pm -> blib/lib/SDL/Video.pm
Copying lib/SDL/Event.pm -> blib/lib/SDL/Event.pm
Copying lib/SDL/Tutorial.pm -> blib/lib/SDL/Tutorial.pm
Copying lib/SDL/Sound.pm -> blib/lib/SDL/Sound.pm
Copying lib/SDL/Mixer.pm -> blib/lib/SDL/Mixer.pm
Copying lib/SDL/OpenGL.pm -> blib/lib/SDL/OpenGL.pm
Copying lib/SDL.pm -> blib/lib/SDL.pm
Copying lib/SDL/Timer.pm -> blib/lib/SDL/Timer.pm
Copying lib/SDL/Font.pm -> blib/lib/SDL/Font.pm
Copying lib/SDL/Music.pm -> blib/lib/SDL/Music.pm
Copying lib/SDL/OpenGL/Constants.pm -> blib/lib/SDL/OpenGL/Constants.pm
Copying lib/SDL/Color.pm -> blib/lib/SDL/Color.pm
Copying lib/SDL/Config.pm -> blib/lib/SDL/Config.pm
Copying lib/SDL/Tool/Font.pm -> blib/lib/SDL/Tool/Font.pm
Copying lib/SDL_perl.pm -> blib/lib/SDL_perl.pm
Copying lib/SDL/Cdrom.pm -> blib/lib/SDL/Cdrom.pm
Copying lib/SDL/Tutorial/Images.pm -> blib/lib/SDL/Tutorial/Images.pm
Copying lib/SDL/App.pm -> blib/lib/SDL/App.pm
Copying lib/SDL/TTFont.pm -> blib/lib/SDL/TTFont.pm
Copying lib/SDL/Constants.pm -> blib/lib/SDL/Constants.pm
Copying src/SDL.xs -> src/SDL_perl.xs
src/SDL_perl.xs -> src/SDL_perl.c
cc -I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE -DXS_VERSION="2.1.3" -DVERSION="2.1.3" -I/Library/Frameworks/SDL_mixer.framework/Headers -I/Library/Frameworks/SDL_gfx.framework/Headers -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_net.framework/Headers -I/Library/Frameworks/SDL_ttf.framework/Headers -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DHAVE_SDL -DHAVE_SDL_TTF -DHAVE_SDL_NET -DHAVE_SDL_IMAGE -DHAVE_SDL_GFX -DHAVE_SDL_MIXER -Ddarwin -DMACOSX -fPIC -c -I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/opt/local/include -O3 -o src/SDL_perl.o src/SDL_perl.c
src/SDL_perl.xs: In function 'XS_SDL_NetResolveIP':
src/SDL_perl.xs:2471: warning: assignment discards qualifiers from pointer target type
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/src/SDL_perl/SDL_perl.bs')
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle -undefined dynamic_lookup -o blib/arch/auto/src/SDL_perl/SDL_perl.bundle src/SDL_perl.o -L../../lib -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lSDL -lSDL_ttf -lSDL_net -lSDL_image -lSDL_gfx -lSDL_mixer
ld: library not found for -lSDL_ttf
collect2: ld returned 1 exit status
error building blib/arch/auto/src/SDL_perl/SDL_perl.bundle from src/SDL_perl.o at /opt/local/lib/perl5/vendor_perl/5.8.8/ExtUtils/CBuilder/Base.pm line 213.
Error: Status 1 encountered during processing.
Attachments (1)
Change History (10)
comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Milestone: | → Port Bugs |
---|
comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | sethk@… added |
---|
comment:3 Changed 17 years ago by jmroot (Joshua Root)
This depends on the -framework versions of the SDL ports. It's (correctly) looking for headers in /Library/Frameworks, but looking for libs in ${prefix}/lib. That can't be right. Surely it should be using -framework SDL
rather than -lSDL
?
comment:4 Changed 17 years ago by sethk@…
Yes, that's true. I should either modify the SDL_Perl build system to use -framework, or use the normal lib dependencies.
Changed 17 years ago by sethk@…
Attachment: | p5-sdl_perl.framework.diff added |
---|
comment:5 Changed 17 years ago by sethk@…
Added a patch to link against the normal libraries in ${prefix}/lib instead of using the frameworks. Please test.
comment:6 Changed 16 years ago by lycus@…
The attached file worked for me, utilizing the following steps in the terminal: cd port dir p5-sdl_perl
Moving the file to the pertinent directory
sudo port -d install p5-sdl_perl
Thanks.
comment:7 Changed 16 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed with small change in r37273.
I incremented the revision number as this changes the dependencies of the port.
Cc'ing maintainer.