From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Re: packaging the add-on libs... Date: Mon, 14 Oct 2002 13:34:45 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <20021014113445.GA26258@www> References: <87vg4aevgx.fsf@raven.i.defaultvalue.org> <20021010071246.GA29109@www> <87lm56co8t.fsf@raven.i.defaultvalue.org> <20021011094150.GA3235@www> <87zntl0xvq.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034594297 19889 127.0.0.1 (14 Oct 2002 11:18:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 11:18:17 +0000 (UTC) Cc: tomas@fabula.de, guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1813Em-0005AY-00 for ; Mon, 14 Oct 2002 13:18:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1813Ec-00026w-00; Mon, 14 Oct 2002 07:18:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1813Dn-0001ud-00 for guile-devel@gnu.org; Mon, 14 Oct 2002 07:17:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1813Dl-0001sm-00 for guile-devel@gnu.org; Mon, 14 Oct 2002 07:17:14 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by monty-python.gnu.org with esmtp (Exim 4.10) id 1813Dk-0001s9-00 for guile-devel@gnu.org; Mon, 14 Oct 2002 07:17:13 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id B770A1049BA; Mon, 14 Oct 2002 13:34:45 +0200 (CEST) Original-To: Rob Browning Content-Disposition: inline In-Reply-To: <87zntl0xvq.fsf@raven.i.defaultvalue.org> User-Agent: Mutt/1.3.24i Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1548 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1548 On Fri, Oct 11, 2002 at 10:59:53AM -0500, Rob Browning wrote: > tomas@fabula.de writes: > > > Yes, I know (that's why I know I was taking risks ;-). I felt uneasy > > then and still feel uneasy abut it (see below). > > Well FWIW, I did some experimentation [...] [enlightening example snipped] I totally agree with you in that this double linkage leads to undefined behaviour (different from system to system and probably not explicitly documented on most systems, so that e.g. ld-linux.so might feel free to change its behaviour some day without saying so). It's most undesirable, so I think the ideas you posted elsewhere (checking the lib version I'm linked against to catch this case) are definitely worth a try. [...] > The main problem with this is that any apps or libs linked against > these "add-on" libs will have to do something special to access the > libs, i.e. -rpath, mangling LD_LIBRARY_PATH, etc. That was more or less what I was pleading for: in the cases we can (that is: for what can be considered a guile ``plugin''), do it -- in the cases we can't (that is: ``standard system libs''), well, don't -- just use system standard searching and loading mechanism. That imposes the burden of differentiating plugins from simple libraries (in a way less elegant). But it buys us something. > and as we've > discussed, there are some definite issues with doing that portably, > and in a way that doesn't have the potential to interact badly with > other libs that might do the same thing, so we'd have to be cautious > when considering this approach. For libs no-one's ever allowed to > link directly to, there's no problem. You have more experience with those issues than me, so I'm ready to shut up, having made enough noise already ;-) Regards -- tomas _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel