Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-osx
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
|
|