Operating System - Linux
1751935 Members
4763 Online
108783 Solutions
New Discussion юеВ

OpenSSH build w/ tcpwrappers fails

 
Denver Osborn
Honored Contributor

OpenSSH build w/ tcpwrappers fails

Maybe someone has seen this before. I'm trying to build openssh w/ tcpwrappers support and the configure fails when checking for libwrap.a. TCP-WRAPPERS is installed and libwrap.a and tcpd.h are on the box. Here's my syntax

CC=gcc ./configure --prefix=/usr/local/ssh \
--with-pam \
--with-ssl-dir=/usr/local/ssl \
--with-tcp-wrappers \
--with-zlib=../zlib \
--with-kerberos5 \
--with-rand-helper \
--with-md5-passwords \
--with-4in6 \
--build=hppa2.0n-hp-hpux11.11

fails with "checking for libwrap... configure: error: *** libwrap missing"

What am I missing?

-denver

13 REPLIES 13
Zinky
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

Why don't you just use HP's SecureShell build? It is fully supported by HP.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Denver Osborn
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

That would be too easy :)

I'm looking to support a build of OpenSSH that will do logging for both sftp and scp file xfers. HP's patched for sftp logging, but their build won't handle scp logging.

-denver
Zinky
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

Then use the sources that comes with it:

/opt/ssh/src

Both TCP wrappers and SSH sources are shipped with HP's build.

I'll see if I can compile it with HP's C Compiler...
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Sameer_Nirmal
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

Hi,

It looks like the path problem. You need to ensure the "tcpd.h" is included from the "include" directory and the library file
"libwrap.a" path is given in the lib path or attribute to gcc "with-tcp-wrappers=

Sameer_Nirmal
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

Steven E. Protter
Exalted Contributor

Re: OpenSSH build w/ tcpwrappers fails

Shalom Denver,

Two ideas:

1) Make a change request to HP because I think scp should be logged. I'll be contacting HP Israel on this and other nagging issues in a few weeks.
2) Make sure the components you are trying to compile are on both the PATH and SHLIB_PATH

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Zinky
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

David,

If you can give me the snippet of code or needed changes - I can try to compile for you. I'll compile HP's sources. We've HP supported versions of Zlib, TCP wrappers - so I am confident my build -- which will be using HP's C compiler mightjust do the trick...


I am also interesetd in sftp and scp logging ;^)

BTW, have you tried if the current HP Secure Shell build has this functionality already?
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Denver Osborn
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

thanks SEP, when I have time I'll ask HP about getting an enhancement request to add scp logging.

for anyone interested, here are the patches I use... http://www.sweb.cz/v_t_m/ His patch is based on the sftp logging patch that hp uses for their build.

I'd supported another custom openssh build before and used these same patches. I don't have my notes from that build process... but I didn't need krb5 or tcp-wrappers either.

If anyone gets bored and has the time to fiddle with it, please post your notes. :)

-denver
Arunvijai_4
Honored Contributor

Re: OpenSSH build w/ tcpwrappers fails

Hi Denver, Can you do the following ?

# make distclean
# CC=gcc ./configure --prefix=/usr/local/ssh \
--with-pam \
--with-ssl-dir=/usr/local/ssl \
--with-zlib=../zlib \
--with-kerberos5 \
--with-rand-helper \
--with-md5-passwords \
--with-4in6 \
--build=hppa2.0n-hp-hpux11.11

I have just taken --with-tcp-wrappers as you said, you don't require. It should be OK now.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"