#18230 closed defect (wontfix)
gnet-2.0.7 Configure error - build failure / +universal build
Reported by: | bjoern@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | universal | Cc: | |
Port: | gnet2 |
Description (last modified by jmroot (Joshua Root))
sudo port install gnet2 +universal configure proces exit: ld: warning in ../src/.libs/libgnet-2.0.dylib, file is not of required architecture Undefined symbols for architecture i386: "_gnet_inetaddr_delete", referenced from: _main in echoclient.o "_gnet_tcp_socket_new", referenced from: _main in echoclient.o "_gnet_init", referenced from: _main in echoclient.o "_gnet_io_channel_readn", referenced from: _main in echoclient.o "_gnet_io_channel_writen", referenced from: _main in echoclient.o "_gnet_inetaddr_new", referenced from: _main in echoclient.o "_gnet_tcp_socket_delete", referenced from: _main in echoclient.o _main in echoclient.o "_gnet_tcp_socket_get_io_channel", referenced from: _main in echoclient.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/5I/5IPRfR1tHVWUhjo8iquGFE+++TI/-Tmp-//ccKJ0A8Y.out (No such file or directory) make[2]: *** [echoclient] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
static lib build:
file .libs/libgnet-2.0.a .libs/libgnet-2.0.a: Mach-O universal binary with 2 architectures .libs/libgnet-2.0.a (for architecture ppc): current ar archive random library .libs/libgnet-2.0.a (for architecture i386): current ar archive random library
dynamic lib build:
file .libs/libgnet-2.0.dylib[[BR]] .libs/libgnet-2.0.dylib: Mach-O dynamically linked shared library ppc
following changes fix dynamic lib build :
generated by configure process:
/usr/bin/gcc-4.0 -dynamiclib -undefined dynamic_lookup -o .libs/libgnet-2.0.0.6.1.dylib .libs/gnet.o .libs/gnet-private.o .libs/ipv6.o .libs/inetaddr.o .libs/mcast.o .libs/tcp.o .libs/unix.o .libs/udp.o .libs/iochannel.o .libs/socks.o .libs/socks-private.o .libs/md5.o .libs/sha.o .libs/pack.o .libs/uri.o .libs/conn.o .libs/conn-http.o .libs/server.o .libs/usagi_ifaddrs.o .libs/base64.o -L/opt/local/lib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lresolv -lpthread -mmacosx-version-min=10.5 -Wl,-syslibroot -Wl,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -install_name /opt/local/lib/libgnet-2.0.0.dylib -compatibility_version 7 -current_version 7.1
to:
/usr/bin/gcc-4.0 -dynamiclib -undefined dynamic_lookup -o .libs/libgnet-2.0.0.6.1.dylib .libs/gnet.o .libs/gnet-private.o .libs/ipv6.o .libs/inetaddr.o .libs/mcast.o .libs/tcp.o .libs/unix.o .libs/udp.o .libs/iochannel.o .libs/socks.o .libs/socks-private.o .libs/md5.o .libs/sha.o .libs/pack.o .libs/uri.o .libs/conn.o .libs/conn-http.o .libs/server.o .libs/usagi_ifaddrs.o .libs/base64.o -L/opt/local/lib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lresolv -lpthread -mmacosx-version-min=10.5 -Wl,-syslibroot -Wl,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -install_name /opt/local/lib/libgnet-2.0.0.dylib -compatibility_version 7 -current_version 7.1 -arch i386 -arch ppc
file .libs/libgnet-2.0.dylib .libs/libgnet-2.0.dylib: Mach-O universal binary with 2 architectures.libs/libgnet-2.0.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc.libs/libgnet-2.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386sh-3.2#
Change History (3)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Keywords: | universal added |
Port: | +universal removed |
comment:2 Changed 16 years ago by jmroot (Joshua Root)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This looks like something that upstream needs to fix. I disabled the universal variant in the meantime, r46031.