Patch (was: OpenSSH doesn't compile under Solaris 2.3 Sparc)

Ben Taylor bent at clark.net
Wed Feb 23 01:49:10 EST 2000


On Tue, 22 Feb 2000, Jack Barnett wrote:


> gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_
> PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ss
> h/ssh-askpass\" -DHAVE_CONFIG_H   -c bsd-snprintf.c -o bsd-snprintf.o
> bsd-snprintf.c: In function `getpagesize':
> bsd-snprintf.c:70: `NBPC' undeclared (first use this function)
> bsd-snprintf.c:70: (Each undeclared identifier is reported only once
> bsd-snprintf.c:70: for each function it appears in.)
> bsd-snprintf.c:73: warning: control reaches end of non-void function
> bsd-snprintf.c: In function `vsnprintf':
> bsd-snprintf.c:133: warning: variable `ret' might be clobbered by `longjmp'
> or `vfork'
> bsd-snprintf.c: At top level:
> bsd-snprintf.c:52: warning: `caught' defined but not used
> make: *** [bsd-snprintf.o] Error 1

This is a bit weird.  It still looks like HAVE_GETPAGESIZE is still not
getting set, because it's entering the code for the "replacement"
getpagesize. 

NBPC is defined in /usr/include/sys/param.h in Solaris 2.5.1, but I have
the suspicion, it's not defined in Solaris 2.3.  At least not in 
/usr/include/sys/param.h.  I'd bet that those defines are probably
somewhere down in /usr/ucbinclude.  Given that, we could either use
the getpagesize call from Solaris 2.3, or check for the define NBPC.
Either way, this should get us a working version in Solaris 2.3.

Try a 'find /usr/ucbinclude -exec egrep "NBPC|getpagesize" {} /dev/null \;'
and see what you come up with.  The information you return will probably
help us fix the problem.

Ben







More information about the openssh-unix-dev mailing list