MAXHOSTNAMELEN and Solaris 2.5

Ed Phillips ed at UDel.Edu
Sat Oct 27 00:48:08 EST 2001


MAXHOSTNAMELEN is defined in /usr/include/netdb.h on Solaris 2.5... maybe
that's not getting included in channels.c?

On 26 Oct 2001, Florian Weimer wrote:

> Date: 26 Oct 2001 12:23:10 +0200
> From: Florian Weimer <Florian.Weimer at RUS.Uni-Stuttgart.DE>
> To: openssh-unix-dev at mindrot.org
> Subject: MAXHOSTNAMELEN and Solaris 2.5
>
> 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
>

Ed Phillips <ed at udel.edu> University of Delaware (302) 831-6082
Systems Programmer III, Network and Systems Services
finger -l ed at polycut.nss.udel.edu for PGP public key




More information about the openssh-unix-dev mailing list