[MacPorts] #19474: configure fails to correctly detect libsdl_pango universal variant

MacPorts noreply at macports.org
Wed Apr 29 07:12:44 PDT 2009


#19474: configure fails to correctly detect libsdl_pango universal variant
----------------------------------------+-----------------------------------
 Reporter:  davidstuartbruce@…          |       Owner:  pmq@…           
     Type:  defect                      |      Status:  new             
 Priority:  Normal                      |   Milestone:                  
Component:  ports                       |     Version:  1.7.1           
 Keywords:  universal                   |        Port:  libsdl_pango    
----------------------------------------+-----------------------------------
Changes (by macsforever2000@…):

  * owner:  macports-tickets@… => pmq@…


Old description:

> Hi,
>
> Both tuxmath and tuxtype depend (optionally) on libsdl_pango.  The i386
> build correctly detects and uses libsdl_pango.
>
> When attempting to build the universal variants of tuxmath or tuxtype,
> tuxtype's configure incorrectly reports that libsdl_pango is not found.
> This is done in a dedicated macports installation with exclusively
> universal port variants:
>
> bash-3.2$ sudo ./tuxport installed libsdl_pango
> The following ports are currently installed:
>   libsdl_pango @0.1.2_0+universal (active)
> bash-3.2$
>
> The upstream configure for tuxtype is just a standard AC_CHECK_LIB, and
> the other SDL dependencies (libsdl, libsdl_mixer, libsdl_image, and
> libsdl_ttf) are all correctly identified with the same technique.
>
> Below is the relevant excerpt from tuxtype's config.log:
>

> configure:14636: checking for SDLPango_Init in -lSDL_Pango
> configure:14671: /usr/bin/gcc-4.0 -o conftest -O2 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -mmacosx-version-
> min=10.5 -I/opt/local/tux4kids/
> include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/tux4kids/include
> -isysro
> ot /Developer/SDKs/MacOSX10.5.sdk -L/opt/local/tux4kids/lib -arch ppc
> -arch i386 -mmacosx-version-min=10.5 conftest.c -lSDL_Pango  -lSDL_ttf
> -lSDL_mixer -lSDL_image -L/opt/local/tux4kids/lib -lSDLmain -lSDL
> -Wl,-framework,Cocoa >&5
> ld warning: in /opt/local/tux4kids/lib/libSDL_Pango.dylib, file is not of
> required architecture
>
> Undefined symbols for architecture ppc: "_SDLPango_Init", referenced
> from: _main in cc2SE7tZ.o
>
> ld: symbol(s) not found for architecture ppc
>
> collect2: ld returned 1 exit status
>
> lipo: can't open input file: /var/tmp//ccZxYhs5.out (No such file or
> directory)
>
> configure:14677: $? = 1
>
> configure: failed program was:

New description:

 Hi,

 Both tuxmath and tuxtype depend (optionally) on libsdl_pango.  The i386
 build correctly detects and uses libsdl_pango.

 When attempting to build the universal variants of tuxmath or tuxtype,
 tuxtype's configure incorrectly reports that libsdl_pango is not found.
 This is done in a dedicated macports installation with exclusively
 universal port variants:

 {{{
 bash-3.2$ sudo ./tuxport installed libsdl_pango
 The following ports are currently installed:
   libsdl_pango @0.1.2_0+universal (active)
 bash-3.2$
 }}}

 The upstream configure for tuxtype is just a standard AC_CHECK_LIB, and
 the other SDL dependencies (libsdl, libsdl_mixer, libsdl_image, and
 libsdl_ttf) are all correctly identified with the same technique.

 Below is the relevant excerpt from tuxtype's config.log:

 {{{
 configure:14636: checking for SDLPango_Init in -lSDL_Pango
 configure:14671: /usr/bin/gcc-4.0 -o conftest -O2 -isysroot
 /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -mmacosx-version-
 min=10.5 -I/opt/local/tux4kids/
 include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/tux4kids/include
 -isysro
 ot /Developer/SDKs/MacOSX10.5.sdk -L/opt/local/tux4kids/lib -arch ppc
 -arch i386 -mmacosx-version-min=10.5 conftest.c -lSDL_Pango  -lSDL_ttf
 -lSDL_mixer -lSDL_image -L/opt/local/tux4kids/lib -lSDLmain -lSDL
 -Wl,-framework,Cocoa >&5
 ld warning: in /opt/local/tux4kids/lib/libSDL_Pango.dylib, file is not of
 required architecture

 Undefined symbols for architecture ppc: "_SDLPango_Init", referenced from:
 _main in cc2SE7tZ.o

 ld: symbol(s) not found for architecture ppc

 collect2: ld returned 1 exit status

 lipo: can't open input file: /var/tmp//ccZxYhs5.out (No such file or
 directory)

 configure:14677: $? = 1

 configure: failed program was:
 }}}

--

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


More information about the macports-tickets mailing list