From owner-freebsd-hackers Wed Apr 10 15:28:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id DBDD137B400 for ; Wed, 10 Apr 2002 15:28:26 -0700 (PDT) Received: from pool0071.cvx40-bradley.dialup.earthlink.net ([216.244.42.71] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16vQZl-0003zE-00; Wed, 10 Apr 2002 15:28:25 -0700 Message-ID: <3CB4BC6F.1B0191E2@mindspring.com> Date: Wed, 10 Apr 2002 15:27:59 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: bruno@tinkerbox.org Cc: hackers@freebsd.org Subject: Re: problems with shared libraries References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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