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
1 >
2 > I'm actually having linker issues with apache. For some reason it is
3 > trying to look for libz in /lib instead of ${PREFIX}/usr/lib (even
4 > though I've told apache that's the location of zlib). Even when I
5 > compile a simple c program that includes zlib.h
6 >
7 > /* end confdefs.h. */
8 > #include <zlib.h>
9 > int
10 > main ()
11 > {
12 > int i = Z_OK;
13 > ;
14 > return 0;
15 > }
16 >
17 > Compile it:
18 > gcc -o foo -O2 -mcpu=i686 -pipe -pthread -I.
19 > -L/data1/tmp/Mar21/usr/lib foo.c -lz
20 >
21 > I get:
22 > /usr/bin/ld: cannot find /lib/libz.so
23 > collect2: ld returned 1 exit status
24 >
25 > Very weird.....
26 >
27
28 More data. If I compile with:
29 -L/data1/tmp/Mar21/usr/lib/JUNK
30 or
31 -L/data1/tmp/Mar21
32 or
33 *no -L*
34 It compiles.... ldd states that it is linking with the system zlib
35 (/usr/lib/lib.so.1)
36
37 --
38 gentoo-osx@g.o mailing list

Replies