dcsimg
A .so library issue : Can't load IA 32-bit .so on a IA 32-bit platform
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, February 18, 2007 02:51 AM

Hi guys I'm running out of luck finding the cause of this error message when java try to load a .so file I've created. I don't know if it is caused by the linux verson or not as I'm not a linux expert. if any of you guys know please give me a hand, thanks a lot. the error message is : /data/tomcat/app/libXXX.so Can't load IA 32-bit .so on a IA 32-bit platform the libXXX.so is build using the following line: gcc -g -fno-exceptions -fPIC -DPIC -shared -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux -I./include -I./lib/gcc/ -lapi_v2_Core -lgrammarsCNT -lCryptoLib -lcontainer -ledi -ledicont -ledixml -ltcpsocket -lzlib -lexpat XXX.c -o ../../../target/classes/libXXX.so I have checked the configu   More>>

Hi guys
I'm running out of luck finding the cause of this error message when java try to load a .so file I've created. I don't know if it is caused by the linux verson or not as I'm not a linux expert. if any of you guys know please give me a hand, thanks a lot.

the error message is :

/data/tomcat/app/libXXX.so Can't load IA 32-bit .so on a IA 32-bit platform

the libXXX.so is build using the following line:

gcc -g -fno-exceptions -fPIC -DPIC -shared -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux -I./include -I./lib/gcc/ -lapi_v2_Core -lgrammarsCNT -lCryptoLib -lcontainer -ledi -ledicont -ledixml -ltcpsocket -lzlib -lexpat XXX.c -o ../../../target/classes/libXXX.so

I have checked the configuration of LD_LIBRARY_PATH to point to the dir of the libXXX.so file which loads fine in my development environment. Is this error caused by dynamic link library missing something when it is moved to the deployment environment ? or is it because I'm not building it properly ? or the os version version ?? Thanks a lot guys.



Development Environment:
Deployment Environment
Tomcat Version = Apache Tomcat/5.5.14
JVM Version = 1.5.0_11-b03
OS Name = Linux
OS Version = 2.6.9-11.ELsmp
OS Architecture = i386


Deployment Environment
Tomcat Version = Apache Tomcat/5.5.20
JVM Version = 1.5.0_11-b03
OS Name = Linux
OS Version = 2.4.21-15.0.3.ELsmp
OS Architecture = i386

   <<Less

Re: A .so library issue : Can't load IA 32-bit .so on a IA 32-bit platform

Posted By:   B_D  
Posted On:   Thursday, April 19, 2007 02:33 AM

Read somewhere else to use LD_LIBRARY_PATH instead.
About | Sitemap | Contact