Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2002 15:27:59 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        bruno@tinkerbox.org
Cc:        hackers@freebsd.org
Subject:   Re: problems with shared libraries
Message-ID:  <3CB4BC6F.1B0191E2@mindspring.com>
References:  <Pine.BSF.4.21.0204101206530.55519-100000@mail.dvart.com>

next in thread | previous in thread | raw e-mail | index | archive | help
bruno@tinkerbox.org wrote:
> Well, if I do link with -export-dynamic, I can not even make the first
> call to anything in the plugin, it segfaults immediately on some
> g_vsprintf_XXX function (that seems to come from glib).
> 
> What is going on ? I link the program with glib and all necessary libs.
> 
> If anybody has some insight on this, please let me know...

Nothing a tiny bit of instrumentation and a change in the way
you open it couldn't fix.

Set RTLD_NOW rather than RTLD_LAZY for testing.  When the dlopen()
fails, call dlerror() to retrieve the error message; it will tell
you exactly what is failing.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CB4BC6F.1B0191E2>