Opened 16 years ago

Closed 14 years ago

#19474 closed defect (fixed)

libsdl_pango +universal is not completely universal

Reported by: davidstuartbruce@… Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: libsdl_pango

Description (last modified by mf2k (Frank Schima))

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:

Change History (2)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to pmq@…

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Keywords: universal removed
Resolution: fixed
Status: newclosed
Summary: configure fails to correctly detect libsdl_pango universal variantlibsdl_pango +universal is not completely universal
Note: See TracTickets for help on using tickets.