[Monetdb-developers] why open() before dlopen()?

Mark Bucciarelli mkbucc at gmail.com
Fri Mar 19 17:20:26 CET 2010


On Fri, Mar 19, 2010 at 11:54 AM, Fabian Groffen <Fabian.Groffen at cwi.nl> wrote:
>
> in general dlopen is a very smart function,
>

The issue isn't with dlopen().

It's with MSP_locate_file() in mal_linker.c.

MSP_locate_file() throws a runtime error if open() fails,
and the call to open() assumes a .so with no version
suffix.  This logic assumes a certain setting of the
libtool variable library_names_spec, which can vary by
platform.

In fact, there's already an #ifdef _AIX in that function that
ignores the open() error, so this has come up before for
another platform.

Thanks,

m




More information about the developers-list mailing list