Operating System - Linux
1830207 Members
2124 Online
109999 Solutions
New Discussion

Problem compiling openssh 3.9p1 on HP-UX 10.20

 
Peter Kielbasiewicz
Frequent Advisor

Problem compiling openssh 3.9p1 on HP-UX 10.20

When I try to compile openssh 3.9p1 on HP-UX 10.20 I get the error below.
I have tried with gcc 3.0.1 and HP92453-01 A.10.32.30 HP ANSI C Compiler.

The errors are slightly different but within the same area.
How can I solve this problem?

I have attached the the configure and make logs for reference.

--
best regards

Peter Kielbasiewicz

#compiled with gcc:
In file included from ssh-keyscan.c:16:
/usr/include/setjmp.h:35: `_JBLEN' undeclared here (not in a function)
/usr/include/setjmp.h:35: size of array `sigjmp_buf' has non-integer type
/usr/include/setjmp.h:53: parse error before "int"
ssh-keyscan.c:57: parse error before "kexjmp"
ssh-keyscan.c:57: warning: type defaults to `int' in declaration of `kexjmp'
ssh-keyscan.c:57: warning: data definition has no type or storage class
ssh-keyscan.c: In function `hostjump':
ssh-keyscan.c:318: warning: implicit declaration of function `longjmp'
ssh-keyscan.c: In function `keygrab_ssh2':
ssh-keyscan.c:352: warning: implicit declaration of function `setjmp'
ssh-keyscan.c: In function `tcpconnect':
ssh-keyscan.c:384: warning: implicit declaration of function `snprintf'
*** Error exit code 1


#compiled with HP92453-01:
cc: "openbsd-compat/glob.h", line 46: warning 617: Redeclaration of tag "stat" ignored.
cc: "/usr/include/setjmp.h", line 35: error 1588: "_JBLEN" undefined.
cc: "/usr/include/setjmp.h", line 35: error 1502: Array size must be a constant expression.
cc: "/usr/include/setjmp.h", line 52: error 1506: Parameters allowed in function definition only.
cc: "/usr/include/setjmp.h", line 53: error 1000: Unexpected symbol: "int".
cc: "/usr/include/setjmp.h", line 53: error 1506: Parameters allowed in function definition only.
cc: "/home/development/openssh/openssl/openssl-0.9.7e/include/openssl/evp.h", line 783: warning 617: Redeclarati
on of tag "rsa_st" ignored.
cc: "/home/development/openssh/openssl/openssl-0.9.7e/include/openssl/evp.h", line 788: warning 617: Redeclarati
on of tag "dsa_st" ignored.
cc: "/home/development/openssh/openssl/openssl-0.9.7e/include/openssl/evp.h", line 793: warning 617: Redeclarati
on of tag "dh_st" ignored.
cc: "ssh-keyscan.c", line 57: error 1000: Unexpected symbol: "kexjmp".
cc: "ssh-keyscan.c", line 57: warning 557: Missing declaration specifiers, "int" assumed.
cc: "ssh-keyscan.c", line 318: error 1588: "kexjmp" undefined.
cc: "ssh-keyscan.c", line 352: error 1588: "kexjmp" undefined.
cc: "ssh-keyscan.c", line 671: error 1588: "kexjmp" undefined.*** Error exit code 1
*** Error exit code 1

14 REPLIES 14
Ravi_8
Honored Contributor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

Hi,

It's not supported on 10.20
never give up
Peter Kielbasiewicz
Frequent Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

Sorry,
what is not supported?
I was able to compile openssl, zlib, tcp wrappers and prngd.
So what is the problem with openssh?


We have a frozen environment of HP-UX 10.20 which we can not upgrade due to product lifecycle support reasons.
Nivesh Patnaik
Frequent Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

I'm interested in knowing if you ever
managed to compile OpenSSH3.9 on HP-UX 10.20.

Also, what source versions of zlib and
openSSL you used.

Thanks.
I gave him his drink as usual. Some men can't hold their arsenic.
Paul F. Carlson
Valued Contributor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

