>
> 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)
--
[email protected] mailing list