openbsd-compat/inet_ntoa.h missing from 3.7p1?

Iain Morgan imorgan at nas.nasa.gov
Wed Sep 17 13:00:09 EST 2003


On Tue Sep 16 11:43:22 2003, Ayamura KIKUCHI wrote:
> 
> > On IRIX 6.5:
> 
> > cc-1005 cc: ERROR File = inet_ntoa.c, Line = 46
> >   The source file "inet_ntoa.h" is unavailable.
> > 
> >   #include "inet_ntoa.h"
> >                         ^
> > Is openbsd-compat/inet_ntoa.h missing or is openbsd-compat/inet_ntoa.c
> > wrong?
> 
> The include file openbsd-compat/inet_ntoa.h is not needed to compile
> openbsd-compat/inet_ntoa.c on IRIX.
> 
> Why BROKEN_INET_NTOA should be defined on IRIX 5/6?
> 
> openbsd-compat/inet_ntoa.c:
> #if defined(BROKEN_INET_NTOA) || !defined(HAVE_INET_NTOA)
> 	...
> 	char *inet_ntoa(struct in_addr in) { ... }
> #endif /* defined(BROKEN_INET_NTOA) || !defined(HAVE_INET_NTOA) */
> 
> configure.ac:
> *-*-irix5*)
> 	...
> 	AC_DEFINE(BROKEN_INET_NTOA)
> 	...
> *-*-irix6*)
> 	...
> 	AC_DEFINE(BROKEN_INET_NTOA)
> 	...
> 
> p.s.
> 3.7p1's sshd daemon can not work on IRIX 6.5.21.
> 
> -- ayamura
> 
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
> 

As I recall, there is a classic issue with inet_ntoa() under IRIX
when using gcc. I believe it was a padding and alignment issue, but
I don't have the information handy at the moment. Assuming the 
problem still exists, it would seem reasonable to consider 
inet_ntoa() to be broken when using gcc. However, when using the
MIPSpro compilers it should not be an issue.

--
Iain Morgan
NAS Desktop Support Group




More information about the openssh-unix-dev mailing list