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"
When I try to make openssh I get the following error in the openbsd-compat directory.
(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'
/usr/include/sys/socket.h:440: warning: data definition has no type or storage class
/usr/include/sys/socket.h:441: parse error before `sendpath'
/usr/include/sys/socket.h:441: parse error before `bsize_t'
/usr/include/sys/socket.h:442: warning: data definition has no type or storage class
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
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
It seems like gcc is having problems with the system include files. Any ideas on how I could get around this?
Thanks,
Ian Prowell
