error: getnameinfo failed
Kevin Steves
stevesk at sweden.hp.com
Wed Jan 24 23:03:06 EST 2001
On Mon, 22 Jan 2001, Suzuki Hideo wrote:
: I installed openssh-2.3.0p1 on AIX 4.3.3. However, I have a problem like below and I cannot start sshd.
:
: # /usr/local/sbin/sshd -d
: debug1: sshd version OpenSSH_2.3.0p1
: debug1: Seeded RNG with 33 bytes from programs
: debug1: Seeded RNG with 3 bytes from system calls
: debug1: read DSA private key done
: debug1: Seeded RNG with 33 bytes from programs
: debug1: Seeded RNG with 3 bytes from system calls
: error: getnameinfo failed
: fatal: Cannot bind any address.
: debug1: Calling cleanup 0x20023dc4(0x0)
: debug1: writing PRNG seed to file //.ssh/prng_seed
: #
:
: I had no compilation error when I compiled openssh2.3.0p1. Please help me if someone know the solution.
does aix HAVE_GETNAMEINFO?
what is your ListenAddress configuration?
can you try this patch and see what the error message is?
Index: sshd.c
===================================================================
RCS file: /var/cvs/openssh/sshd.c,v
retrieving revision 1.112
diff -u -r1.112 sshd.c
--- sshd.c 2001/01/23 03:12:10 1.112
+++ sshd.c 2001/01/24 11:57:25
@@ -812,15 +812,17 @@
generate_empheral_server_key();
} else {
for (ai = options.listen_addrs; ai; ai = ai->ai_next) {
+ int gaierr;
if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
continue;
if (num_listen_socks >= MAX_LISTEN_SOCKS)
fatal("Too many listen sockets. "
"Enlarge MAX_LISTEN_SOCKS");
- if (getnameinfo(ai->ai_addr, ai->ai_addrlen,
+ if ((gaierr = getnameinfo(ai->ai_addr, ai->ai_addrlen,
ntop, sizeof(ntop), strport, sizeof(strport),
- NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
- error("getnameinfo failed");
+ NI_NUMERICHOST|NI_NUMERICSERV)) != 0) {
+ error("main: getnameinfo failed %.100s",
+ gai_strerror(gaierr));
continue;
}
/* Create socket for listening. */
More information about the openssh-unix-dev
mailing list