I have successfully compiled OpenSSH 3.8p1 for 10.20 using HP ANSI C compiler.

openSSL: version 0.9.7d
zlib: 1.2.1

I had a heck of a time trying to compile with gcc, but it went pretty easily with HP ANSI C compiler.
Link down -- cable problem?
Peter Kielbasiewicz
Frequent Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

After putting the question to secureshell@securityfocus.com I got an anser which solved my problem.
I had to apply the patch
http://bugzilla.mindrot.org/show_bug.cgi?id=947 and everything was fine.

For references I have attached my build script.
It is a wrapper which I use to compile all parts required for openssh.
I wrote it so I do not need to remember all the steps and document the process scriptwise.
I adapt it manually to use the HP-ANSI C compiler or gcc or to compile only parts of the suite.
I hope it can be useful to others too.


Wai Kiong Choy
Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

I have successfully compiled Openssh 3.9 with Openssl 0.9.7e on HP-UX 10.20.

_JBLEN is not defined in HP-UX 10.20 (at least it is not defined when compiling the openssh code). You have to edit the openssh source code to define it explicitly.

Also, the base source distribution of Openssh 3.9 does not take care of locked account in HP-UX trusted mode (ie. you can still lock in even it the account is locked in tcb). You have to modify auth.c to take care of this.

I can send you the depot if you do not want to go through the trouble to compile the program. Just post your request on this forum.
Wai Kiong Choy
Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

update: I have successfully compiled OpenSSH 3.9 with OpenSSL 0.9.7f (the latest OpenSSL version as on 23 mar 05) for HP-UX 10.20.

Let me know if anyone want the Openssh or Openssl depot for HP-UX 10.20.
TwoProc
Honored Contributor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

It's already been done by the folks at the HP porting archive.

Search Google for "HPUX Porting Archive" to find the one of the mirror sites.

Once you've found any of the porting archives sites they have links to all of the other sites by country (look at the flags).

Once there, search for "Openssh" in the package search box. If you look in the resulting page for the 3.9 version there are links to files for categories for HPUX11.1(PARISC),HPUX11.2 (Itanium), and HPUX - which is for HPUX 10.20.

We are the people our parents warned us about --Jimmy Buffett
Wai Kiong Choy
Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

I don't think it has been done by people at the hp-ux software porting site for HP-UX 10.20. HP-UX software porting site does not build software for HP-UX 10.20 anymore.

The files available under HP-UX section at the HP-UX Software porting site are just the source code. They have not been compiled and packaged into a depot yet. You will need to compile the source code yourself.

Furthermore, the source code did not take care of the locking of account in HP-UX trusted mode. As far as I can see, there is no difference between the source code downloaded from the OpenSSH site and HP-UX software porting site.
Wai Kiong Choy
Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

Update: For those folks like me who are stuck with HP-UX 10.20, I have compiled OpenSSH 4.0 with OpenSSL 0.9.7f for HP-UX 10.20.

I am willing to share the fruits of my efforts. Just let me know if you want the software.

Cheers.

Becke
Super Advisor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20


Hi Choy,

I'm just wondering if you can provide me the openssh software together with openssl.

I need the above sofwares for our Hp os version 10.01.

I have done research on the openssh.com site but I'm unable to determine which the right software for our 10.01 operating system.

Thanks for your help.

Cheers,
Raf
Tokyo ETP
New Member

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

Hi Choi,

Can you please post exactly what you had changed so that we can implement it to our source code. It would be very much appreciate it since we have to upgrade all the time and knowing what needs to be changed in the source code makes it easier the next time. Thanks!

-Alan
animal
H.Merijn Brand (procura
Honored Contributor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

Choy, I'm more than willing to host your port on my site if you like.

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn [ merijn at procura dot nl ]
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: Problem compiling openssh 3.9p1 on HP-UX 10.20

BTW I ported it too, but Choy's version is newer

d3:/u/usr/merijn 101 > ssh -V
OpenSSH_4.0p1, OpenSSL 0.9.7d 17 Mar 2004
d3:/u/usr/merijn 102 >

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn