Subject: Re: dlsym(3) is buggy
To: None <rhialto@polderland.nl>
From: Shin'ichiro TAYA <taya@sm.sony.co.jp>
List: current-users
Date: 11/08/2000 11:16:48
From: Olaf Seibert <rhialto@polderland.nl>
Subject: dlsym(3) is buggy
Date: Wed, 8 Nov 2000 03:03:53 +0100

> (this is on NetBSD/Alpha 1.4.1 - is this fixed in 1.5??)
> 
> >From the manpage:
> 
>      void *
>      dlsym(void *handle, const char *symbol);
> 
>      dlsym() looks for a definition of symbol in the shared object designated
>      by handle.  The symbols address is returned.  If the symbol cannot be re-
>      solved, NULL is returned.
> 
> This turns out not to be true. The handle argument turns out to be
> ignored. If the symbol name can be found in either the main program or an
> earlier loaded object, that symbol will be returned.
> 
> This horribly breaks gnupg module loading... :-(

I also encountered this problem with galeon.
As for main program, '-export-dynamic' solved this problem for my
-current/i386 box.
Please try this option.

taya