[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlopen question...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Am Mittwoch, 4. Juni 2003 18:18 schrieb Marc Matteo:
[...]
> Evolution uses libglade for ui elements.  Libglade uses gmodule (from
> glib) to look up function names in the symbol table.  gmodule uses
> dlopen for this but I suspect it's not getting what it should be getting
> from dlopen.

[...]
> I *think* the reason it can't find these functions is gmodule's
> _g_module_self isn't getting the right handle from dlopen when it tries
> 'dlopen (NULL, RTLD_GLOBAL | RTLD_LAZY)'.
I'm not sure but I had some problems looking up symbols, too (with 
Libchipcard).

The problem there was that symbols have the prefix "_" (underscore) in 
OpenBSD.

Example:
Function "GetUser()"
Under Linux/FreeBSD/NetBSD/Windoze the name to lookup via dlsym(3) would be 
"GetUser". However, OpenBSD needs "_GetUser".

Well, maybe that's of any help to you ?

I got Libchipcard to work with OpenBSD this way, but I didn't get any answer 
to the port submission so far...

regards
Martin

- -- 
LibChipcard - http://www.libchipcard.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+3kRvwcZBcYAOyGYRAqeOAJ9LO2uDfF2Gi8IEeBzJiVben2LTyQCaA1A8
9LlDn+t1OKB1Ouzi1uq+Xw4=
=v1V8
-----END PGP SIGNATURE-----