MAXHOSTNAMELEN and Solaris 2.5
Florian Weimer
Florian.Weimer at RUS.Uni-Stuttgart.DE
Fri Oct 26 20:23:10 EST 2001
Solaris 2.5 does not seem to define MAXHOSTNAMELEN, and a compilation
of vanilla OpenSSH 2.9.9p2 fails:
> gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.
> -I/usr/local/ssl/include -I/usr/local/include
> -DETCDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"
> -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"
> -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\"
> -D_PATH_SSH_PIDDIR=\"/usr/local/etc\" -DHAVE_CONFIG_H -c channels.c
> channels.c: In function `x11_create_display_inet':
> channels.c:2396: `MAXHOSTNAMELEN' undeclared (first use in this
> function)
> channels.c:2396: (Each undeclared identifier is reported only once
> channels.c:2396: for each function it appears in.)
> channels.c:2468: warning: implicit declaration of function `gethostname'
>
> channels.c:2396: warning: unused variable `hostname'
> make: *** [channels.o] Error 1
--
Florian Weimer Florian.Weimer at RUS.Uni-Stuttgart.DE
University of Stuttgart http://cert.uni-stuttgart.de/
RUS-CERT +49-711-685-5973/fax +49-711-685-5898
More information about the openssh-unix-dev
mailing list