module has an invalid magic number

Hello everybody:

I have a trouble running an application which connects to an Oracle server, I got this message:

Dependent module /opt/oracle/product/10.2/lib/libclntsh.so could not be loaded.
The module has an invalid magic number.

Running ldd MyApp doesn't report missing symbols, I've tried to fix this by changing the LIBRARY_PATH AND LD_LIBRARY_PATH to /opt/oracle/product/10.2/lib32 but the same error persists, even by changing the LIBPATH to lib32, the program tries to load the lib/libclntsh.so.

How can I fix this error? any advice would be appreciated.

Hi
it's link
/opt/oracle/product/10.2/lib32 and /opt/oracle/product/10.2/lib
you rather look for /opt/oracle/product/10.2/lib64
please look,
http://www.unix.com/aix/59058-error-0509-036-a.html

1 Like