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

Christopher R. Hertel crh at
Wed Sep 17 07:53:32 EST 2003

I found this in config.h:

/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */

I am using Irix, but I'm using SGI's compiler, not GCC, so I commented out 
the line.  OpenSSH then compiled.

As the note below mentions, however, "3.7p1's sshd daemon can not work on 
IRIX 6.5.21."  I am running 6.5.8m and I have the same problem.  It 
*appears* as though the child process is dying when sshd tries to spawn 
off a child to handle an incomming connection:

# /usr/local/sbin/sshd -dddD
debug3: Seeding PRNG from /usr/local/libexec/ssh-rand-helper
debug2: read_server_config: filename /usr/local/etc//sshd_config
debug1: sshd version OpenSSH_3.7p1
debug1: private host key: #0 type 0 RSA1
debug1: Bind to port 22 on
Server listening on port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from port 43692
debug1: Client protocol version 1.5; client software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat 
debug1: Local version string SSH-1.5-OpenSSH_3.7p1
debug3: privsep user:group 6666:6666
debug1: permanently_set_uid: 6666/6666
: was able to restore old [e]gid
debug1: Calling cleanup 0x100538b4(0x0)
debug2: Network child is on pid 71668
debug3: preauth child monitor started
debug3:  entering

...and that's that.

Note that Irix C does not support the __func__ macro, which is why that 
last message is odd.

When I look through the ps output, I can't find pid 71668.

Chris Hertel -)-----
[Not on this list...on too many others.  :(]


From:     Ayamura KIKUCHI <ayamura () ayamura ! org>
Date:     2003-09-16 18:43:22

> 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?

#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) */

3.7p1's sshd daemon can not work on IRIX 6.5.21.

-- ayamura

"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team --     -)-----   Christopher R. Hertel
jCIFS Team --   -)-----   ubiqx development, uninq.
ubiqx Team --     -)-----   crh at
OnLineBook --    -)-----   crh at

More information about the openssh-unix-dev mailing list