Mailing List Archive

Problem building OpenSSH-1.2.2 on HP-UX
Hi,

Just wanted to let you know, that I had a small problem when compiling
OpenSSH-1.2.2 on a HP-UX 10.20 trusted system. I used gcc-2.95.2 as
compiler. I finally could compile it, but I had to comment two lines in
login.c. (I am using openssl-0.9.4 and egd-0.6, if this matters.)

line 236:

login(&u, &utx);

and the closing brace in line 272.

Commenting these two lines it compiled ok and also seems to run fine.

Kind regards,
Otmar Stahl
Re: Problem building OpenSSH-1.2.2 on HP-UX [ In reply to ]
Is it possible you could send the compiler errors for the unedited
OpenSSH 1.2.2, and the contents of config.h after running configure?

Ta,
-Andre

Otmar Stahl wrote:
>
> Hi,
>
> Just wanted to let you know, that I had a small problem when compiling
> OpenSSH-1.2.2 on a HP-UX 10.20 trusted system. I used gcc-2.95.2 as
> compiler. I finally could compile it, but I had to comment two lines in
> login.c. (I am using openssl-0.9.4 and egd-0.6, if this matters.)
>
> line 236:
>
> login(&u, &utx);
>
> and the closing brace in line 272.
>
> Commenting these two lines it compiled ok and also seems to run fine.
>
> Kind regards,
> Otmar Stahl
Re: Problem building OpenSSH-1.2.2 on HP-UX [ In reply to ]
On Mon, Jan 31, 2000 at 03:37:30PM +0000, Andre Lucas wrote:
> Is it possible you could send the compiler errors for the unedited
> OpenSSH 1.2.2, and the contents of config.h after running configure?

Thank you for the fast reply!

I attach config.h

The first compiler error is:

gcc -g -O2 -Wall -I/usr/local/ssl/include -D_HPUX_SOURCE
-DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H
-c login.c
login.c:236: parse error before &'
login.c:236: warning: type defaults to int' in declaration of login'
login.c:236: conflicting types for login'
bsd-login.h:12: previous declaration of login'
login.c:236: warning: data definition has no type or storage class
*** Error exit code 1

Stop.

After commenting line 236, I get:

gcc -g -O2 -Wall -I/usr/local/ssl/include -D_HPUX_SOURCE
-DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H
-c login.c
login.c:272: parse error before }'
*** Error exit code 1

Stop.

Kind regards,
Otmar

> Ta,
> -Andre
>
> Otmar Stahl wrote:
> >
> > Hi,
> >
> > Just wanted to let you know, that I had a small problem when compiling
> > OpenSSH-1.2.2 on a HP-UX 10.20 trusted system. I used gcc-2.95.2 as
> > compiler. I finally could compile it, but I had to comment two lines in
> > login.c. (I am using openssl-0.9.4 and egd-0.6, if this matters.)
> >
> > line 236:
> >
> > login(&u, &utx);
> >
> > and the closing brace in line 272.
> >
> > Commenting these two lines it compiled ok and also seems to run fine.
> >
> > Kind regards,
> > Otmar Stahl
Re: Problem building OpenSSH-1.2.2 on HP-UX [ In reply to ]
Hello again,

I forgot to mention that I see error messages in the syslog of the form:

Jan 31 16:34:13 hp3 sshd[5320]: error: ioctl I_PUSH ttcompat: Invalid argument

Nevertheless, everything seems to work ok.

Kind regards,
Otmar

On Mon, Jan 31, 2000 at 03:37:30PM +0000, Andre Lucas wrote:
> Is it possible you could send the compiler errors for the unedited
> OpenSSH 1.2.2, and the contents of config.h after running configure?
>
> Ta,
> -Andre
>
> Otmar Stahl wrote:
> >
> > Hi,
> >
> > Just wanted to let you know, that I had a small problem when compiling
> > OpenSSH-1.2.2 on a HP-UX 10.20 trusted system. I used gcc-2.95.2 as
> > compiler. I finally could compile it, but I had to comment two lines in
> > login.c. (I am using openssl-0.9.4 and egd-0.6, if this matters.)
> >
> > line 236:
> >
> > login(&u, &utx);
> >
> > and the closing brace in line 272.
> >
> > Commenting these two lines it compiled ok and also seems to run fine.
> >
> > Kind regards,
> > Otmar Stahl