On IRIX 6.5: cc -Wl,-woff,84 -Wl,-woff,85 -woff 1429 -O2 -I/opt/TWWfsw/tcpwrap/include -I. -I.. -I. -I./.. -I/opt/TWWfsw/libopenssl097s/include -I/opt/TWWfsw/zlib11s/include -DHAVE_CONFIG_H -c inet_ntoa.c cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 #error directive: This header file is to be used only for c99 mode compilations #error This header file is to be used only for c99 mode compilations ^ 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? -- albert chin (china at thewrittenword.com)
On Tue, 16 Sep 2003, Albert Chin wrote: [..]> 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? >It was merged into openbsd-compat.h. I corrected this issue this morning. So just remove the #include file. It is dead code. - Ben
> 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
Christopher R. Hertel
2003-Sep-16 21:53 UTC
openbsd-compat/inet_ntoa.h missing from 3.7p1?
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
Christopher R. Hertel
2003-Sep-16 22:39 UTC
openbsd-compat/inet_ntoa.h missing from 3.7p1?
Yeah, I know I'm messing up the threads... Anyway, I wanted to add that defining UsePrivilegeSeparation no gets me one step further. I am prompted for my password before sshd closes the connection. Hmmm... Chris -)----- [Again, I'm on too many lists to be on this one too. Sorry. Hope my comments are useful.] -- "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