Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419499 - sys-libs/zlib-1.2.7 fails to compile on OSX Leopard
Summary: sys-libs/zlib-1.2.7 fails to compile on OSX Leopard
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-03 17:34 UTC by MATSUI Tetsushi
Modified: 2012-06-05 11:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.03 KB, text/plain)
2012-06-03 17:35 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2012-06-03 17:34:04 UTC
sys-libs/zlib-1.2.7 fails to compile on OSX Leopard.

Reproducible: Always

Steps to Reproduce:
1. emerge zlib-1.2.7 on OSX Leopard
Actual Results:  
/usr/bin/libtool -o libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o 
i686-apple-darwin9-gcc -O2 -march=nocona -pipe  -DHAVE_HIDDEN -o example example.o -L. libz.a
ld: in libz.a(ams), archive member 'ams' with length 1612 is not mach-o or llvm bitcode for architecture i386
collect2: ld returned 1 exit status
make: *** [example] Error 1
emake failed
Comment 1 MATSUI Tetsushi 2012-06-03 17:35:05 UTC
Created attachment 314065 [details]
emerge --info
Comment 2 Fabian Groffen gentoo-dev 2012-06-04 16:52:17 UTC
I wonder whether it /should/ use /usr/bin/libtool (compared to the prefix one)
Comment 3 Fabian Groffen gentoo-dev 2012-06-04 17:11:28 UTC
confirmed on my MacBook, appears not to be a problem on OSX Lion
Comment 4 Fabian Groffen gentoo-dev 2012-06-04 17:22:35 UTC
Fixed by using Prefix' libtool.  Host libtool produces something newer ld doesn't understand.
Comment 5 Richard Freeman gentoo-dev 2012-06-05 11:02:55 UTC
On solaris I'm now getting this error building zlib:

sed: -e expression #1, char 34: unterminated `s' command
 * ERROR: sys-libs/zlib-1.2.7 failed (unpack phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called call-ebuildshell 'src_unpack'
 *   environment, line 511:  Called src_unpack
 *   environment, line 2658:  Called die
 * The specific snippet of code:
 *       sed -i -e 's:AR="/usr/bin/libtool":AR=libtool' configure || die

Adding the final colon fixes the issue.
Comment 6 Fabian Groffen gentoo-dev 2012-06-05 11:07:11 UTC
oops, thanks, copy 'n' paste error