Error when compiling for Solaris 2.5.1

Ben Taylor bent at clark.net
Thu Jan 20 00:46:03 EST 2000


After getting past the previous problem reported with atomicio.c and
the u_int8_t problem,  I've run into another problem with Solaris 2.5.1
when compiling bsd-snprintf.c.  Here is the output:

gcc -I/usr/local/ssl/include -Wall -I/usr/local/ssl/include
-DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\"
-DHAVE_CONFIG_H  -c  bsd-snprintf.c
bsd-snprintf.c: In function `msetup':
bsd-snprintf.c:86: warning: implicit declaration of function `getpagesize'
bsd-snprintf.c:91: `x' undeclared (first use in this function)
bsd-snprintf.c:91: (Each undeclared identifier is reported only once
bsd-snprintf.c:91: for each function it appears in.)
bsd-snprintf.c:91: `y' undeclared (first use in this function)
bsd-snprintf.c:91: warning: left-hand operand of comma expression has no
effect
bsd-snprintf.c: At top level:
bsd-snprintf.c:52: warning: `caught' defined but not used
*** Error code 1
make: Fatal error: Command failed for target `bsd-snprintf.o'


Notes: Even thought getpagesize is in libc and has a man page, it is not
defined in <unistd.h> as would be implied by the man page. Ideas?

Thanks,

Ben






More information about the openssh-unix-dev mailing list