Mailing List Archive

openssh make FAILS, any idea, here's the error text
Hi, this is on an aix v4.3 server. openssl and zlib installed fine, but i
get a zlib error??? I'm using the previous versions due to the aix 4.3
matchup. Thanks in advance for correcting this...

myserver:/home/root/openssh-3.9p1
# make
if test ! -z "yes"; then \
/usr/local/bin/perl ./fixprogs ssh_prng_cmds ; \
fi
(cd openbsd-compat && make)
make[1]: Entering directory `/home/root/openssh-3.9p1/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/root/openssh-3.9p1/openbsd-compat'
comitserv:/home/root/openssh-3.9p1
# make install
(cd openbsd-compat && make)
make[1]: Entering directory `/home/root/openssh-3.9p1/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/root/openssh-3.9p1/openbsd-compat'
(cd scard && make DESTDIR= install)
make[1]: Entering directory `/home/root/openssh-3.9p1/scard'
../mkinstalldirs /usr/local/share
.././install-sh -c -m 0644 ./Ssh.bin /usr/local/share/Ssh.bin
make[1]: Leaving directory `/home/root/openssh-3.9p1/scard'
./mkinstalldirs /usr/local/bin
./mkinstalldirs /usr/local/sbin
./mkinstalldirs /usr/local/man
./mkinstalldirs /usr/local/share
./mkinstalldirs /usr/local/man/man1
./mkinstalldirs /usr/local/man/man5
./mkinstalldirs /usr/local/man/man8
./mkinstalldirs /usr/local/libexec
(umask 022 ; ./mkinstalldirs /var/empty)
./install-sh -c -m 0755 -s ssh /usr/local/bin/ssh
./install-sh -c -m 0755 -s scp /usr/local/bin/scp
./install-sh -c -m 0755 -s ssh-add /usr/local/bin/ssh-add
./install-sh -c -m 0755 -s ssh-agent /usr/local/bin/ssh-agent
./install-sh -c -m 0755 -s ssh-keygen /usr/local/bin/ssh-keygen
./install-sh -c -m 0755 -s ssh-keyscan /usr/local/bin/ssh-keyscan
./install-sh -c -m 0755 -s sshd /usr/local/sbin/sshd
if test ! -z "yes" ; then \
./install-sh -c -m 0755 -s ssh-rand-helper
/usr/local/libexec/ssh-rand-helper ; \
fi
./install-sh -c -m 4711 -s ssh-keysign /usr/local/libexec/ssh-keysign
./install-sh -c -m 0755 -s sftp /usr/local/bin/sftp
./install-sh -c -m 0755 -s sftp-server /usr/local/libexec/sftp-server
./install-sh -c -m 644 ssh.1.out /usr/local/man/man1/ssh.1
./install-sh -c -m 644 scp.1.out /usr/local/man/man1/scp.1
./install-sh -c -m 644 ssh-add.1.out /usr/local/man/man1/ssh-add.1
./install-sh -c -m 644 ssh-agent.1.out /usr/local/man/man1/ssh-agent.1
./install-sh -c -m 644 ssh-keygen.1.out /usr/local/man/man1/ssh-keygen.1
./install-sh -c -m 644 ssh-keyscan.1.out /usr/local/man/man1/ssh-keyscan.1
./install-sh -c -m 644 sshd_config.5.out /usr/local/man/man5/sshd_config.5
./install-sh -c -m 644 ssh_config.5.out /usr/local/man/man5/ssh_config.5
./install-sh -c -m 644 sshd.8.out /usr/local/man/man8/sshd.8
if [ ! -z "yes" ]; then \
./install-sh -c -m 644 ssh-rand-helper.8.out
/usr/local/man/man8/ssh-rand-helper.8 ; \
fi
./install-sh -c -m 644 sftp.1.out /usr/local/man/man1/sftp.1
./install-sh -c -m 644 sftp-server.8.out /usr/local/man/man8/sftp-server.8
./install-sh -c -m 644 ssh-keysign.8.out /usr/local/man/man8/ssh-keysign.8
rm -f /usr/local/bin/slogin
ln -s ./ssh /usr/local/bin/slogin
rm -f /usr/local/man/man1/slogin.1
ln -s ./ssh.1 /usr/local/man/man1/slogin.1
if [ ! -d /usr/local/etc ]; then \
./mkinstalldirs /usr/local/etc; \
fi
/usr/local/etc/ssh_config already exists, install will not overwrite
/usr/local/etc/sshd_config already exists, install will not overwrite
/usr/local/etc/ssh_prng_cmds already exists, install will not overwrite
/usr/local/etc/moduli already exists, install will not overwrite
/usr/local/etc/ssh_host_key already exists, skipping.
/usr/local/etc/ssh_host_dsa_key already exists, skipping.
/usr/local/etc/ssh_host_rsa_key already exists, skipping.
/usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config
Could not load program /usr/local/sbin/sshd
Could not load library libz.a[shr.o]
Error was: No such file or directory
make: [check-config] Error 255 (ignored)
Re: openssh make FAILS, any idea, here's the error text [ In reply to ]
Richard Francis wrote:
> Hi, this is on an aix v4.3 server. openssl and zlib installed fine, but i
> get a zlib error??? I'm using the previous versions due to the aix 4.3
> matchup. Thanks in advance for correcting this...
[..]
> /usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config
> Could not load program /usr/local/sbin/sshd
> Could not load library libz.a[shr.o]
> Error was: No such file or directory

