#40625 closed defect (fixed)
Gnutls universal variant fails on Mountain Lion with Xcode 5.0
Reported by: | arrakis@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | ||
Port: | gnutls |
Description
A fresh install of macports 2.2.0 was used after OS upgrade. This port was auto pulled in from wine, but also fails to build independently:
The command:
sudo port install gnutls +universal
Produces the output:
Error: org.macports.build for port gnutls returned: command execution failed Please see the log file for port gnutls for details:
The log file contains:
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386/src/crywrap' :info:build /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/clang -pipe -Os -arch i386 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -o crywrap crywrap.o ../../lib/libgnutls.la ../../gl/libgnu.la -lidn :info:build libtool: link: /usr/bin/clang -pipe -Os -arch i386 -Wl,-headerpad_max_install_names -arch i386 -o .libs/crywrap crywrap.o -L/opt/local/lib ../../lib/.libs/libgnutls.dylib -lz -lpthread /opt/local/lib/libp11-kit.dylib -lnettle -lhogweed /opt/local/lib/libgmp.\ dylib ../../gl/.libs/libgnu.a /opt/local/lib/libidn.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib :info:build ld: warning: ignoring file /opt/local/lib/libidn.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libidn.dyl\ ib :info:build Undefined symbols for architecture i386: :info:build "_idna_to_ascii_lz", referenced from: :info:build crywrap_parse_ip in crywrap.o :info:build "_stringprep_locale_charset", referenced from: :info:build _main in crywrap.o :info:build ld: symbol(s) not found for architecture i386 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[4]: * [crywrap] Error 1 :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386/src/crywrap' :info:build make[3]: * [all-recursive] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386/src' :info:build make[2]: * [all] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386/src' :info:build make[1]: * [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386' :info:build make: * [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/work/gnutls-3.1.10-i386" && /usr/bin/make -j2 -w all :info:build Exit code: 2 :error:build org.macports.build for port gnutls returned: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed
while executing
"$procedure $targetname" :info:build Warning: targets not executed for gnutls: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port gnutls for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gnutls/gnutls/main.log
Change History (5)
comment:1 Changed 11 years ago by dbevans (David B. Evans)
comment:2 Changed 11 years ago by arrakis@…
Libidn was installed correctly through macports. However, libidn has a universal variant available. When I ran
sudo port install libidn +universal
the universal binary was correctly installed. Rerunning
sudo port install gnutls +universal
Now worked. So thanks for the tip. gnutls +universal needs libidn +universal as a dependency, which doesn't seem to be correctly set in the gnutls port file specification. As the wine portfile specifies gnutls +universal on a standard 64 bit mountain lion install, this could be a problem
comment:3 Changed 11 years ago by dbevans (David B. Evans)
You're absolutely right! Missing dependency on libidn added in r111721. Thanks for your report.
comment:4 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 11 years ago by mf2k (Frank Schima)
Port: | gnutls added |
---|
I just forced a rebuild of this port on the same platform with no problems. (10.8.5 + Xcode 5.0).
The file it is complaining about is /opt/local/lib/libidn.dylib which is provided by port libidn.
Please make sure this port is built correctly. On my system this is a symbolic link to /opt/local/lib/libidn.11.dylib.