Possible cause: architecture word width mismatch

Support for the other architectures (X86_64, s390(x) and PowerPC)
Posts: 2
Joined: 2008/07/08 21:38:07

Possible cause: architecture word width mismatch

Postby giuse » 2008/07/13 12:28:54

I booted CentOS 4.6 on a VMWARE session on my PC and trying to run previously built/compiled code onto it.

The code has been compiled on a RHE 4.6 on 32 bit.

and I'm trying to run the binaries with shared libs ets on a CentOS x86_64.

When running them I get the following error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /libs/liboam.so: /
/libs/liboam.so: cannot open shared object file: No such file or directory (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)

the liboam.so library is there and correctly present in th eLD_LIBRARY_PATH.

I'm wondering whether there is any issue with using shared libraried built on a 32 bit env running on a 64 bit,
or this is a CentOS known issue etc.

Can anybody help ?