On 1/12/06, Larry Rosenbaum <[EMAIL PROTECTED]> wrote: > I've done some debugging and come up with some odd information. The problem > occurs in imclient.c in the imclient_connect function. It is calling > getaddrinfo() and getting a return value of 3, which is > > #define EAI_BADFLAGS 3 /* invalid ai_flags */ > > The odd part is that if I write a test program that calls getaddrinfo() with > the > same parameters, I get a return value of 0 (success). I can work around the > problem by commenting out this line: > > hints.ai_flags = AI_CANONNAME; > > but the fewer hacks I have to make to the Cyrus code, the more confident I > will > be about its stability. Any ideas what's going on? > > Larry > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:info-cyrus- > > [EMAIL PROTECTED] On Behalf Of Rosenbaum, Larry M. > > Sent: Wednesday, January 11, 2006 5:27 PM > > To: info-cyrus@lists.andrew.cmu.edu > > Subject: Unknown host "localhost" in cyradm > > > > Running Cyrus 2.3.1 on Solaris 9. > > > > What would cause the following error? > > > > > > # cyradm localhost > > imclient_connect: unknown host "localhost" at > > /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/Cyrus/IMAP/Admin.pm > > line 72. > > > > It doesn't like any hostname I give it. Everything else looks OK so far > > and I had no trouble with the same version of Cyrus on the Solaris 8 > > system I was testing on. > > > > L > > > > ---- > > Cyrus Home Page: http://asg.web.cmu.edu/cyrus > > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > ---- > Cyrus Home Page: http://asg.web.cmu.edu/cyrus > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > Hi,
You might have a look at: http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=37801 from December 16th. I had much the same problem -- cyradm was the only thing that did not work. The problem was a badly compiled Perl -- the symbol getaddrinfo in libperl.so was local to perl, so it was grabbing that one (linux compatable) and not Sun's getaddrinfo from libsocket.so. I recompiled Perl (went to the 5.8.7 version to boot!) with -lsocket -lnsl -lresolv and without -lbind and cyradm (and so far the rest of perl) works fine. Of course, mod_perl complained loudly about the version upgrade the next time I restarted Apache, so I had to re-compile that too! HTH. Mike. ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html