I am receiving a wrong ELFCLASS error when compiling andlinking a model on Solaris. How can I correct this?

Categories:
Solution Number:
S20832
Last Modified:
2013-08-20
Issue

I am receiving a wrong ELFCLASS error when compiling andlinking a model on Solaris. How can I correct this?

Solution

This message indicates that the linker has encountered a 32bit library where it expected a 64bit version, or vice versa.To correct this, ensure that your PATH, LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 environment variables are set correctly. Also, make sure that the PATH search order is such that the correct version of executables are found. For example, you would normally place SunStudio ahead of /usr/ccs/bin, and /usr/ucb/bin at the end. E.g. $PATH:/path/to/sun_studio_11/bin:/usr/ccs/bin:/usr/ucb/bin

Environment

Compiling/Linking

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case