We've been building a version of openssh with a chroot patch
(www.coding-zone.com/chroot+sftp-server.patch) for the last couple of
years on Solaris 7, 8 and 9, with no issues. As of Solaris 10 we get the
following error when "make" runs:

PATH=3D/usr/ccs/bin:/usr/local/bin
LD_LIBRARY_PATH=3D/usr/local/ssl/lib:/usr/local/lib

The configure command is:
LD_PATH_RUN=3D/usr/local/ssl/lib:/usr/local/lib ./configure
--with-ssl-dir=3D/usr/local/ssl --with-pam --sysconfdir=3D/etc
--with-tcp-wrappers

The make command and output is:

LD_PATH_RUN=3D/usr/local/ssl/lib:/usr/local/lib make

(cd openbsd-compat && make)
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -I. -I..
-I. -I./.. -I/usr/local/ssl/include -DHAVE_CONFIG_H -c bsd-arc4random.c
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from ../includes.h:31,
from bsd-arc4random.c:17:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from ../includes.h:31,
from bsd-arc4random.c:17:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from ../includes.h:31,
from bsd-arc4random.c:17:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from ../includes.h:104,
from bsd-arc4random.c:17:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from ../includes.h:206,
from bsd-arc4random.c:17:
.../defines.h:285: warning: redefinition of `sig_atomic_t'
/usr/include/iso/signal_iso.h:41: warning: `sig_atomic_t' previously
declared here
*** Error code 1
make: Fatal error: Command failed for target `bsd-arc4random.o'
Current working directory
/build-XXX-openssh-4.3p2-sol10/openssh-4.3p2/openbsd-compat
*** Error code 1
make: Fatal error: Command failed for target
`openbsd-compat/libopenbsd-compat.a'


In all cases we're using the Sunfreeware versions of gcc (3.3.2), zlib
(1.2.3), tcp_wrappers (7.6) and openssl (0.9.8b).

I've gone back and checked the builds for Solaris 7, 8 and 9, and this
step in the make doesn't fail and there are no obvious warning messages.

Any assistance would be much appreciated.

Regards,
=20
John Boxall