[bug-notifications] [samba 0005063]: Samba testparm command fails with: /usr/lib/libresolv.so.2: wrong ELF class: ELFCLASS32

Mantis Bug Tracker noreply at opencsw.org
Tue Mar 26 21:04:45 CET 2013


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5063 
====================================================================== 
Reported By:                GoodGulf
Assigned To:                
====================================================================== 
Project:                    samba
Issue ID:                   5063
Category:                   regular use
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-03-26 19:37 CET
Last Modified:              2013-03-26 21:04 CET
====================================================================== 
Summary:                    Samba testparm command fails with:
/usr/lib/libresolv.so.2: wrong ELF class: ELFCLASS32
Description: 
I am obviously doing something wrong here so any help would be
appreciated.
Machine is a Solaris 10 Sparc Sun-Fire-V245
I downloaded and installed CSWSamba version 3.6.5,REV=2012.05.04
When I tried to run testparm against my smb.conf.

$ testparm
ld.so.1: testparm: fatal: libresolv.so.2: version `SUNW_2.2.2' not found
(required by file /opt/csw/lib/sparcv9/libldap-2.4.so.2)
ld.so.1: testparm: fatal: /usr/lib/libresolv.so.2: wrong ELF class:
ELFCLASS32
ld.so.1: testparm: fatal: relocation error: file
/opt/csw/lib/sparcv9/libldap-2.4.so.2: symbol h_errno: referenced symbol
not found
Killed

I'm not even sure where to begin here so please let me know what else you
need.
====================================================================== 

---------------------------------------------------------------------- 
 (0010302) GoodGulf (reporter) - 2013-03-26 21:04
 https://www.opencsw.org/mantis/view.php?id=5063#c10302 
---------------------------------------------------------------------- 
Yes.  I definitely did something wrong here.
The ldd command is saying that it's picking up the 64 bit versions.

# testparm
ld.so.1: testparm: fatal: libresolv.so.2: version `SUNW_2.2.2' not found
(required by file /opt/csw/lib/sparcv9/libldap-2.4.so.2)
ld.so.1: testparm: fatal: /usr/lib/libresolv.so.2: wrong ELF class:
ELFCLASS32
ld.so.1: testparm: fatal: relocation error: file
/opt/csw/lib/sparcv9/libldap-2.4.so.2: symbol h_errno: referenced symbol
not found
Killed

# ldd /opt/csw/lib/sparcv9/libldap-2.4.so.2
        librt.so.1 =>    /lib/64/librt.so.1
        liblber-2.4.so.2 =>      /opt/csw/lib/64/liblber-2.4.so.2
        libresolv.so.2 =>        /lib/64/libresolv.so.2
        libresolv.so.2 (SUNW_2.2.2) =>   (version not found)
        libnsl.so.1 =>   /lib/64/libnsl.so.1
        libnsl.so.1 (SUNW_1.9.1) =>      (version not found)
        libsocket.so.1 =>        /lib/64/libsocket.so.1
        libsasl2.so.2 =>         /opt/csw/lib/64/libsasl2.so.2
        libssl.so.1.0.0 =>       /opt/csw/lib/64/libssl.so.1.0.0
        libcrypto.so.1.0.0 =>    /opt/csw/lib/64/libcrypto.so.1.0.0
        libc.so.1 =>     /lib/64/libc.so.1
        libaio.so.1 =>   /lib/64/libaio.so.1
        libmd5.so.1 =>   /lib/64/libmd5.so.1
        libmp.so.2 =>    /lib/64/libmp.so.2
        libscf.so.1 =>   /lib/64/libscf.so.1
        libdl.so.1 =>    /lib/64/libdl.so.1
        libnsl.so.1 (SUNW_1.9.1) =>      (version not found)
        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
        /platform/SUNW,Sun-Fire-V245/lib/sparcv9/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V245/lib/sparcv9/libmd5_psr.so.1

Why are the 64 bit versions of these libraries being used on a 32 bit
machine?

# ls -l /opt/csw/lib/sparcv9/libldap-2.4.so.2
lrwxrwxrwx   1 root     root          20 Mar 26 12:54
/opt/csw/lib/sparcv9/libldap-2.4.so.2 -> libldap-2.4.so.2.8.4

# file /opt/csw/lib/sparcv9/libldap-2.4.so.2
/opt/csw/lib/sparcv9/libldap-2.4.so.2:  ELF 64-bit MSB dynamic lib SPARCV9
Version 1, dynamically linked, not stripped



More information about the bug-notifications mailing list