Operating System - HP-UX
1851376 Members
2503 Online
104058 Solutions
New Discussion

Re: OpenSSH with 64-bit compiler

 
SOLVED
Go to solution
Paulo A G Fessel
Trusted Contributor

OpenSSH with 64-bit compiler

When testing and certifying rsync, I've found that the only way to transfer 2GB+ files was to compile rsync with a 64-bit compiler, such as the one available at https://www.beepz.com/personal/merijn/. Rsync when compiled with the 64-bit compiler works like a charm.

Having had such success with rsync, I'm trying to do the same thing with OpenSSH, to no avail. The reason to do this is enable scp's with 2GB+ files - and eventually I'll have to recompile all GNU software in order they work this way.

I already learned that I had to rebuild all the external libs I use with the 64-bit compiler, such as tcp-wrappers and zlib. I've managed to successfully build them in 64-bit mode. However, when I make a ./configure --sysconfdir=/etc/opt/openssh/ --prefix=/opt/openssh2 --with-ssl-dir=/opt/openssl/ --with-tcp-wrappers=/opt/tcpwrap64/ --with-prngd-socket --with-zlib=/opt/zlib64/ --disable-suid-ssh --with-pid-dir=/var/run --with-pam --build=hppa64-hp-hpux11.00 the configuration phase stops at

checking for pam_set_item in -lpam
/usr/local/pa20_64/bin/ld: cannot find -lpam

However:

[root@berc0004:~/openssh-3.5p1]# ls -la /usr/lib/*pam*
-r-xr-xr-x 1 bin bin 36864 Oct 15 2001 /usr/lib/libpam.1
lrwxr-xr-x 1 root sys 10 Jan 17 2002 /usr/lib/libpam.sl -> ./libpam.1

and of course, the authentication of my 32-bit OpenSSH is fine.

I think that this problem could be related to linker issues - the 64-bit ld could not understand these files, and so I'd need a 64-bit libpam - which I can't compile, of course...

Any ideas?

TIA,
Paulo Fessel
L'employé propose, le boss dispose.
4 REPLIES 4
Paulo A G Fessel
Trusted Contributor

Re: OpenSSH with 64-bit compiler

Oh, I almost forgot: I'm tryng to compile OpenSSH 3.5p1 with 64-bit GCC 3.2.
L'employé propose, le boss dispose.
rick jones
Honored Contributor
Solution

Re: OpenSSH with 64-bit compiler

Despite what is claimed by the release notes for HP-UX 11, HP has not shipped 64-bit PAM libraries... :( It would be good for anyone wanting to compile 64-bit PAM applications to raise this issue through their official channels...

There is another way to get support for large files without doing the 64-bit compilation - there should be a #define (-D) one can use to enable large file offsets in a 32-bit application. The details are (iirc) in the lseek64 manpage.
there is no rest for the wicked yet the virtuous have no pillows
Donny Jekels
Respected Contributor

Re: OpenSSH with 64-bit compiler

Paulo,

did you ever get the libpam for your 64 bit compilation?
"Vision, is the art of seeing the invisible"
Paulo A G Fessel
Trusted Contributor

Re: OpenSSH with 64-bit compiler

It wasn't neccessary. I've justr actived the 64-bit definitions by hand and it has worked. Recent versions of OpenSSH will take these options automagically.

[]'s
Paulo Fessel
L'employé propose, le boss dispose.