OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005271 [dovecot] regular use crash always 2016-03-11 13:20 2016-03-22 14:05
Reporter pipermar View Status public  
Assigned To dam
Priority normal Resolution no change required  
Status closed  
Summary 0005271: dovecot crashes on Solaris 11 i386 with "wrong ELF class: ELFCLASS32"
Description package CSWdovecot 2.2.21,REV=2015.12.13 installs successfully on Solaris 11 i386, but the binaries can not access their dynamic libraries.

"uname -a":
SunOS surz115 5.11 11.3 i86pc i386 i86pc
"file /opt/csw/sbin/dovecot":
/opt/csw/sbin/dovecot: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available
"ldd /opt/csw/sbin":
libc.so.1 => /lib/libc.so.1

the dovecot binary starts nevertheless, but connecting to imap-login leads to error-log:
Error: Couldn't load required plugin /opt/csw/lib/dovecot/lib15_notify_plugin.so: dlopen() failed: ld.so.1: imap: fatal: /opt/csw/lib/dovecot/lib15_notify_plugin.so: wrong ELF class: ELFCLASS32

Is there something wrong with the compilation of the package?

Thanks for any help
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0011106)
dam (administrator)
2016-03-11 14:03

The issue you are facing has a different cause that what you think. The binaries in /opt/csw/bin and /opt/csw/sbin are actually copied of /usr/lib/isaexec which execute the optimized version from an isa-subdirectory. The binary invoked is

dam@unstable10x [global]:/opt/csw/sbin/amd64 > ldd -r dovecot
        libdovecot.so.0 => /opt/csw/lib/64/dovecot/libdovecot.so.0
        librt.so.1 => /lib/64/librt.so.1
        libsocket.so.1 => /lib/64/libsocket.so.1
        libc.so.1 => /lib/64/libc.so.1
        libiconv.so.2 => /opt/csw/lib/amd64/libiconv.so.2
        libnsl.so.1 => /lib/64/libnsl.so.1
        libsendfile.so.1 => /lib/64/libsendfile.so.1
        libgcc_s.so.1 => /opt/csw/lib/amd64/libgcc_s.so.1
        libaio.so.1 => /lib/64/libaio.so.1
        libmd.so.1 => /lib/64/libmd.so.1
        libmp.so.2 => /lib/64/libmp.so.2
        libscf.so.1 => /lib/64/libscf.so.1
        libdoor.so.1 => /lib/64/libdoor.so.1
        libuutil.so.1 => /lib/64/libuutil.so.1
        libgen.so.1 => /lib/64/libgen.so.1
        libm.so.2 => /lib/64/libm.so.2

I suppose you are using the wrong path in your configuration file, e.g.
  mail_plugin_dir = /opt/csw/lib/dovecot
instead of the correct
  mail_plugin_dir = /opt/csw/lib/64/dovecot
(0011116)
pipermar (reporter)
2016-03-22 13:12

Thanks a lot for this hint, changing the config as suggested did the trick.

Andreas


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker