I figured out the problem.
I'd had the --enable-blocking-connect option within configure.
Once I'd removed it the compilation worked just fine.
Is there a patch for this fix in 2.4.0?
-- Wally Winzer Jr.
"Auteria Wally Winzer Jr." wrote:
> This is the error when compiling ssh-2.4.0 on Solaris-2.5.1:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I. -I. -I../../../..
> -I../../../.. -I../../../../lib/sshutil -I../../../../lib/sshutil/sshcore
> -I../../../../lib/sshutil/sshadt -I../../../../lib/sshutil/ssholdadt
> -I../../../../lib/sshutil/sshstrutil -I../../../../lib/sshutil/ssheloop
> -I../../../../lib/sshutil/sshstream -I../../../../lib/sshutil/sshfsm
> -I../../../../lib/sshutil/sshsysutil -I../../../../lib/sshutil/sshnet
> -I../../../../lib/sshutil/sshmisc -I../../../../lib/sshutil/sshpacketstream
> -I../../../../lib/sshutil/sshtestutil -I../../../../lib/zlib
> -I../../../../lib/sshmath -I../../../../lib/sshreadline
> -I../../../../lib/sshapputil -I../../../../lib/sshcrypt
> -I../../../../lib/sshproto -I../../../../lib/sshsession -I../../../../lib/sshpgp
> -I../../../../lib/sshfilexfer -O6 -Wall -Wno-unknown-pragmas -D_REENTRANT -c
> sshunixtcp.c
> sshunixtcp.c: In function `ssh_socket_low_connect_try_once':
> sshunixtcp.c:136: `ipaddr' undeclared (first use in this function)
> sshunixtcp.c:136: (Each undeclared identifier is reported only once
> sshunixtcp.c:136: for each function it appears in.)
> sshunixtcp.c:157: invalid type argument of `->'
> sshunixtcp.c:157: invalid type argument of `->'
> sshunixtcp.c:157: invalid type argument of `->'
> sshunixtcp.c:157: invalid type argument of `->'
> sshunixtcp.c: In function `ssh_tcp_make_listener':
> sshunixtcp.c:543: warning: passing arg 4 of `setsockopt' from incompatible
> pointer type
> sshunixtcp.c:555: warning: passing arg 4 of `setsockopt' from incompatible
> pointer type
> sshunixtcp.c: In function `ssh_tcp_get_host_name':
> sshunixtcp.c:837: warning: implicit declaration of function `gethostname'
> make[5]: *** [sshunixtcp.o] Error 1
> make[5]: Leaving directory
> `/export/home1/wwinzer/mybuild/BUILD/ssh-2.4.0/lib/sshutil/sshnet/unix'
>
> Any help is greatly appreciated.
>
> - Wally Winzer Jr.
>
> P.S. I had no problems w/ ssh-1.2.30.