GDB a VFS module
Jelmer Vernooij
jelmer at vernstok.nl
Thu Apr 22 01:35:41 GMT 2004
Hi,
On Wed, Apr 21, 2004 at 06:32:07PM -0700, Jagan wrote about 'GDB a VFS module':
> I was able to gdb my vfs module in vfstest. However a
> peculiar thing happened. I am compiling
> The module abc.so with some libraries of my own. On a
> make modules from samba/source the make
> Went through smoothly but the libraries never got
> linked. On a run from vfstest ? function foo in abc.so
> makes a
> Call to function ?bar? which was never linked in. I am
> wondering how the .so?s for vfs modules don?t track
> Library dependencies. Does it just assume that
> everything will be dynamically linked in.
You need to link abc.so against your libraries.
e.g.
gcc -shared -o abc.so foo.c bar.c -lmylib
> Question 2: How does vfstest have its LD_LIBRARY_PATH
> linked in??
It's the responsibility of the specific modules to link against the
libraries they need.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at vernstok.nl> - http://jelmer.vernstok.nl/
Todo: 0
More information about the samba-technical
mailing list