From owner-freebsd-hackers Wed Apr 10 12:23:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.dvart.com (mail.dvart.com [64.79.2.12]) by hub.freebsd.org (Postfix) with ESMTP id D4EA337B400 for ; Wed, 10 Apr 2002 12:23:37 -0700 (PDT) Received: from mail.dvart.com (mail.dvart.com [64.79.2.12]) by mail.dvart.com (Postfix) with ESMTP id 4C29ECD31 for ; Wed, 10 Apr 2002 12:20:44 -0700 (PDT) Date: Wed, 10 Apr 2002 12:20:39 -0700 (PDT) From: bruno@tinkerbox.org X-Sender: bschwand@mail.dvart.com Reply-To: bruno@tinkerbox.org To: hackers@freebsd.org Subject: problems with shared libraries Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I am trying to port a little program that makes use of shared libraries, and havin some problems with that. This is the situation: the software is an mp3 player daemon, controllable through sockets. For inout/output, it uses xmms plugins. the problem happens when loading the xmms plugin shared lib. If I do not link the program with -export-dynamic, I can load the plugin, call the init entry point, and then call some other functions in the plugin. However, the plugin at some point needs to call a function in my program, and that fails. I get an error from the ld-elf saying that the symbol is undefined. I guess this is expected since I did not link with -export-dynamic, right ? 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... bruno To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message