From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Friesenhahn Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: documentation / behavior discrepancy with lt_dlopenext Date: Wed, 30 Mar 2011 20:31:17 -0500 (CDT) Message-ID: References: <20110330192025.GG7627@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: dough.gmane.org 1301535102 13320 80.91.229.12 (31 Mar 2011 01:31:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 01:31:42 +0000 (UTC) Cc: bug-guile@gnu.org, bug-libtool@gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Mar 31 03:31:38 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q56jZ-0001AM-Pa for guile-bugs@m.gmane.org; Thu, 31 Mar 2011 03:31:38 +0200 Original-Received: from localhost ([127.0.0.1]:59071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q56jY-0000Ps-Tv for guile-bugs@m.gmane.org; Wed, 30 Mar 2011 21:31:36 -0400 Original-Received: from [140.186.70.92] (port=40496 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q56jT-0000Pn-Jj for bug-guile@gnu.org; Wed, 30 Mar 2011 21:31:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q56jS-0004Wv-9V for bug-guile@gnu.org; Wed, 30 Mar 2011 21:31:31 -0400 Original-Received: from blade.simplesystems.org ([65.66.246.74]:49535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q56jR-0004W8-Vj; Wed, 30 Mar 2011 21:31:30 -0400 Original-Received: from freddy.simplesystems.org (freddy.simplesystems.org [65.66.246.65]) by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id p2V1VHQC006108; Wed, 30 Mar 2011 20:31:17 -0500 (CDT) X-X-Sender: bfriesen@freddy.simplesystems.org In-Reply-To: User-Agent: Alpine 2.01 (GSO 1266 2009-07-14) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (blade.simplesystems.org [65.66.246.90]); Wed, 30 Mar 2011 20:31:19 -0500 (CDT) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 65.66.246.74 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5397 gmane.comp.gnu.libtool.bugs:7739 Archived-At: On Wed, 30 Mar 2011, Andy Wingo wrote: > > Sure, that's probably right. However it's tough to tell. You could > look for "\.so(\.|$)" or something. But that's encoding lots of > details. > > I think that uses of dlopenext are already oblivious to `stat' calls, > because they sanction looking for .la files before e.g. .so files, so > it's not a problem to just do what the doc says: bare path first, then > grovel extensions. Use of .la files does not incur more stat calls unless the .la file is not present. Using .la files is really a better solution than what you are trying to do. The .la file format is just simple text so guile could construct its own .la files (or rename/link-to existing .la files) to load versioned libraries in a particular way. Clearly libltdl is not matching its documentation and what you requested to do should have worked. Always keep in mind that there is a cost in terms of performance and security whenever libltdl looks in another place. Bob -- Bob Friesenhahn bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/