From owner-freebsd-hackers Wed Apr 10 18:52:10 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 4DEB637B400 for ; Wed, 10 Apr 2002 18:52:06 -0700 (PDT) Received: from mail.dvart.com (mail.dvart.com [64.79.2.12]) by mail.dvart.com (Postfix) with ESMTP id 77C81CD37; Wed, 10 Apr 2002 18:49:14 -0700 (PDT) Date: Wed, 10 Apr 2002 18:49:10 -0700 (PDT) From: bruno@tinkerbox.org X-Sender: bschwand@mail.dvart.com Reply-To: bruno@tinkerbox.org To: tlambert2@mindspring.com Cc: hackers@freebsd.org Subject: Re: problems with shared libraries (fwd) 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 that worked, I dlopen'ed glib in my program and put a stub for the glib function that was failing. It was getting bad data. Guess glib needs some stuff inited first maybe... anyway, it seems it works by spoofing it ! thanks bruno >Create a module "wrapper.so" that dlopen's glib.so.xxx, and *then* >dlopen's your module, and then reflects the interfaces down. >Alternately, don't use glib: it's intrinsically broken, by design. >-- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message