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
Created attachment 314065 [details] emerge --info
I wonder whether it /should/ use /usr/bin/libtool (compared to the prefix one)
confirmed on my MacBook, appears not to be a problem on OSX Lion
Fixed by using Prefix' libtool. Host libtool produces something newer ld doesn't understand.
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.
oops, thanks, copy 'n' paste error