Gentoo Archives: gentoo-osx

From: Kito <kito@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] [PREFIX] SUCCESS!!! system installed
Date: Fri, 24 Mar 2006 03:08:08
Message-Id: A30B72D9-A547-4952-B885-9D79FF42B6D5@gentoo.org
In Reply to: Re: [gentoo-osx] [PREFIX] SUCCESS!!! system installed by m h
On Mar 23, 2006, at 7:52 PM, m h wrote:

>> >> I'm actually having linker issues with apache. For some reason it is >> trying to look for libz in /lib instead of ${PREFIX}/usr/lib (even >> though I've told apache that's the location of zlib). Even when I >> compile a simple c program that includes zlib.h >> >> /* end confdefs.h. */ >> #include <zlib.h> >> int >> main () >> { >> int i = Z_OK; >> ; >> return 0; >> } >> >> Compile it: >> gcc -o foo -O2 -mcpu=i686 -pipe -pthread -I. >> -L/data1/tmp/Mar21/usr/lib foo.c -lz >> >> I get: >> /usr/bin/ld: cannot find /lib/libz.so >> collect2: ld returned 1 exit status >> >> Very weird..... >>
Hrmm, your gcc is using the system ld.... we need to fix that first I think.
> > More data. If I compile with: > -L/data1/tmp/Mar21/usr/lib/JUNK > or > -L/data1/tmp/Mar21 > or > *no -L* > It compiles.... ldd states that it is linking with the system zlib > (/usr/lib/lib.so.1)
Yeah, lets go back to the first problem of getting gcc using the portage binutils....I don't like this one ;) --Kito -- gentoo-osx@g.o mailing list

Replies

Subject Author
Re: [gentoo-osx] [PREFIX] SUCCESS!!! system installed Grobian <grobian@g.o>