Title: RE: Compiling OpenSSH on HP-UX 11i

Lutz,
Thanks for the info.  I looked into the details a little more and it ended up that I had a bad version of gcc.  I replaced it with the one that HP provides and was able to get things work.  I had to setup EGD, but I guess that HP-UX requires that.

Thanks,
Ian Prowell

-----Original Message-----
From: Lutz Jaenicke [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 8:20 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Compiling OpenSSH on HP-UX 11i


On Fri, Apr 06, 2001 at 09:17:20AM -0700, Ian Prowell wrote:
> I am trying to get OpenSSH working on HP-UX 11i.  I have installed openssl
> in /opt/openssl and also zlib into /usr/local.  The system has gcc 2.95.2
> installed.  I am running the following command to configure openssh 2.5.2p2:
> ./configure --include=/usr/local/include --with-lflags="-L /usr/local/lib"

All of this seems to be fine except of gcc-2.95.2. I am using HP-UX 10.20,
so I don't follow the development for HP-UX 11 very close, but I do remember
several occasions on which I read that gcc-2.95.2 does not work correctly
on HP-UX 11 (probably also including the very new 11i).
If you have HP's ANSI C compiler available I would recommend you to use
it instead of gcc.

Now to your error messages.

>         (cd openbsd-compat; make)
>         gcc -g -O2 -Wall -I. -I.. -I. -I./..  -D_HPUX_SOURCE
> -I/opt/openssl/include -DHAVE_CONFIG_H -c bsd-arc4random.c
> In file included from ../defines.h:14,
>                  from ../config.h:719,
>                  from ../includes.h:22,
>                  from bsd-arc4random.c:25:
> /usr/include/sys/socket.h:439: parse error before `sendfile'
> /usr/include/sys/socket.h:439: parse error before `bsize_t'

At this point it would help much to see what exactly is written before
"sendfile", probably a data type that is not correctly defined in
some way.
[more similar error messages ommitted]

> In file included from ../config.h:719,
>                  from ../includes.h:22,
>                  from bsd-arc4random.c:25:
> ../defines.h:226: warning: redefinition of `socklen_t'
> /usr/include/sys/socket.h:193: warning: `socklen_t' previously declared here

This particular error has to be cross checked. HP-UX 10 does not have
socklen_t, don't know about HP-UX 11. If the error message can be
trusted, 11i does have socklen_t.
This error should however not be triggered at all, since socklen_t should
be recognized by the configure command, so that the redefinition should
never occur.
Please check out line 193 of socket.h to see, whether there really is
a socklen_t defined (and it would be interesting to see, what is logged
in config.log for the socklen_t test, if it is defined).

All of this may be made very difficult by gcc, because during installation
it scans the system header files and creates modified copies it installs
in /usr/local/lib/gcc-lib/hp.../2.95.2/includes and may use them instead
of the system header files. When these header files where created on
another OS version (e.g. 10.20), strange things might happen.

Consequently I would ask you to retry with HP's ANSI C compiler and
report your results.

Best regards,
        Lutz
PS. I would recommend you to report to the openssh-unix-dev list, since
this list is specialized on porting issues of openssh.
--
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153

Reply via email to