Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Undefined symbols in shared libraries



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Im trying to load a shared library from a java servlet, but get the
following error:

java.lang.UnsatisfiedLinkError: /xxxx/xxxx.so: /xxxx/xxxx.so: undefined symbol: XXXX

The problem isnt with Tomcat since the whole setup works on another
machine with much older system libraries, but the same version of
Tomcat.

When compiling the libraries, I dont get any errors. Shouldn't gcc fail
if something is missing? These are the flags Im using to build the
library:

gcc -Wall -I/usr/local/jdk1.3.1/include -I/usr/local/jdk1.3.1/include/linux -c *.c

and then

gcc -shared -o xxxx.so *.o


- -- 
A. Sajjad Zaidi
gpg --keyserver pgp.mit.edu --recv-keys 267E0D0E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9xLbLt1KjqyZ+DQ4RAqClAKCvM8+w4okkNGnajtve6al7i06ZowCfdsAu
iKugQ+2ibIk68+oK/9gLmtA=
=cUw9
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links