cyradm problem

Didi Rieder adrieder at sbox.tugraz.at
Thu Mar 11 14:05:45 EST 2004


--On Thursday, March 11, 2004 07:32:51 PM +0100 Mike O'Rourke 
<mjoop at curia.op.org> wrote:

>> Didi Rieder <adrieder at sbox.tugraz.at> 03/11/04 03:46pm >>>
>> --On Wednesday, March 10, 2004 01:51:40 PM -0500 Didi Rieder
>> <adrieder at sbox.tugraz.at> wrote:
>>
>>> Hi,
>>>
>>> I just installed the cyrus-imapd-2.2.3 and noticed the following
> problem
>>> with cyradm:
>>>
>>> [root at zidd-198 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/info-cyrus@lists.andrew.cmu.edu/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
adrieder at sbox.tugraz.at
PGPKey ID: 3431D0B0
---------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20040311/d4208a38/attachment.bin


More information about the Info-cyrus mailing list