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

Christopher R. Hertel crh at ubiqx.mn.org
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) */
#define BROKEN_INET_NTOA 1

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 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 160.94.7.28 port 43692
debug1: Client protocol version 1.5; client software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat 
OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_3.5*
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?

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


-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org




More information about the openssh-unix-dev mailing list