[MacPorts] #20406: mysql5 can't find zlib on Snow Leopard
MacPorts
noreply at macports.org
Thu Jul 23 00:42:46 PDT 2009
#20406: mysql5 can't find zlib on Snow Leopard
--------------------------------+-------------------------------------------
Reporter: conradwt@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: snowleopard | Port: mysql5
--------------------------------+-------------------------------------------
Comment(by ryandesign@…):
Ok, there are some relevant-looking lines in the config.log:
{{{
configure:21812: checking for zlib compression library
configure:21980: /usr/bin/gcc-4.2 -o conftest -O2 -arch x86_64
-I/opt/local/include -I/opt/local/include -L/opt/local/lib -arch x86_64
conftest.c -lm -L/opt/local/lib -lz >&5
ld: warning: in /opt/local/lib/libz.dylib, file is not of required
architecture
}}}
So you're building a 64-bit version of mysql5, which makes sense since
that's now the default as of Snow Leopard. But it doesn't think zlib was
built 64-bit. This is conceivable as zlib doesn't use a standard configure
script. I assume your libz is 32-bit? What does "file" say about your
libz.dylib? I have this:
{{{
$ file /opt/local/lib/libz.dylib
/opt/local/lib/libz.dylib: symbolic link to `libz.1.2.3.dylib'
$ file /opt/local/lib/libz.1.2.3.dylib
/opt/local/lib/libz.1.2.3.dylib: Mach-O universal binary with 2
architectures
/opt/local/lib/libz.1.2.3.dylib (for architecture i386): Mach-O
dynamically linked shared library i386
/opt/local/lib/libz.1.2.3.dylib (for architecture ppc): Mach-O
dynamically linked shared library ppc
$
}}}
Of course, I'm on Tiger, and I built universal for i386 ppc.
--
Ticket URL: <http://trac.macports.org/ticket/20406#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list