Actually it built but it won't run. It looks like you have a dynamic
zlib that's not in the standard library paths. You need to specify a
blibpath to include the directory where zlib lives.

This is described in README.platform:

If you wish to use dynamic libraries that aren't in the normal system
locations (eg IBM's OpenSSL and zlib packages) then you will need to
define the environment variable blibpath before running configure, eg

blibpath=/lib:/usr/lib:/opt/freeware/lib ./configure \
--with-ssl-dir=/opt/freeware --with-zlib=/opt/freeware

Also, 3.9p1 is quite old, you might want to use the current version (5.2p1).

--
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.
RE: openssh make FAILS, any idea, here's the error text [ In reply to ]
Thank you very much. While with the addition of $BLIBPATH did not work with
v3.9p1, it DID WORK with v5.2p1. Is an sshd daemon supposed to be running?
Running ssh at the cl simply returns its' help.



-----Original Message-----
From: Darren Tucker [mailto:dtucker@zip.com.au]
Sent: Sunday, May 17, 2009 6:45 PM
To: rfransix@comcast.net
Cc: secureshell@securityfocus.com
Subject: Re: openssh make FAILS, any idea, here's the error text

Richard Francis wrote:
> Hi, this is on an aix v4.3 server. openssl and zlib installed fine,
> but i get a zlib error??? I'm using the previous versions due to the
> aix 4.3 matchup. Thanks in advance for correcting this...
[..]
> /usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config Could not load
> program /usr/local/sbin/sshd Could not load library libz.a[shr.o]
> Error was: No such file or directory

Actually it built but it won't run. It looks like you have a dynamic zlib
that's not in the standard library paths. You need to specify a blibpath to
include the directory where zlib lives.

This is described in README.platform:

If you wish to use dynamic libraries that aren't in the normal system
locations (eg IBM's OpenSSL and zlib packages) then you will need to define
the environment variable blibpath before running configure, eg

blibpath=/lib:/usr/lib:/opt/freeware/lib ./configure \
--with-ssl-dir=/opt/freeware --with-zlib=/opt/freeware

Also, 3.9p1 is quite old, you might want to use the current version (5.2p1).

--
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.
Re: openssh make FAILS, any idea, here's the error text [ In reply to ]
On Tue, May 19, 2009 at 09:21:07PM -0500, Richard Francis wrote:
>
> Thank you very much. While with the addition of $BLIBPATH did not work with
> v3.9p1, it DID WORK with v5.2p1. Is an sshd daemon supposed to be running?
> Running ssh at the cl simply returns its' help.

You'll need to start it (ie run /usr/sbin/sshd as root). It won't
restart on boot unless you add it to a startup script (eg /etc/rc.tcpip).

Another option is to build a .bff package (contrib/aix/buildbff.sh) then
use smit to install it (the postinstall script creates a SRC service
"sshd" which it sticks into rc.tcpip and you can also start and stop manually
with startsrc and stopsrc.

A third option is to use s sysV style startup script if you version has
those.

--
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.