[MacPorts] #25345: pkgconfig 0.25 is built with --enable-indirect-deps, causing breakage in apps that link against libsdl.

MacPorts noreply at macports.org
Sat Jun 19 01:33:20 PDT 2010


#25345: pkgconfig 0.25 is built with --enable-indirect-deps, causing breakage in
apps that link against libsdl.
-----------------------------------+----------------------------------------
 Reporter:  endgame.dos@…          |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.9.1                                
 Keywords:                         |        Port:  pkgconfig                            
-----------------------------------+----------------------------------------
 I've noticed that pkg-config is built with --enable-indirect-deps, which
 causes Libs.private to get unconditionally printed (even when --static is
 not passed to pkg-config). This causes runtime failures in programs linked
 against SDL, because the output of `pkg-config --libs sdl` looks something
 like this:

 {{{
 -Wl,-framework,Cocoa /opt/local/lib/libSDLmain.a /opt/local/lib/libSDL.a
 -Wl,-framework,OpenGL -Wl,-framework,ApplicationServices
 -Wl,-framework,Carbon -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit
 -Wl,-framework,IOKit -L/opt/local/lib -lSDLmain -lSDL
 }}}

 In particular, this is linking the SDL .dylib and the SDL static lib. This
 causes runtime warnings that the classes SDLTranslatorResponder,
 SDL_QuartzView, SDL_QuartzWindowDelegate and SDL_QuartzWindow are
 implemented in two places, followed by a crash.

 Removing --enable-indirect-deps from the pkgconfig portfile allows SDL
 apps to correctly link and run.

-- 
Ticket URL: <http://trac.macports.org/ticket/25345>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list