1855040 Members
6041 Online
104109 Solutions
New Discussion

Re: ssh on 10.20

 
Jim Kriegel
Advisor

ssh on 10.20

Hi,
I've been trying to compile ssh.com's versions of ssh on two HPUX systems. I would try Openssh, but the client needs ftp (sftp). I get the following error:

/usr/include/arpa/inet.h:68: sys/bitypes.h: No such file or directory
/usr/include/arpa/inet.h:72: sys/cdefs.h: No such file or directory
*** Error exit code 1

I appears I need a new inet.h, but maybe there's more? Where do I start?

Thanks,
9 REPLIES 9
Kevin Ernst
Regular Advisor

Re: ssh on 10.20

Jim:

As it stands, it looks like it would take at least some porting effort on your part--but it seems really unlikely that they would distribute SSH without support for a mainstream Unix like HP-UX. Maybe double-check the Makefile for HP-UX-specific defines, and glance over the source documentation and maybe their Web site for special HP-UX build instructions.

I'm not sure what exactly you mean by the dependency on FTP, but OpenSSH is supposed to have been compiled and tested for HP-UX, and uses GNU autoconf, so the build process *should* be pretty painless--though I should mention that I haven't gotten around to building OpenSSH on our systems yet, so I don't have any actual first-hand experience.

OpenSSH does depend on OpenSSL ( http://www.openssl.org ), but there's a pre-built depot of OpenSSL 0.9.5a available at your nearest friendly neighborhood HP-UX Software and Porting Archive ( like http://hpux.cae.wisc.edu ). As long as 0.9.5a isn't seriously flawed, you wouldn't have to worry about that part, since someone's already done the work for you. Just set CFLAGS and LDFLAGS appropriately before running 'configure' on the OpenSSH source, like this:

CFLAGS="-I/opt/openssl/include" LDFLAGS="-L/opt/openssl/lib" ./configure --prefix=/opt/openssh <... and so on>

I'm not very well-versed as to what the significant differences/advantages are between the commercial and 'open' SSHes, but for what it's worth...

--Kevin
Dennis Kennedy
Advisor

Re: ssh on 10.20

whats up!

I would locate "find" bitypes.h and cdefs.h. If they are on your system, verify the directory they are in and edit the path of the makefile.in or your path statement to include this directory. Or edit inet.h to look into the "found in" directory.

Hope that helps
later,
D
just do it!
Rick Garland
Honored Contributor

Re: ssh on 10.20

In the SysAdmin magazine for Oct 2000, Volume 9, Number 10

A good article for installing and configuring OpenSSH. Lists various web sites in which to obtain the necessary code and tools.
Kevin Ernst
Regular Advisor

Re: ssh on 10.20

Virtually the first thing I did after reading Jim's post was to use GNU 'locate' to try to find bitypes.h and cdefs.h on a 10.20 box. Unless they're part of the ANSI C/C++ bundle--which I don't have--or some obscure patch bundle, these two header files are not part of a standard 10.20 system.

We don't have any 11.x boxes for comparison, but maybe those files *do* exist on 11.x systems... but then, a search in the HP Technical Knowledge Base doesn't turn up a single hit for either 'bitypes.h' or 'cdefs.h,' so that doesn't seem at all likely.

These files *do* exist on a Linux box: bitypes.h does nothing more than include , but cdefs.h contains a bunch of esoteric compiler-related defines.

But anyway it's all speculation. I guess now I'm curious to the point that I should just go out and get the SSH.com distribution and see for myself.

--Kevin
Dennis Kennedy
Advisor

Re: ssh on 10.20

The files aren't on 11.0 either. I figured he downloaded them, extracted them(in the tar), and needed to adjust the path.

never installed ssh either.
maybe some day
hope this helps
later,
D
just do it!
Dennis Kennedy
Advisor

Re: ssh on 10.20

1 last thing, on line 68 of my inet.h is the begining of an else statement casting alot of inet_.... The inet.h file only includes stdsyms.h which is a bunch of #define.

Hope this helps
later,
D
just do it!
June Hou
Occasional Advisor

Re: ssh on 10.20

I had success building Open SSH v2.3.0p1 on HP-UX 10.20. I used the latest gcc + binutils from hpux.cs.utah.edu (porting archives) as well as the latest zlib and openssl.

Don't forget to copy or symlink the zlib includes and libs to /usr/include and /usr/lib, respectively. Once I did that, I was able to configure and build OpenSSH without trouble.

Actually, I had trouble using an older version of GCC, but once I got the latest, I no longer got compilation errors. I've only tried using ssh in and out so far, but everything did get built okay.

The only other thing to note is that there's a newer version of OpenSSL, 0.9.6, that hasn't been ported yet. AFAIK, 0.9.5a works fine. Good luck. =-)

-cheers, Craig S. Bell
"Nothing works, and nobody cares." -Woody Allen
Kevin Ernst
Regular Advisor

Re: ssh on 10.20

Cool, Craig!

After posting here, I did eventually get OpenSSH 2.2.0p1 to compile on a 10.20 workstation with some combination of the same tools you used (gcc version 2.95.2). Client and server pieces seem to work fine, but we haven't put it into wider use yet.

I think OpenSSL 0.9.5a was reported to have one minor vulnerability that was so obscure and improbable, I ended up putting it out of my mind. I was too impatient to wait for 0.9.6 to compile. =)
Kevin Ernst
Regular Advisor

Re: ssh on 10.20

Jim, if you're still listening--heck, if *anyone's* still following this thread...

I just misunderstood what you meant about the client needing ftp--now it makes sense. OpenSSH has 'scp' (which they state 'replaces rcp and ftp'), but you probably already knew that.

I just started hearing (good things) about a new SSH-capable FTP client called 'hsftp' which uses SSH protocol version 1.x. I don't think it links against any external libraries (maybe the licenses are incompatible), so you couldn't upgrade this to SSH2 by linking OpenSSH 2.3.0, which just recently added support for SSH2.

Hsftp is GPLed, so source is available, but I didn't see any binaries for HP-UX around. But then I didn't look very hard either. The Web page states that it *has* been successfully compiled for HP-UX.

http://la-samhna.de/hsftp/