> Didi Rieder <[EMAIL PROTECTED]> 03/11/04 03:46pm >>> >--On Wednesday, March 10, 2004 01:51:40 PM -0500 Didi Rieder ><[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I just installed the cyrus-imapd-2.2.3 and noticed the following problem >> with cyradm: >> >> [EMAIL PROTECTED] etc]# cyradm -user imap localhost >> imclient_connect: unknown host "localhost" at >> /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/Cyrus/IMAP/Admin.pm >> line 71. > >The problem seems to come from the following function call: > > getaddrinfo(host, port, &hints, &res0) > >in lib/imclient.c on line 239 > >This might be Solrais 9 specific.I had to remove patch 112874-22 to get >cyrus 2.2.3 to run at all. See also: ><http://www.mail-archive.com/[EMAIL PROTECTED]/msg17098.html> > >In order to remove this patch it was also necessary to remove the the
>patches 112970-06 and 113319-17 because of dependencies. > >Can somone confirm this? Has someome a solution? > >Didi Hi Didi, I have not tried to compile cyrus-imapd on my Solaris 9 box, but I had a similar problem with OpenLDAP 2.1.24 in that the slapd daemon would refuse to connect, and would most of the times crash. To fix the problem, I had to explicitely set the 'ai_protocol' member of the 'hints' variable to '0' (as it is in Cyrus-IMAPD, it was unspecified in OpenLDAP). In theory, this should not be necessary, or so I understand as the C compiler should interprit the null value as '0'. I am using gcc 3.3.2 on my Solaris 9 box. So, you might try this patch and see if it helps: *** imclient.c.orig Thu Mar 11 19:28:34 2004 --- imclient.c Thu Mar 11 19:28:50 2004 *************** *** 236,241 **** --- 236,242 ---- hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CANONNAME; + hints.ai_protocol = 0; if (getaddrinfo(host, port, &hints, &res0)) return -1; for (res = res0; res; res = res->ai_next) { Mike. --- Home Page: http://asg.web.cmu.edu/cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html