[MacPorts] #26337: ruby19-1.9.2-p0 Incorrect architecture build error against libz.1.dylib
MacPorts
noreply at macports.org
Thu Sep 2 21:09:00 PDT 2010
#26337: ruby19-1.9.2-p0 Incorrect architecture build error against libz.1.dylib
------------------------------------+---------------------------------------
Reporter: timpalpant@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: | Port:
------------------------------------+---------------------------------------
Ruby19 (1.9.2-p0) attempts to link against /usr/local/lib/libz.1.dylib
instead of the MacPorts version /opt/local/lib/libz.1.dylib. This throws
an error when attempting to link against the library (even though it is a
fat binary and actually contains i386, x86_64, and ppc architectures).
Attempting to build ruby19 (1.9.2-p0) on Snow Leopard with Xcode 3.2.3
using a fresh install of MacPorts (1.9.1):
{{{
:info:build compiling digest/md5
:info:build /usr/bin/gcc-4.2 -dynamic -bundle -o
../../../.ext/x86_64-darwin10/digest/md5.bundle md5init.o md5ossl.o -L.
-L../../.. -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup
-Wl,-multiply_defined,suppress -Wl,-flat_namespace -lruby.1.9.1 -lcrypto
-lpthread -ldl -lobjc
:info:build ld: in /usr/local/lib/libz.1.dylib, file was built for i386
which is not the architecture being linked (x86_64)
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [../../../.ext/x86_64-darwin10/digest/md5.bundle]
Error 1
:info:build make: *** [mkmain.sh] Error 1
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby19/work/ruby-1.9.2-p0"
&& /usr/bin/make -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ruby19):
org.macpolocalhost:_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_
}}}
--
Ticket URL: <http://trac.macports.org/ticket/26337>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list