From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Wildenhues Newsgroups: gmane.lisp.guile.devel,gmane.comp.gnu.libtool.general Subject: Re: How does one specify linking to 64 bit libraries when there is a choice? Date: Mon, 20 Dec 2010 20:20:25 +0100 Organization: Institute for Numerical Simulation, University of Bonn Message-ID: <20101220192025.GB22777@gmx.de> References: <4D0BC3CD.2030103@gmail.com> <4D0F63AC.2080303@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292872840 6088 80.91.229.12 (20 Dec 2010 19:20:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 19:20:40 +0000 (UTC) Cc: Bruce Korb , Libtool List , "Nelson H. F. Beebe" , guile-devel@gnu.org To: Bruce Korb Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Dec 20 20:20:35 2010 Return-path: Envelope-to: guile-devel@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 1PUlHf-0008HH-Ix for guile-devel@m.gmane.org; Mon, 20 Dec 2010 20:20:35 +0100 Original-Received: from localhost ([127.0.0.1]:48804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUlHf-0007kC-1D for guile-devel@m.gmane.org; Mon, 20 Dec 2010 14:20:35 -0500 Original-Received: from [140.186.70.92] (port=59847 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUlHb-0007hR-Eo for guile-devel@gnu.org; Mon, 20 Dec 2010 14:20:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUlHa-0001Qm-50 for guile-devel@gnu.org; Mon, 20 Dec 2010 14:20:31 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:36419 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PUlHZ-0001QB-ND for guile-devel@gnu.org; Mon, 20 Dec 2010 14:20:30 -0500 Original-Received: (qmail invoked by alias); 20 Dec 2010 19:20:26 -0000 Original-Received: from xdsl-89-0-68-246.netcologne.de (EHLO localhost.localdomain) [89.0.68.246] by mail.gmx.net (mp006) with SMTP; 20 Dec 2010 20:20:26 +0100 X-Authenticated: #13673931 X-Provags-ID: V01U2FsdGVkX19U/VhpIbJU3SHxUhYvWdbzyFO4tqtPJJKjtukaOz J149vJ7QSVoQWm Original-Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1PUlHV-0000ci-Qz; Mon, 20 Dec 2010 20:20:25 +0100 Mail-Followup-To: Bruce Korb , Libtool List , guile-devel@gnu.org, Noah Lavine , Bruce Korb , "Nelson H. F. Beebe" Content-Disposition: inline In-Reply-To: <4D0F63AC.2080303@gnu.org> User-Agent: Mutt/1.5.20 (2010-08-04) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11267 gmane.comp.gnu.libtool.general:11344 Archived-At: * Bruce Korb wrote on Mon, Dec 20, 2010 at 03:09:48PM CET: > How much understanding of the machinery should be expected > of the hapless project builder? I've skimmed most of the conversation in this thread now. The crucial part, I think, is *not* the --libdir setting. Distros usually get that consistent between their packages, and users should not be using any of /usr/lib{,32,64} but rather something below /usr/local. One crucial part is that libtool gets confused whenever it has directories with the wrong ABI in the search path (unlike ld or ld.so, both are in some cases smart enough to skip wrong ABI), which means that either no instance of the build system machineries may introduce such paths, or libtool needs to get smarter to ignore wrong ABI dirs. The other crucial part is that libtool doesn't get the sys_lib_search_path_spec and sys_lib_dlsearch_path_spec settings right on several distros, introducing such wrong directories itself (not to speak of cross setups). There have been several proposed patches to address this, e.g. http://thread.gmane.org/gmane.comp.gnu.libtool.patches/10625 http://thread.gmane.org/gmane.comp.gnu.libtool.patches/9931 but I have yet to see one that solves it. Thanks, Ralf