[MacPorts] #13854: p5-sdl_perl: library not found for -lSDL_ttf
#13854: p5-sdl_perl: library not found for -lSDL_ttf --------------------------------------+------------------------------------- Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | --------------------------------------+------------------------------------- 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. ...[[BR]] ---> Building p5-sdl_perl with target all[[BR]] 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[[BR]] Command output: Copying lib/SDL/Video.pm -> blib/lib/SDL/Video.pm[[BR]] Copying lib/SDL/Event.pm -> blib/lib/SDL/Event.pm[[BR]] Copying lib/SDL/Tutorial.pm -> blib/lib/SDL/Tutorial.pm[[BR]] Copying lib/SDL/Sound.pm -> blib/lib/SDL/Sound.pm[[BR]] Copying lib/SDL/Mixer.pm -> blib/lib/SDL/Mixer.pm[[BR]] Copying lib/SDL/OpenGL.pm -> blib/lib/SDL/OpenGL.pm[[BR]] Copying lib/SDL.pm -> blib/lib/SDL.pm[[BR]] Copying lib/SDL/Timer.pm -> blib/lib/SDL/Timer.pm[[BR]] Copying lib/SDL/Font.pm -> blib/lib/SDL/Font.pm[[BR]] Copying lib/SDL/Music.pm -> blib/lib/SDL/Music.pm[[BR]] Copying lib/SDL/OpenGL/Constants.pm -> blib/lib/SDL/OpenGL/Constants.pm[[BR]] Copying lib/SDL/Color.pm -> blib/lib/SDL/Color.pm[[BR]] Copying lib/SDL/Config.pm -> blib/lib/SDL/Config.pm[[BR]] Copying lib/SDL/Tool/Font.pm -> blib/lib/SDL/Tool/Font.pm[[BR]] Copying lib/SDL_perl.pm -> blib/lib/SDL_perl.pm[[BR]] Copying lib/SDL/Cdrom.pm -> blib/lib/SDL/Cdrom.pm[[BR]] Copying lib/SDL/Tutorial/Images.pm -> blib/lib/SDL/Tutorial/Images.pm[[BR]] Copying lib/SDL/App.pm -> blib/lib/SDL/App.pm[[BR]] Copying lib/SDL/TTFont.pm -> blib/lib/SDL/TTFont.pm[[BR]] Copying lib/SDL/Constants.pm -> blib/lib/SDL/Constants.pm[[BR]] Copying src/SDL.xs -> src/SDL_perl.xs[[BR]] src/SDL_perl.xs -> src/SDL_perl.c[[BR]] 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[[BR]] src/SDL_perl.xs: In function 'XS_SDL_NetResolveIP':[[BR]] src/SDL_perl.xs:2471: warning: assignment discards qualifiers from pointer target type[[BR]] 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[[BR]] '''ld: library not found for -lSDL_ttf'''[[BR]] collect2: ld returned 1 exit status[[BR]] 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.[[BR]] [[BR]] Error: Status 1 encountered during processing.[[BR]] -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854> MacPorts </projects/macports> Ports system for Mac OS
#13854: p5-sdl_perl: library not found for -lSDL_ttf ---------------------------------------+------------------------------------ Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------+------------------------------------ Changes (by ryandesign@macports.org): * cc: sethk@meowfishies.com (added) Comment: Cc'ing maintainer. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13854: p5-sdl_perl: library not found for -lSDL_ttf ---------------------------------------+------------------------------------ Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------+------------------------------------ Comment (by jmr@macports.org): 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`? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13854: p5-sdl_perl: library not found for -lSDL_ttf ---------------------------------------+------------------------------------ Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------+------------------------------------ Comment (by sethk@meowfishies.com): Yes, that's true. I should either modify the SDL_Perl build system to use -framework, or use the normal lib dependencies. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#13854: p5-sdl_perl: library not found for -lSDL_ttf ---------------------------------------+------------------------------------ Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------+------------------------------------ Comment (by sethk@meowfishies.com): Added a patch to link against the normal libraries in ${prefix}/lib instead of using the frameworks. Please test. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854#comment:5> MacPorts </projects/macports> Ports system for Mac OS
I tried installing again, but got same error. Then, thinking I needed to possibly upgrade some ports (probably stupidly), I ran 'sudo port -u upgrade vile'. It stopped with an error, so I ran 'sudo port clean vile', followed by 'sudo port clean --all vile'. Then, I tried to run 'sudo port install p5-sdl_perl' again - but now I'm getting this: Error: Unable to execute port: can't read "configure.universal_archs": no such variable What did I do, and/or, what do I need to do to fix this? I did get the same error prior to this, though - the 'library not found for -lSDL_ttf'... On Sat, May 3, 2008 at 4:18 PM, MacPorts <trac@macosforge.org> wrote:
#13854: p5-sdl_perl: library not found for -lSDL_ttf ---------------------------------------+------------------------------------ Reporter: lisfolks.lists@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------------+------------------------------------ Comment (by sethk@meowfishies.com):
Added a patch to link against the normal libraries in ${prefix}/lib instead of using the frameworks. Please test.
-- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13854#comment:5> MacPorts </projects/macports> Ports system for Mac OS
participants (2)
-
Lis
-
MacPorts