[csw-users] Wrong ELF class - ELFCLASS32?
Dagobert Michelsen
dam at opencsw.org
Wed Jul 27 23:12:40 CEST 2011
Hi,
Am 27.07.2011 um 21:57 schrieb Maciej Bliziński:
> >> bash$ ./gdb
> >> ld.so.1: gdb: fatal: /db/pub/eq/csw/opt/csw/lib/libncurses.so.5: wrong ELF class: ELFCLASS32
> >> Killed
> >
> >
> > Uname on the root-access box (on which OpenCSW was installed):
> >
> >> SunOS puppet 5.11 snv_151a i86pc i386 i86pc Solaris
> >
> >
> > Uname on the limited-access box (where we are trying to run the tranplanted binaries):
> >
> >> SunOS eqaegd05 5.10 Generic_144489-06 i86pc i386 i86pc
> >
> >
> > Both bzip2 and libbz2.so appear to be 32-bit (at least from what I can tell):
> >
> >> bash$ file bzip2
> >> bzip2: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available
>
> Can you look at the inode number of the bzip2 binary and the isaexec binary? Is it the same?
>
> >> bash$ file ../lib/libbz2.so
> >> ../lib/libbz2.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, stripped
> >
> >
> > What would be causing this error? And how would I fix it?
>
> One guess is that it is the 32 vs 64 bit issue after all. If that's true, adding $ISALIST or 64 to the search path could help.
>
> LD_LIBRARY_PATH='/db/pub/eq/csw/opt/csw/lib/64'
>
> Or
>
> LD_LIBRARY_PATH='/db/pub/eq/csw/opt/csw/lib/$ISALIST
I would say isaexec. Try
LD_LIBRARY_PATH_32=/db/pub/eq/csw/opt/csw/lib
LD_LIBRARY_PATH_64=/db/pub/eq/csw/opt/csw/lib/64
Please see ld.so.1(1) for details.
Best regards
-- Dago
More information about the users
mailing list