Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] [PREFIX] SUCCESS!!! system installed
Date: Fri, 24 Mar 2006 01:53:11
Message-Id: e36b84ee0603231752q71fc2bf4p53585c3c49fb93d7@mail.gmail.com
In Reply to: Re: [gentoo-osx] [PREFIX] SUCCESS!!! system installed by m h
> > 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..... >
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) -- gentoo-osx@g.o mailing list

Replies