I’ve got the following message relinking the binaries on Solaris:
ld: fatal: dlopen() of support library (libmakestate.so.1) failed with error:
ld.so.1: /usr/ccs/bin/sparcv9/ld: fatal: /usr/lib/libmakestate.so.1: wrong ELF class: ELFCLASS32
The problem was caused by missing 64-bit library libmakestate.so.1 in /usr/lib.
The normal library should look like the following:
[#] file /usr/lib/sparcv9/libmakestate.so.1
libmakestate.so.1: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
If the library does not exist or is incorrect, it should be reinstalled from the package SUNWsprox ( Sun WorkShop Bundled 64-bit make library)
This command checks, if the package is installed in the system:
[#] pkginfo -i SUNWsprox
After installing the package relink works fine.