Oracle: problem relinking binaries on Solaris

I’ve got the following message relinking the binaries on Solaris:

ld: fatal: dlopen() of support library ( failed with error: /usr/ccs/bin/sparcv9/ld: fatal: /usr/lib/ wrong ELF class: ELFCLASS32

The problem was caused by missing 64-bit library in /usr/lib.

The normal library should look like the following:

[#] file /usr/lib/sparcv9/ 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.