Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Undefined symbols in shared libraries
- Date: Wed, 06 Nov 2002 18:41:39 +0900
- From: Botond Botyanszki <9915104t@example.com>
- Subject: Re: [tlug] Undefined symbols in shared libraries
- References: <20021103054028.GD22794@example.com>
- Organization: Kobe University, Japan
"A. Sajjad Zaidi" wrote: > 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 I got this when the libs were not in ld.so.conf. > 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 It's because you are specifying the libpath with -l, but the linker doesn't know about it when the code is called through java. Edit ld.so.conf and rerun ldconfig. Or try setting LD_LIBRARY_PATH -- B0Ti.
- Follow-Ups:
- Re: [tlug] Undefined symbols in shared libraries
- From: A. Sajjad Zaidi
- References:
- [tlug] Undefined symbols in shared libraries
- From: A. Sajjad Zaidi
Home | Main Index | Thread Index
- Prev by Date: [tlug] How do I config CVS Server on NT4 ?
- Next by Date: Re: [tlug] Undefined symbols in shared libraries
- Previous by thread: [tlug] Undefined symbols in shared libraries
- Next by thread: Re: [tlug] Undefined symbols in shared libraries
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links