Operating System - HP-UX
1745788 Members
3416 Online
108722 Solutions
New Discussion юеВ

zlib missing when compile openssh

 
June Cui_1
Occasional Contributor

zlib missing when compile openssh

Hi, I need help on compiling openssh on HP 11.00 system.
I have installed Openssl and zlib on the system.
When I run ./configure I got the following message.
chdwhp01:# ./configure
loading cache ./config.cache
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking host system type... hppa2.0w-hp-hpux11.00
checking how to run the C preprocessor... cc -E
checking for ranlib... ranlib
checking for a BSD compatible install... /opt/imake/bin/install -c
checking for ar... ar
checking for perl... /usr/contrib/bin/perl
checking for ent... no
checking for login... /usr/bin/login
checking for inline... no
checking for HPUX trusted system password database... no
checking for deflate in -lz... no
configure: error: *** zlib missing - please install first ***

Any idea what's wrong?

Thanks

June
4 REPLIES 4
Rick Garland
Honored Contributor

Re: zlib missing when compile openssh

Do you have the ANSI C package loaded?

The compiler that comes by default with HP-UX is not meant fo compiling programs. It a stripped down version to do such tasks as the kernel compile.

An option to look at is the gcc compiler. It is ANSI C compliant.
Ralph Grothe
Honored Contributor

Re: zlib missing when compile openssh

Just a wild guess here because I haven't yet compiled openssh on HP-UX.
But I would assume it had a configure script to create an appropriate Makefile for your system.
If so, check with "./configure --help|more" whether there is a flag similar to "--with-ldflags=".
Run a find to search where your zlib resides and provide the flag with the path to the zlib.
Or after configure edit the Makefile and add the path to the macro LDFLAGS.
Possibly you only need to give the linker a hint where to find your zlib (or other required libs to be linked against).
Anyway you should consult the README or INSTALL files that were in the tarball since they should stress the prerequisites.
But as I wrote, this is a wild guess, and you probably should forget my uncalled for comment.
Madness, thy name is system administration
Andreas Voss
Honored Contributor

Re: zlib missing when compile openssh

Hi,

for your job i recommed using gcc compiler. You can get it here:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/
And don't forget the binutils:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.9.1/
zlib can also be downloaded here:
http://hpux.cs.utah.edu/hppd/hpux/Misc/zlib-1.1.3/

Regards
Stefan Farrelly
Honored Contributor

Re: zlib missing when compile openssh


Openssh does a poor job of searching for installed dependant packages, such as zlib. It seems to have problems with the version numbers attached to their names. Copy or link the zlib libraries (x2) from /opt/zlib/lib/ to /lib and run configure again.
Im from Palmerston North, New Zealand, but somehow ended up in London...