unable to dlopen......

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

jjmaher

unable to dlopen......

Postby jjmaher » Mon Apr 24, 2006 3:50 pm

I have been trying to install Scalix on a Suse 9.x box. I receive the following messages in /var/log/messages

omsmtpd: unable to dlopen /opt/scalix/lib/security/libplain.so: /opt/scalix/lib/security/libplain.so: cannot open shared object file: No such file or directory
Apr 24 14:55:16 moreau omsmtpd: unable to dlopen /opt/scalix/lib/security/libdigestmd5.so: /opt/scalix/lib/security/libdigestmd5.so: cannot open shared object file: No such file or directory
Apr 24 14:55:16 moreau omsmtpd: unable to dlopen /opt/scalix/lib/security/libcrammd5.so: /opt/scalix/lib/security/libcrammd5.so: cannot open shared object file: No such file or directory


Here is the contents of /opt/scalix/lib/security

lrwxrwxrwx 1 root root 34 Apr 24 14:50 libcrammd5.so -> /usr/local/lib/sasl2/libcrammd5.so
lrwxrwxrwx 1 root root 36 Apr 24 14:52 libdigestmd5.so -> /usr/local/lib/sasl2/libdigestmd5.so
lrwxrwxrwx 1 root root 26 Apr 24 14:18 liblogin.so -> /usr/lib/sasl2/liblogin.so
-r-xr-xr-x 1 scalix scalix 9452 Mar 27 12:27 libom_gssapiv2.so
lrwxrwxrwx 1 root root 32 Apr 24 14:52 libplain.so -> /usr/local/lib/sasl2/libplain.so
-r-xr-xr-x 1 scalix scalix 6024 Mar 27 12:27 om_debug.so
-r-xr-xr-x 1 scalix scalix 5972 Mar 27 12:27 om_diag.so
-r-xr-xr-x 1 scalix scalix 12656 Mar 27 12:27 om_krb5.so
-r-xr-xr-x 1 scalix scalix 13144 Mar 27 12:27 om_ldap.so
-r-xr-xr-x 1 scalix scalix 3964 Mar 27 12:27 om_om2authid.so

Here is the contents of user local/lib/sasl2

-rwxrwxrwx 1 scalix scalix 674 Apr 24 13:48 libcrammd5.la
lrwxrwxrwx 1 root root 20 Apr 24 13:48 libcrammd5.so -> libcrammd5.so.2.0.21
lrwxrwxrwx 1 root root 20 Apr 24 13:48 libcrammd5.so.2 -> libcrammd5.so.2.0.21
-rwxrwxrwx 1 scalix scalix 76662 Apr 24 13:48 libcrammd5.so.2.0.21
-rwxrwxrwx 1 scalix scalix 704 Apr 24 13:48 libdigestmd5.la
lrwxrwxrwx 1 root root 22 Apr 24 13:48 libdigestmd5.so -> libdigestmd5.so.2.0.21
lrwxrwxrwx 1 root root 22 Apr 24 13:48 libdigestmd5.so.2 -> libdigestmd5.so.2.0.21
-rwxrwxrwx 1 scalix scalix 161059 Apr 24 13:48 libdigestmd5.so.2.0.21
-rwxrwxrwx 1 scalix scalix 670 Apr 24 13:48 libplain.la
lrwxrwxrwx 1 root root 18 Apr 24 13:48 libplain.so -> libplain.so.2.0.21
lrwxrwxrwx 1 root root 18 Apr 24 13:48 libplain.so.2 -> libplain.so.2.0.21
-rwxrwxrwx 1 scalix scalix 69923 Apr 24 13:48 libplain.so.2.0.21



Can someone help me out with this? I have been staring at it all day and it refuses to change. What am I missing.

Thanks for your time.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Apr 24, 2006 5:04 pm

Is this a 32- or 64-bit server ?

Cheers

Dave

jjmaher

unable to dlopen....

Postby jjmaher » Tue Apr 25, 2006 6:04 am

This is a dual core AMD OPteron with X86_64 SUSE Linux installed. I have installed the 32 bit libraries for cyrus-sasl as per manual. Nothing was mentioned of any other libraries that need to be installed.

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Tue Apr 25, 2006 1:20 pm

There are a couple of possibilities. If you do "ls -lL /opt/scalix/lib/security" are all the symbolic links resolved as expected?

It's worth checking the permissions on the directories leading up to /usr/local/lib/sasl2 (I presume you meant that rather that "user local/lib/sasl2"). The directories should be readable and searchable by everyone.

The shared libraries in /usr/local/lib/sasl2 are globally writable, this isn't good :-) Do a chmod 555 on them; I don't remember if cyrus-sasl checks the permissions on the libraries its loading to prevent people replacing them with bad versions, but it's moderately likely.

You built these libraries yourself didn't you? Why didn't you just install the i386 sasl2 RPM? (I know one exists on RHEL and Fecore Core, I don't know about SuSE.)

Finnally, the "no such file or directory" can come from some missing dependency in the libplain.so file. Is anything obviously wrong if you do "ldd libplain.so"?

jch

jjmaher

Postby jjmaher » Tue Apr 25, 2006 2:46 pm

ls -IL /opt/scalix/lib/security

ls -IL /opt/scalix/lib/security
. libom_gssapiv2.so om_ldap.so pam_permit.so
.. libplain.so om_om2authid.so pam_radius_auth.so
libcrammd5.so om_debug.so pam_deny.so pam_smb.so
libdigestmd5.so om_diag.so pam_if.so pam_unix.so
liblogin.so om_krb5.so pam_listfile.so sasldb.so
moreau:/usr/local/lib/sasl2 #


chmod 555 /usr/local/lib/sasl2/ ALL FILES

Permissions on /usr/local/lib/sasl2 755


ldd libplain.so
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000002a95678000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000002a957b1000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a958c5000)
/lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)


Cyrus was installed as rpm via SuSE YaST2. I did not build these.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 5 guests