Subject: Re: dlopen'ing a plugin that calls functions in the parent...
To: Jason R Thorpe <email@example.com>
From: Jasper Wallace <firstname.lastname@example.org>
Date: 09/05/2001 23:11:26
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 5 Sep 2001, Jason R Thorpe wrote:
> On Wed, Sep 05, 2001 at 09:55:06PM +0100, Jasper Wallace wrote:
> > I'm trying to get the wirless plugin for gkrellm to work under
> > NetBSD 1.5.2.
> > After digging around with gdb the call to dlopen() on the plugin fails with
> > (as reported dy dlerror()):
> > Error: /usr/home/jasper/.gkrellm/plugins/wireless.so: Undefined PLT symbol
> > "gkrellm_draw_decal_text" (reloc type = 7, symnum = 31)
> > gkrellm_draw_decal_text is a function in gkrellm (and gkrellm is NOT
> > striped).
> gkrellm needs to be linked with the -E (--export-dyanmic) option. That
> should fix your problem.
yey! that did it. thanks.
> Any program which opens a shared object that needs to call back into
> the parent needs this option. I guess maybe it's the default on Linux,
> or something, because lots of programs fail to include it in their
When Ted's fixing your computer at a quarter past one, eat your
Whopper with cheese in his face. He functions better when he's
slightly dizzy from hunger.
[see: http://sysday.tripod.com/time.htm] [0x2ECA0975]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----