1833723 Members
3452 Online
110063 Solutions
New Discussion

SSH 2.0.13 on HP-UX 11

 
Fredrik Nygren_2
New Member

SSH 2.0.13 on HP-UX 11

I was wondering if anyone has been able to compile SSH 2.0.13 for HP-UX 11.0?

I recently upgraded one of our servers from HP-UX 10.20 to 11.0 and as the last
step of that upgrade I have been trying to secure the server. My goal is to
only have SSH open on the server (something that worked perfectly under 10.20).
At first I tried to compile it with gcc 2.0.95 which I downloaded as binaries
from the Software Porting and Archive Centre For HP-UX. When that did not work
I compiled gcc myself, but I still could not compile SSH 2.0.13. Then as a last
resort I tried to compile SSH with HP's own C/ANSI C compiler.

Without posting error messages and such in this forum (I will if anyone wants
me to though) I need to know if anyone has managed to get this to work at all?
Am I just a lousy compiler or is this really impossible?

Any input you might have will be appreciated.

Regards, Fredrik.
2 REPLIES 2
Willaim Hart
Advisor

Re: SSH 2.0.13 on HP-UX 11

frederick,

i have recently installed ssh 2.0.13 on an hp-ux 11.0 environment. the real
trick to making it work is to be sure you have all the proper gcc utilities
installed and all recommended hp-ux patches.

for the systems i installed i used gcc 2.95.2, binutils 2.9.1, bison 1.28 and
flex 2.5.4. note there is a specific order that you need to install the
utilities in so that everything installs properly.
i believe it was bison, flex, binutils then gcc. look at the output from your
configure and make commands that will tell you for sure.

also i needed to install a number of hp-ux 11.0 patches.
they included PHKL 18543, 19537, 19403 and 20629, PHCO_15465, PHSS_17156,
17534, 17566, 18012, 19256, 19963 and 20715.

once you have completed all that it installs and functions well.

hope this helps, good luck.

regards,

bill
Fredrik Nygren_2
New Member

Re: SSH 2.0.13 on HP-UX 11

Thank you for the advice, but I actually managed to compile it with HP C/ANSI C
a couple of hours ago after failing to do so for about a week.

As far as I can tell the error was in /usr/include/rpcsvc/nis.h. In lines
210-213 it says:

struct nis_oid {
u_long ctime;
u_long mtime;
};

What happened everytime I ran make was that everything worked fine until the
compiler came to sshunixuser.c and started complaining about this part of nis.h
and then stop. It took some time to find any info at all about this but after a
while (i.e. a week) I found some documentation that I found on the web (I've
looked but I can't find the URL right now) that said that ctime was deprecated
under HP-UX 11.0 and that you should use strftime instead. After I had changed
ctime to strftime on row 211 in nis.h SSH 2.0.13 compiled just fine.

// Fredrik