[dovecot 0005271]: dovecot crashes on Solaris 11 i386 with "wrong ELF class: ELFCLASS32"

Mantis Bug Tracker via bug-notifications bug-notifications at lists.opencsw.org
Fri Mar 11 14:03:48 CET 2016


The following issue requires your FEEDBACK. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5271 
====================================================================== 
Reported By:                pipermar
Assigned To:                dam
====================================================================== 
Project:                    dovecot
Issue ID:                   5271
Category:                   regular use
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2016-03-11 13:20 CET
Last Modified:              2016-03-11 14:03 CET
====================================================================== 
Summary:                    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
====================================================================== 

---------------------------------------------------------------------- 
 (0011106) dam (administrator) - 2016-03-11 14:03
 https://www.opencsw.org/mantis/view.php?id=5271#c11106 
---------------------------------------------------------------------- 
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 at 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



More information about the bug-notifications mailing list