Ticket #18841 (closed defect: fixed)
zlib does not build universal / Tiger-ppc
| Reported by: | jeremyhu@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | muniversal universal | Cc: | mcalhoun@…, pgregory@… |
| Port: | zlib |
Description
On Tiger ppc, zlib doesn't build i386 support for the dylib. Configure spits out:
---> Configuring zlib for architecture i386 Checking for shared library support... No shared library support; try without defining CC and CFLAGS Building static library libz.a version 1.2.3 with /usr/bin/gcc-4.0 -arch i386. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf() Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes.
Putting some debugging into the configure script, it's failing due to:
Checking for shared library support...
/usr/bin/gcc-4.0 -arch i386 -c -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 ztest5532.c
/usr/bin/gcc-4.0 -arch i386 -dynamiclib -install_name ${exec_prefix}/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -o ztest5532.dylib ztest5532.o
ld: Undefined symbols:
_getchar
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
No shared library support; try without defining CC and CFLAGS
The problem is with CC:
~/src/macports-trunk/dports/archivers/zlib/work/i386 $ sudo ./configure --shared
Checking for shared library support...
/usr/bin/gcc-4.0 -arch i386 -c -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 ztest6042.c
/usr/bin/gcc-4.0 -arch i386 -dynamiclib -install_name ${exec_prefix}/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -o ztest6042.dylib ztest6042.o
ld: Undefined symbols:
_getchar
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.3 with /usr/bin/gcc-4.0 -arch i386.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
(01:44:55 Sun Mar 15 2009 jeremy@redxiii Power Macintosh)
~/src/macports-trunk/dports/archivers/zlib/work/i386 $ export CC="/usr/bin/gcc-4.0"
(01:45:02 Sun Mar 15 2009 jeremy@redxiii Power Macintosh)
~/src/macports-trunk/dports/archivers/zlib/work/i386 $ sudo ./configure --shared
Checking for shared library support...
/usr/bin/gcc-4.0 -c -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 ztest6125.c
/usr/bin/gcc-4.0 -dynamiclib -install_name ${exec_prefix}/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -o ztest6125.dylib ztest6125.o
Building shared library libz.1.2.3.dylib with /usr/bin/gcc-4.0.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
Change History
Note: See
TracTickets for help on using
tickets.

