Subject: Re: having problems with dlsym()
To: Nick <nmanisca@vt.edu>
From: Douglas Brebner <douglas+list@fang.demon.co.uk>
List: netbsd-help
Date: 09/13/2000 06:26:14
On Sun, 10 Sep 2000, Nick wrote:
> I am running 1.4.2.  I have a program that uses dlopen() and dlsym()
> to call functions from shared objects.  This program works fine on
> my FreeBSD 4.1 system but I cannot get it to work on any of my
> NetBSD 1.4.2 systems.
> 
> Here is the problem.  dlsym() seems to be returning NULL.  However,
> _init() and _fini() do get called.  Could dlopen/dlsym work differently
> on NetBSD than on FreeBSD?

Is your NetBSD machine an i386? If so, then it's because this port uses
a.out format for the executables which have an underscore prepended to the
symbols which ELF format files don't.

i.e. "_symbol" instead of "symbol"

Hope this helps
-- 
Douglas