Operating System - HP-UX
1820268 Members
2929 Online
109622 Solutions
New Discussion юеВ

CyrusIMAP cyradm Invalid argument

 
Frido Roose_1
Occasional Advisor

CyrusIMAP cyradm Invalid argument

Hello,

I'm struggling with a clean install of CyrusIMAP on HP-UX 11.23 (June 2007). When I try to start cyradm to begin creating mailboxes, an error is thrown:

$ cyradm localhost
Can't load '/opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: Invalid argument at /opt/perl_64/lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/DynaLoader.pm line 230.
at /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/Cyrus/IMAP/Admin.pm line 44
Compilation failed in require at /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/Cyrus/IMAP/Admin.pm line 44.
BEGIN failed--compilation aborted at /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/Cyrus/IMAP/Admin.pm line 44.
Compilation failed in require at /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/Cyrus/IMAP/Shell.pm line 60.
BEGIN failed--compilation aborted at /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/Cyrus/IMAP/Shell.pm line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.

I tried different versions of Internet Express: A.07.00 and A.09.00 (I can't find A.08.00 anymore).

It seems to be an issue with the shared library IMAP.so, as a simple perl one-liner doesn't work either:

$ perl -e "use Cyrus::IMAP;"
Can't load '/opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: Invalid argument at /opt/perl_64/lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/DynaLoader.pm line 230.
at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

The .so file is included with CyrusIMAP.CYRUSIMAP-LIB, so that's why I tried another version of Internet Express, without results.

I already sent a note to the IE team. Is there anyone having this issue too? Or if anyone has other suggestions, I'm glad to hear them, since I'm stuck here...
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: CyrusIMAP cyradm Invalid argument

Shalom,

Did you use a depot based version from http://software.hp.com or a compiled version.

Internet Express comes pre-compiled.

You have not met install pre-requisites.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Frido Roose_1
Occasional Advisor

Re: CyrusIMAP cyradm Invalid argument

Hi SEP,

Thanks for your reply!
I downloaded the depot based version from software.hp.com for the A.09.00 release, and the media that was delivered with HP-UX for the A.07.00 release.

I did not install the entire "internet" bundle, but only the products I need, like CyrusIMAP & CyrusSASL. The entire bundle contains depots for UW-imap and other stuff I really don't need.

The output of "ldd" seems fine:
# ldd /opt/iexpress/cyrusimap/lib/site_perl/5.8.0/IA64.ARCHREV_0-thread-multi/auto/Cyrus/IMAP/IMAP.so
libgss.so => /usr/lib/hpux32/libgss.so
libgssapi_krb5.so => /usr/lib/hpux32/libgssapi_krb5.so
libkrb5.so => /usr/lib/hpux32/libkrb5.so
libk5crypto.so => /usr/lib/hpux32/libk5crypto.so
libcom_err.so => /usr/lib/hpux32/libcom_err.so
libc.so.1 => /usr/lib/hpux32/libc.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libk5crypto.so => /usr/lib/hpux32/libk5crypto.so
libcom_err.so => /usr/lib/hpux32/libcom_err.so

I have no idea what dependency I am missing.
Frido Roose_1
Occasional Advisor

Re: CyrusIMAP cyradm Invalid argument

I got somewhat further, you were right about missing something. Apparently, I missed some portion of perl, more specific perl_32. I installed the missing parts, and now it doesn't complain anymore.

It still doesn't work however, as cyradm now completely hangs upon startup (without error messages), but resulting in a defunct process of the "master" process:

# ps -ef |grep cyrus
cyrus 28189 28177 0 18:45:58 pts/3 0:00 perl -MCyrus::IMAP::Shell -e shell -- localhost
root 28149 27695 0 18:45:16 pts/4 0:00 /opt/iexpress/cyrussasl/sbin/saslauthd -a pam -n 5 -d
cyrus 28177 14550 0 18:45:53 pts/3 0:00 -sh
cyrus 28249 28164 1 18:46:37 pts/1 0:00
cyrus 28164 13386 3 18:45:35 pts/1 0:00 /opt/iexpress/cyrusimap/bin/master

Now I can investigate this problem... Thanks already for the tip.