[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:36:03 CET 2013

A NOTE has been added to this issue. 
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:36 CET
Summary:                    Samba testparm command fails with:
/usr/lib/libresolv.so.2: wrong ELF class: ELFCLASS32
I am obviously doing something wrong here so any help would be
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:
ld.so.1: testparm: fatal: relocation error: file
/opt/csw/lib/sparcv9/libldap-2.4.so.2: symbol h_errno: referenced symbol
not found

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

 (0010303) GoodGulf (reporter) - 2013-03-26 21:36
OK found the problem.

SUNW_2.2.2 which is not available on Solaris 10 8/07. In contrast, the
version from sunfreeware.com is compiled either against Solaris 8 FCS or
Solaris 10 FCS. So this binary will work on all Solaris 10 releases.

It seems SUNW_2.2.2 and SUNW_1.9.1 isn't on this release of my OS.
I also noticed you've got an issue open on it...


Is there a fix for this or am I SOL as far as using OpenCSW samba?

The thing that started this is our IT dept. just upgraded the Domain
Controller to Server 2008 R2 and I need a version later than the 3.2.4
version that's installed.

One option is to run with LD_NOVERSION set but that doesn't thrill me...

$ export LD_NOVERSION=1
$ testparm
Load smb config files from /etc/opt/csw/samba/smb.conf
rlimit_max: increasing rlimit_max (256) to minimum Windows limit (16384)
Processing section "[homes]"
Loaded services file OK.
Press enter to see a dump of your service definitions

Any suggestions here would be greatly appreciated.

More information about the bug-notifications mailing list