problemDidi 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/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/Cyrus/IMAP/Admin.pmwith cyradm:
[EMAIL PROTECTED] etc]# cyradm -user imap localhost imclient_connect: unknown host "localhost" at
getline 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 tocyrus 2.2.3 to run at all. See also: <http://www.mail-archive.com/[EMAIL PROTECTED]/msg17098.ht ml>
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,
thanks for your answer, but unfortunately this didn't work out I still get:
imclient_connect: unknown host "localhost" at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/Cyrus/IMAP/Admin.pm line 71.
Didi
-- --------------------------------- Didi Rieder [EMAIL PROTECTED] PGPKey ID: 3431D0B0 ---------------------------------
pgp00000.pgp
Description: PGP signature