[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Library path with AC_CHECK_LIB
From: |
Assar Westerlund |
Subject: |
Re: Library path with AC_CHECK_LIB |
Date: |
07 Jun 2003 02:23:15 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Bill Moseley <address@hidden> writes:
> I was building our package on a Solaris 2.6 machine and ended up with:
>
> ld: fatal: library -lz: not found
>
> On this machine libz is in /usr/local/lib.
>
> Running truss shows:
>
> open("/usr/ccs/lib/libz.so", O_RDONLY) Err#2 ENOENT
> open("/usr/ccs/lib/libz.a", O_RDONLY) Err#2 ENOENT
> open("/usr/lib/libz.so", O_RDONLY) Err#2 ENOENT
> open("/usr/lib/libz.a", O_RDONLY) Err#2 ENOENT
> ld: write(2, " l d : ", 4) = 4
> fatal: write(2, " f a t a l : ", 7) = 7
> library -lwrite(2, " l i b r a r y - l", 10) = 10
> zwrite(2, " z", 1) = 1
> : not foundwrite(2, " : n o t f o u n d", 11) = 11
>
> So it's not looking in /usr/local/lib.
>
> So my question is why is configure finding libz?
I can only guess that this happens because the compiler/linker and/or
flags are different between the link that succeeds at configure-time
and the one that fails at make-time.
You'll have to look through config.log to find the actual command that
worked.
- Library path with AC_CHECK_LIB, Bill Moseley, 2003/06/04
- Re: Library path with AC_CHECK_LIB,
Assar Westerlund <=
- Re: Library path with AC_CHECK_LIB, moseley, 2003/06/07
- Re: Library path with AC_CHECK_LIB, Assar Westerlund, 2003/06/07
- Re: Library path with AC_CHECK_LIB, Bill Moseley, 2003/06/07
- Re: Library path with AC_CHECK_LIB, moseley, 2003/06/11
- Re: Library path with AC_CHECK_LIB, Lars Hecking, 2003/06/11
- Re: Library path with AC_CHECK_LIB, Paul Eggert, 2003/06/11
- Re: Library path with AC_CHECK_LIB, Bill Moseley, 2003/06/11