zlib missing when installing openssh-3.7.1p2

Darren Tucker dtucker at zip.com.au
Sat Nov 22 11:41:36 EST 2003


"Pacelli, Louis M, ALABS" wrote:
> 
> Hi,
> I apologize for sending in this problem via email, but I had trouble using bugzilla.

Please use openssh-unix-dev at mindrot.org for problems with OpenSSH Portable
(ie anything that's not OpenBSD).

> I'm trying to install openssh-3.7.1p2
> When I run the configure step, I get the following message:
> 
> configure:5641: checking for deflate in -lz
> configure:5668: cc -o conftest -g  -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURC
> E_EXTENDED=1  conftest.c -lz  -lnsl -lxnet  -lsec >&5
> + eval $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LI
> BS >&5
> + cc -o conftest -g -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 co
> nftest.c -lz -lnsl -lxnet -lsec
> + 1>& 5
> /usr/ccs/bin/ld: Can't find library: "z"
> configure:5671: $? = 1
> configure: failed program was:
> #line 5649 "configure"
> #include "confdefs.h"
> 
> /* Override any gcc2 internal prototype to avoid an error.  */
> #ifdef __cplusplus
> extern "C"
> #endif
> /* We use char because int might match the return type of a gcc2
>    builtin and then its argument prototype would still apply.  */
> char deflate ();
> int
> main ()
> {
> deflate ();
>   ;
>   return 0;
> }
> configure:5688: result: no
> configure:5698: error: *** zlib missing - please install first or check config.l
> 
> I do have zlib installed. How can I make this script find zlib?

Try using --with-zlib=/path/to/zlib (eg /usr/local if that's where you
installed zlib).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list