Received: (at 9728) by debbugs.gnu.org; 14 Oct 2011 13:53:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 09:53:29 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REiCW-0000gh-Uz for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:29 -0400 Received: from blade.simplesystems.org ([65.66.246.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <bfriesen@HIDDEN>) id 1REiCU-0000gU-UH for 9728 <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:28 -0400 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 p9EDqjaB018447; Fri, 14 Oct 2011 08:52:46 -0500 (CDT) Date: Fri, 14 Oct 2011 08:52:45 -0500 (CDT) From: Bob Friesenhahn <bfriesen@HIDDEN> X-X-Sender: bfriesen@HIDDEN To: Vincent Lefevre <vincent@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX In-Reply-To: <20111014074044.GX9516@HIDDEN> Message-ID: <alpine.GSO.2.01.1110140843250.4501@HIDDEN> References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <alpine.GSO.2.01.1110132136200.4501@HIDDEN> <20111014074044.GX9516@HIDDEN> User-Agent: Alpine 2.01 (GSO 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (blade.simplesystems.org [65.66.246.90]); Fri, 14 Oct 2011 08:52:46 -0500 (CDT) X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 9728 Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.1 (----) On Fri, 14 Oct 2011, Vincent Lefevre wrote: >> >> Actually, the user should be allowed to shoot themselves in the foot >> if they request it. > > Perhaps, but then, I think that if the user has a good reason to > do this, then it should be able to override the settings done at > configure time. So, --with-gmp=DIR should modify LDFLAGS, not > AM_LDFLAGS, because as $(AM_LDFLAGS) appears before $(LDFLAGS), > there would be no way to override a -L flag set in AM_LDFLAGS > by just modifying LDFLAGS. It is interesting that Automake decided to do this: LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ On one hand I can see that a project needs to take care to ensure that components it builds are used in the link. On the other hand, I can see that the user needs a last resort way to influence the library search path. This implies that a package developer should take great care to make sure that the content of AM_LDFLAGS will satisfy both objectives. This is an autoconf/automake/package issue rather than a libtool issue. >> I know that MPFR configure does work differently than almost any >> other software package. > > I don't know what you mean here. The main difference IMHO, is that > MPFR will try to get the compiler and flags chosen by GMP, but this I stand corrected. I was blaming the wrong package. Sorry about that. GMP is one of the few packages which may configure itself (by default) for a different architecture than the default architecture of the compiler or the architecture that the user requests via CFLAGS. It makes this decision based on which architecture offers the best performance rather than what the user needs. Bob -- Bob Friesenhahn bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 13:53:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 09:53:49 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REiCr-0000hD-6C for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:49 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <bfriesen@HIDDEN>) id 1REiCp-0000h2-AZ for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REiC6-0004C2-UP for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:59426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REiC6-0004By-Su for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 09:53:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]:45433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REiC4-0004GP-Gm for bug-libtool@HIDDEN; Fri, 14 Oct 2011 09:53:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REiBz-0004As-5u for bug-libtool@HIDDEN; Fri, 14 Oct 2011 09:53:00 -0400 Received: from blade.simplesystems.org ([65.66.246.74]:51105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REiBy-00048y-V9 for bug-libtool@HIDDEN; Fri, 14 Oct 2011 09:52:55 -0400 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 p9EDqjaB018447; Fri, 14 Oct 2011 08:52:46 -0500 (CDT) Date: Fri, 14 Oct 2011 08:52:45 -0500 (CDT) From: Bob Friesenhahn <bfriesen@HIDDEN> X-X-Sender: bfriesen@HIDDEN To: Vincent Lefevre <vincent@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX In-Reply-To: <20111014074044.GX9516@HIDDEN> Message-ID: <alpine.GSO.2.01.1110140843250.4501@HIDDEN> References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <alpine.GSO.2.01.1110132136200.4501@HIDDEN> <20111014074044.GX9516@HIDDEN> User-Agent: Alpine 2.01 (GSO 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (blade.simplesystems.org [65.66.246.90]); Fri, 14 Oct 2011 08:52:46 -0500 (CDT) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.0 (------) On Fri, 14 Oct 2011, Vincent Lefevre wrote: >> >> Actually, the user should be allowed to shoot themselves in the foot >> if they request it. > > Perhaps, but then, I think that if the user has a good reason to > do this, then it should be able to override the settings done at > configure time. So, --with-gmp=DIR should modify LDFLAGS, not > AM_LDFLAGS, because as $(AM_LDFLAGS) appears before $(LDFLAGS), > there would be no way to override a -L flag set in AM_LDFLAGS > by just modifying LDFLAGS. It is interesting that Automake decided to do this: LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ On one hand I can see that a project needs to take care to ensure that components it builds are used in the link. On the other hand, I can see that the user needs a last resort way to influence the library search path. This implies that a package developer should take great care to make sure that the content of AM_LDFLAGS will satisfy both objectives. This is an autoconf/automake/package issue rather than a libtool issue. >> I know that MPFR configure does work differently than almost any >> other software package. > > I don't know what you mean here. The main difference IMHO, is that > MPFR will try to get the compiler and flags chosen by GMP, but this I stand corrected. I was blaming the wrong package. Sorry about that. GMP is one of the few packages which may configure itself (by default) for a different architecture than the default architecture of the compiler or the architecture that the user requests via CFLAGS. It makes this decision based on which architecture offers the best performance rather than what the user needs. Bob -- Bob Friesenhahn bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at 9728) by debbugs.gnu.org; 14 Oct 2011 07:41:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 03:41:23 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REcOQ-0008IO-2r for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:41:22 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187] helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REcON-0008IG-6M for 9728 <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:41:20 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id A37EF310037; Fri, 14 Oct 2011 09:40:44 +0200 (CEST) Date: Fri, 14 Oct 2011 09:40:44 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Bob Friesenhahn <bfriesen@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111014074044.GX9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Bob Friesenhahn <bfriesen@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, 9728 <at> debbugs.gnu.org, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <alpine.GSO.2.01.1110132136200.4501@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <alpine.GSO.2.01.1110132136200.4501@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9728 Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -3.9 (---) On 2011-10-13 21:39:56 -0500, Bob Friesenhahn wrote: > On Fri, 14 Oct 2011, Vincent Lefevre wrote: > >>It should be possible for the user to build a package doing > >>./configure ..options..; make LDFLAGS=3D-fancyflag > >>CPPFLAGS=3D-I/want/coffee; > > > >I don't think this should be allowed: MPFR does some tests at > >configure time based on the current environment. If the user > >modifies the environment at make time, the configure tests no > >longer make sense (e.g. modifying LDFLAGS at make time can select > >a different GMP version). So, if the user does this, it is up to >=20 > Actually, the user should be allowed to shoot themselves in the foot > if they request it. Perhaps, but then, I think that if the user has a good reason to do this, then it should be able to override the settings done at configure time. So, --with-gmp=3DDIR should modify LDFLAGS, not AM_LDFLAGS, because as $(AM_LDFLAGS) appears before $(LDFLAGS), there would be no way to override a -L flag set in AM_LDFLAGS by just modifying LDFLAGS. Note: Mutt also modifies CPPFLAGS / LDFLAGS, not the AM_* versions. > LDFLAGS should be set including the user-provided setting > during the entire configure run so test results should be valid. This is how this works with MPFR. > I know that MPFR configure does work differently than almost any > other software package. I don't know what you mean here. The main difference IMHO, is that MPFR will try to get the compiler and flags chosen by GMP, but this is necessary in general (we have much fewer bug reports since we do this), though quite awkward. And if GMP does something in the user's back, MPFR shouldn't be blame for trying to fix things. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 07:41:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 03:41:30 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REcOY-0008Ih-2J for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:41:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REcOW-0008IW-QB for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:41:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REcNt-0005nN-Ft for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:40:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REcNt-0005nJ-Da for submit <at> debbugs.gnu.org; Fri, 14 Oct 2011 03:40:49 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REcNs-0002gE-9e for bug-libtool@HIDDEN; Fri, 14 Oct 2011 03:40:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REcNr-0005my-5g for bug-libtool@HIDDEN; Fri, 14 Oct 2011 03:40:48 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:64561 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REcNq-0005mh-PA for bug-libtool@HIDDEN; Fri, 14 Oct 2011 03:40:47 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id A37EF310037; Fri, 14 Oct 2011 09:40:44 +0200 (CEST) Date: Fri, 14 Oct 2011 09:40:44 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Bob Friesenhahn <bfriesen@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111014074044.GX9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Bob Friesenhahn <bfriesen@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, 9728 <at> debbugs.gnu.org, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <alpine.GSO.2.01.1110132136200.4501@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <alpine.GSO.2.01.1110132136200.4501@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) On 2011-10-13 21:39:56 -0500, Bob Friesenhahn wrote: > On Fri, 14 Oct 2011, Vincent Lefevre wrote: > >>It should be possible for the user to build a package doing > >>./configure ..options..; make LDFLAGS=3D-fancyflag > >>CPPFLAGS=3D-I/want/coffee; > > > >I don't think this should be allowed: MPFR does some tests at > >configure time based on the current environment. If the user > >modifies the environment at make time, the configure tests no > >longer make sense (e.g. modifying LDFLAGS at make time can select > >a different GMP version). So, if the user does this, it is up to >=20 > Actually, the user should be allowed to shoot themselves in the foot > if they request it. Perhaps, but then, I think that if the user has a good reason to do this, then it should be able to override the settings done at configure time. So, --with-gmp=3DDIR should modify LDFLAGS, not AM_LDFLAGS, because as $(AM_LDFLAGS) appears before $(LDFLAGS), there would be no way to override a -L flag set in AM_LDFLAGS by just modifying LDFLAGS. Note: Mutt also modifies CPPFLAGS / LDFLAGS, not the AM_* versions. > LDFLAGS should be set including the user-provided setting > during the entire configure run so test results should be valid. This is how this works with MPFR. > I know that MPFR configure does work differently than almost any > other software package. I don't know what you mean here. The main difference IMHO, is that MPFR will try to get the compiler and flags chosen by GMP, but this is necessary in general (we have much fewer bug reports since we do this), though quite awkward. And if GMP does something in the user's back, MPFR shouldn't be blame for trying to fix things. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at 9728) by debbugs.gnu.org; 14 Oct 2011 02:40:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 22:40:38 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REXhO-0001Zl-0n for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:38 -0400 Received: from blade.simplesystems.org ([65.66.246.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <bfriesen@HIDDEN>) id 1REXhK-0001ZY-VM for 9728 <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:37 -0400 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 p9E2du7J014538; Thu, 13 Oct 2011 21:39:56 -0500 (CDT) Date: Thu, 13 Oct 2011 21:39:56 -0500 (CDT) From: Bob Friesenhahn <bfriesen@HIDDEN> X-X-Sender: bfriesen@HIDDEN To: Vincent Lefevre <vincent@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX In-Reply-To: <20111013230629.GU9516@HIDDEN> Message-ID: <alpine.GSO.2.01.1110132136200.4501@HIDDEN> References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> User-Agent: Alpine 2.01 (GSO 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (blade.simplesystems.org [65.66.246.90]); Thu, 13 Oct 2011 21:39:57 -0500 (CDT) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 9728 Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.3 (----) On Fri, 14 Oct 2011, Vincent Lefevre wrote: >> It should be possible for the user to build a package doing >> ./configure ..options..; make LDFLAGS=-fancyflag >> CPPFLAGS=-I/want/coffee; > > I don't think this should be allowed: MPFR does some tests at > configure time based on the current environment. If the user > modifies the environment at make time, the configure tests no > longer make sense (e.g. modifying LDFLAGS at make time can select > a different GMP version). So, if the user does this, it is up to Actually, the user should be allowed to shoot themselves in the foot if they request it. LDFLAGS should be set including the user-provided setting during the entire configure run so test results should be valid. I know that MPFR configure does work differently than almost any other software package. Bob -- Bob Friesenhahn bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 02:40:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 22:40:59 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REXhh-0001aG-VF for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:59 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <bfriesen@HIDDEN>) id 1REXhf-0001a4-Tg for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REXh3-0008Fs-9s for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REXh2-0008FK-Np for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 22:40:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REXh0-00082V-Ab for bug-libtool@HIDDEN; Thu, 13 Oct 2011 22:40:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REXgy-0008DA-W3 for bug-libtool@HIDDEN; Thu, 13 Oct 2011 22:40:14 -0400 Received: from blade.simplesystems.org ([65.66.246.74]:50063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bfriesen@HIDDEN>) id 1REXgy-0008AL-Nu for bug-libtool@HIDDEN; Thu, 13 Oct 2011 22:40:12 -0400 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 p9E2du7J014538; Thu, 13 Oct 2011 21:39:56 -0500 (CDT) Date: Thu, 13 Oct 2011 21:39:56 -0500 (CDT) From: Bob Friesenhahn <bfriesen@HIDDEN> X-X-Sender: bfriesen@HIDDEN To: Vincent Lefevre <vincent@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX In-Reply-To: <20111013230629.GU9516@HIDDEN> Message-ID: <alpine.GSO.2.01.1110132136200.4501@HIDDEN> References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> User-Agent: Alpine 2.01 (GSO 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (blade.simplesystems.org [65.66.246.90]); Thu, 13 Oct 2011 21:39:57 -0500 (CDT) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit Cc: 9728 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.2 (------) On Fri, 14 Oct 2011, Vincent Lefevre wrote: >> It should be possible for the user to build a package doing >> ./configure ..options..; make LDFLAGS=-fancyflag >> CPPFLAGS=-I/want/coffee; > > I don't think this should be allowed: MPFR does some tests at > configure time based on the current environment. If the user > modifies the environment at make time, the configure tests no > longer make sense (e.g. modifying LDFLAGS at make time can select > a different GMP version). So, if the user does this, it is up to Actually, the user should be allowed to shoot themselves in the foot if they request it. LDFLAGS should be set including the user-provided setting during the entire configure run so test results should be valid. I know that MPFR configure does work differently than almost any other software package. Bob -- Bob Friesenhahn bfriesen@HIDDEN, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Oct 2011 01:49:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 21:49:34 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REWtx-0000Qy-Rp for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 21:49:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <peter@HIDDEN>) id 1REWtt-0000Qj-3F for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 21:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REWtH-0006bg-On for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 21:48:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:42497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REWtH-0006bc-IB for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 21:48:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REWtG-0000ri-HX for bug-libtool@HIDDEN; Thu, 13 Oct 2011 21:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REWtF-0006az-3q for bug-libtool@HIDDEN; Thu, 13 Oct 2011 21:48:50 -0400 Received: from pogma.xen.prgmr.com ([68.68.97.8]:39263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REWtE-0006al-TQ for bug-libtool@HIDDEN; Thu, 13 Oct 2011 21:48:49 -0400 Received: from [10.8.0.6] (unknown [10.8.0.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id A6158BF607; Fri, 14 Oct 2011 01:48:46 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com A6158BF607 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1318556926; bh=RROmwx1NqWhSM3HmjUUNGFdLEuF/xEn0QoZCKI2sAqw=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=FGJyUeWEJz0aOl6xjSBxnNAQv5TqtcHHdIPdmzkQhzKKxQ5YcMY+VxK4f129HpFR6 oqodPlKYZR8tI8qIaCRs3sKXU2nkm41qkYFhF7xUuzv8HYuOOmsHwyre5smbbRWStA WHA1VBRkLa5LIEXaCGAnbpHVrEOjJobwep9yv4iw= Message-ID: <4E9794FD.1080500@HIDDEN> Date: Thu, 13 Oct 2011 20:48:45 -0500 From: Peter O'Gorman <peter@HIDDEN> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14 MIME-Version: 1.0 To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN Subject: Re: bug#9728: Incorrect -L flags order for HP-UX References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <4E97727F.7040204@HIDDEN> <20111013235451.GB12043@HIDDEN> In-Reply-To: <20111013235451.GB12043@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.2 (-----) On 10/13/2011 06:54 PM, Vincent Lefevre wrote: > On 2011-10-13 18:21:35 -0500, Peter O'Gorman wrote: >> Ok, this is not a libtool bug though. When it can libtool will add the path >> to the .so instead of -L -l for libraries in the build dir. On many systems >> this works, but HP-UX is one of those systems where it does not, so -L -l >> are used instead. This can cause problems when an older version of the >> library is installed in $prefix. > > Or perhaps the -L shouldn't be added at all automatically, but should > be specified in the Makefile.am file? > > For instance, should -L$(top_builddir)/src/.libs be added to AM_LDFLAGS > in tests/Makefile.am? > > Since $(AM_LDFLAGS) appears before $(LDFLAGS) in the LINK command, > this should solve the problem. This -L flag would then be used also > on systems that don't need it, but I don't think this is a problem. > That might work. Peter
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 23:55:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 19:55:35 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REV7f-0006M1-Fl for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:55:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REV7d-0006Lo-C1 for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:55:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REV72-0006EE-8k for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:54:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:36602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REV72-0006EA-7I for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:54:56 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REV70-0000hS-P7 for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REV6z-0006Dq-0B for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:54:54 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:57686 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REV6y-0006Dg-MP for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:54:52 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 9CA28310033; Fri, 14 Oct 2011 01:54:51 +0200 (CEST) Date: Fri, 14 Oct 2011 01:54:51 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Peter O'Gorman <peter@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111013235451.GB12043@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <4E97727F.7040204@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4E97727F.7040204@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit Cc: bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) On 2011-10-13 18:21:35 -0500, Peter O'Gorman wrote: > Ok, this is not a libtool bug though. When it can libtool will add the = path > to the .so instead of -L -l for libraries in the build dir. On many sys= tems > this works, but HP-UX is one of those systems where it does not, so -L = -l > are used instead. This can cause problems when an older version of the > library is installed in $prefix. Or perhaps the -L shouldn't be added at all automatically, but should be specified in the Makefile.am file? For instance, should -L$(top_builddir)/src/.libs be added to AM_LDFLAGS in tests/Makefile.am? Since $(AM_LDFLAGS) appears before $(LDFLAGS) in the LINK command, this should solve the problem. This -L flag would then be used also on systems that don't need it, but I don't think this is a problem. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 23:44:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 19:44:04 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REUwU-00066B-HL for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:44:04 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REUwS-00065c-Fd for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:44:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUvr-0004Mn-EJ for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:43:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:58059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUvr-0004Mj-Ct for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:43:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUvq-000092-Bb for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:43:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUvp-0004MY-7Q for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:43:22 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:57535 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUvo-0004MT-SG for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:43:21 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 38C66310033; Fri, 14 Oct 2011 01:43:19 +0200 (CEST) Date: Fri, 14 Oct 2011 01:43:19 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Peter O'Gorman <peter@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111013234319.GV9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> <4E97727F.7040204@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4E97727F.7040204@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit Cc: bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) On 2011-10-13 18:21:35 -0500, Peter O'Gorman wrote: > Ok, this is not a libtool bug though. When it can libtool will add the = path > to the .so instead of -L -l for libraries in the build dir. On many sys= tems > this works, but HP-UX is one of those systems where it does not, so -L = -l > are used instead. This can cause problems when an older version of the > library is installed in $prefix. Which tool is responsible for adding the -L with the relative path? --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 23:22:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 19:22:20 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REUbT-0005bI-Qp for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:22:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <peter@HIDDEN>) id 1REUbQ-0005b5-UL for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REUaq-0007mL-A9 for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:21:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REUaq-0007mH-7R for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:21:40 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REUap-0006Yg-61 for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REUan-0007ls-Mt for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:21:39 -0400 Received: from pogma.xen.prgmr.com ([68.68.97.8]:55373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REUan-0007ll-DR for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:21:37 -0400 Received: from [192.168.209.185] (unknown [198.163.7.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id 84F16BF60E; Thu, 13 Oct 2011 23:21:35 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com 84F16BF60E DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1318548095; bh=0B1m+I5jKyHIo2a+cxMr/6xw4SwDoIzNmSggFPxm8Kg=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DybHMXUPIiq43XVQHHOiUh/lestE/SOxZ1Humhhv4++Qtcwlq5fmWi+MwH6WRh9IB aubzjTynFzr7TQrA7VSt2vqoiAeFeWMHZTq0LJanaCn37I2uKxN9hnpIl73DWWC2sL OO29gqA9lJbnq1SkVmmlAkO3/3x1Tj4AiwRAPR0k= Message-ID: <4E97727F.7040204@HIDDEN> Date: Thu, 13 Oct 2011 18:21:35 -0500 From: Peter O'Gorman <peter@HIDDEN> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN Subject: Re: bug#9728: Incorrect -L flags order for HP-UX References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> <20111013230629.GU9516@HIDDEN> In-Reply-To: <20111013230629.GU9516@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.9 (-----) On 10/13/2011 06:06 PM, Vincent Lefevre wrote: > >> Something like the attached patch should work for mpfr. > > There are several problems with it. First, I assume that LOADLIBES > should contain $(AM_CPPFLAGS) too. But the main problem is the > inconsistent flags order: in the compile command, $(AM_CPPFLAGS) > appears before $(CPPFLAGS), while in the link command, $(GMP_LIBS) > appears after $(LDFLAGS). This means that if the user uses both > --with-gmp and CPPFLAGS/LDFLAGS to provide search directories, > the include and library search paths will be inconsistent. > Ok, this is not a libtool bug though. When it can libtool will add the path to the .so instead of -L -l for libraries in the build dir. On many systems this works, but HP-UX is one of those systems where it does not, so -L -l are used instead. This can cause problems when an older version of the library is installed in $prefix. Sorry that I can't help more. Thanks, Peter
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 23:07:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 19:07:16 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REUMt-0005GV-DP for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:07:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REUMp-0005GH-Qg for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUME-0004k7-QM for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:06:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:35337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUME-0004k3-Oh for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 19:06:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUMD-0005Ko-KF for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUMC-0004jj-1C for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:06:33 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:56217 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REUMB-0004jc-KY for bug-libtool@HIDDEN; Thu, 13 Oct 2011 19:06:31 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 99537310033; Fri, 14 Oct 2011 01:06:29 +0200 (CEST) Date: Fri, 14 Oct 2011 01:06:29 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Peter O'Gorman <peter@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111013230629.GU9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> <4E96F05E.5010603@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4E96F05E.5010603@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit Cc: bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.8 (-----) Hi, On 2011-10-13 09:06:22 -0500, Peter O'Gorman wrote: > Well, if this is a bug at all, it is an automake/autoconf one, > libtool does not set the order of flags in Makefile.in, but I don't > believe that it is a bug. The autoconf manual says to use LDFLAGS for the -L options. So, it is either a bug in the autoconf manual or in automake. > LDFLAGS, CFLAGS, etc are for the user to set. And this is what MPFR does with --with-gmp, which is a shorthand for updating CPPFLAGS and LDFLAGS. > It should be possible for the user to build a package doing > ./configure ..options..; make LDFLAGS=3D-fancyflag > CPPFLAGS=3D-I/want/coffee; I don't think this should be allowed: MPFR does some tests at configure time based on the current environment. If the user modifies the environment at make time, the configure tests no longer make sense (e.g. modifying LDFLAGS at make time can select a different GMP version). So, if the user does this, it is up to him to make sure that the changes are equivalent to what was set at configure time. > Something like the attached patch should work for mpfr. There are several problems with it. First, I assume that LOADLIBES should contain $(AM_CPPFLAGS) too. But the main problem is the inconsistent flags order: in the compile command, $(AM_CPPFLAGS) appears before $(CPPFLAGS), while in the link command, $(GMP_LIBS) appears after $(LDFLAGS). This means that if the user uses both --with-gmp and CPPFLAGS/LDFLAGS to provide search directories, the include and library search paths will be inconsistent. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 14:07:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 10:07:20 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RELwO-0008R9-Eh for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 10:07:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <peter@HIDDEN>) id 1RELwI-0008Qs-5F for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 10:07:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1RELve-0004nc-F2 for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 10:06:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:56315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1RELve-0004nW-Cx for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 10:06:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]:34250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1RELvY-0003Jx-3S for bug-libtool@HIDDEN; Thu, 13 Oct 2011 10:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1RELvV-0004mf-TF for bug-libtool@HIDDEN; Thu, 13 Oct 2011 10:06:28 -0400 Received: from pogma.xen.prgmr.com ([68.68.97.8]:52713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1RELvV-0004mV-If for bug-libtool@HIDDEN; Thu, 13 Oct 2011 10:06:25 -0400 Received: from [10.8.0.6] (unknown [10.8.0.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id 33285BF607; Thu, 13 Oct 2011 14:06:23 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com 33285BF607 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1318514783; bh=+/z8j4VfiUl0jRdSaq16TIjfX1Do5XYDOQopGg2pmgo=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type; b=CmzwtBq3kLv+mUILl397JJploTLxcy29eVyyNq0bZi9bbttmQmVMWuqAV0GvVpfA2 uLl/CmKc4XdrSTqRJJyK26Jvmf/hbdnOXVN2Ke0mGVPB/4JHFkUpj5EZlyaPfm5KV1 e6ADGIablwybrzPZVQEPAbA2bycamxiwVLgpz6KQ= Message-ID: <4E96F05E.5010603@HIDDEN> Date: Thu, 13 Oct 2011 09:06:22 -0500 From: Peter O'Gorman <peter@HIDDEN> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14 MIME-Version: 1.0 To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN Subject: Re: bug#9728: Incorrect -L flags order for HP-UX References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> <20111013103200.GQ9516@HIDDEN> In-Reply-To: <20111013103200.GQ9516@HIDDEN> Content-Type: multipart/mixed; boundary="------------080206080909050106000700" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. --------------080206080909050106000700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/13/2011 05:32 AM, Vincent Lefevre wrote: > On 2011-10-12 21:52:36 -0500, Peter O'Gorman wrote: >> If the flags were added by the user, they could set LIBS=-L/opt/gnu/lib >> instead on some platfroms, but that won't work on HP-UX either because its >> linker is rather strict that -L flags for paths that contain the library be >> ordered before the -l flag for that library. >> >> Anyway, the problem can be avoided by not putting the -L and -l flags for >> gmp in LDFLAGS and LIBS, instead put both in e.g. GMP_LIBS, >> (GMP_LIBS="-L/opt/gnu/lib -lgmp"), then add $(GMP_LIBS) to LDADD. > > This doesn't work with autoconf's AC_CHECK_LIB and other tests. > And using LDFLAGS for autoconf and LDADD in the Makefile would > be quite hard to maintain due to the risk of inconsistencies. > > autoconf and libtool should agree on the way to add -L flags. > Hi Vincent, Well, if this is a bug at all, it is an automake/autoconf one, libtool does not set the order of flags in Makefile.in, but I don't believe that it is a bug. LDFLAGS, CFLAGS, etc are for the user to set. It should be possible for the user to build a package doing ./configure ..options..; make LDFLAGS=-fancyflag CPPFLAGS=-I/want/coffee; http://www.gnu.org/prep/standards/standards.html#Command-Variables The usual way to get specific flags set to allow this is to save LDFLAGS, CPPFLAGS etc. before doing an autoconf test, do the test, then restore the original flags. Something like the attached patch should work for mpfr. Peter --------------080206080909050106000700 Content-Type: text/x-patch; name="mpfr.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mpfr.diff" --- ./tests/Makefile.am.orig 2011-10-13 12:38:25.706848813 +0000 +++ ./tests/Makefile.am 2011-10-13 12:49:01.617145045 +0000 @@ -42,8 +42,8 @@ EXTRA_DIST = tgeneric.c tgeneric_ui.c mpf_compat.h inp_str.data tmul.dat -LDADD = libfrtests.la $(MPFR_LIBM) $(top_builddir)/src/libmpfr.la -INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src +LDADD = libfrtests.la $(MPFR_LIBM) $(top_builddir)/src/libmpfr.la $(GMP_LIBS) +AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src $(GMP_CPPFLAGS) # LOADLIBES (documented in the "GNU make" manual and equivalent to LDLIBS) # enables to compile a program foo.c in the test directory by simply doing @@ -54,7 +54,7 @@ # Moreover, dependencies are not tracked. Thus you may want to run # "make tversion" (for instance) just before, to make sure that every # dependency has been rebuilt. -LOADLIBES=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(top_builddir)/tests/.libs/libfrtests.a $(top_builddir)/src/.libs/libmpfr.a $(LIBS) $(MPFR_LIBM) +LOADLIBES=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(top_builddir)/tests/.libs/libfrtests.a $(top_builddir)/src/.libs/libmpfr.a $(LIBS) $(MPFR_LIBM) $(GMP_LIBS) check_LTLIBRARIES = libfrtests.la libfrtests_la_SOURCES = mpfr-test.h memory.c rnd_mode.c tests.c cmp_str.c random2.c --- ./src/Makefile.am.orig 2011-10-13 12:38:25.747671563 +0000 +++ ./src/Makefile.am 2011-10-13 12:39:36.024692542 +0000 @@ -8,6 +8,7 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +AM_CPPFLAGS = $(GMP_CPPFLAGS) EXTRA_DIST = round_raw_generic.c jyn_asympt.c x86/core2/mparam.h \ x86/mparam.h x86_64/core2/mparam.h x86_64/pentium4/mparam.h \ @@ -57,7 +58,7 @@ scale2.c set_z_exp.c ai.c gammaonethird.c ieee_floats.h \ grandom.c -libmpfr_la_LIBADD = @LIBOBJS@ +libmpfr_la_LIBADD = @LIBOBJS@ $(GMP_LIBS) # Libtool -version-info CURRENT[:REVISION[:AGE]] for libmpfr.la # --- ./tune/Makefile.am.orig 2011-10-13 12:38:25.768653665 +0000 +++ ./tune/Makefile.am 2011-10-13 12:49:41.404012941 +0000 @@ -8,19 +8,19 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. - +AM_CPPFLAGS = $(GMP_CPPFLAGS) EXTRA_PROGRAMS = tuneup speed bidimensional_sample tuneup_SOURCES = tuneup.c -tuneup_LDADD = -lspeed $(top_builddir)/src/libmpfr.la +tuneup_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(GMP_LIBS) tuneup_LDFLAGS = -static speed_SOURCES = speed.c -speed_LDADD = -lspeed $(top_builddir)/src/libmpfr.la +speed_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(GMP_LIBS) speed_LDFLAGS = -static bidimensional_sample_SOURCES = bidimensional_sample.c -bidimensional_sample_LDADD = -lspeed $(top_builddir)/src/libmpfr.la +bidimensional_sample_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(GMP_LIBS) bidimensional_sample_LDFLAGS = -static INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src --- ./configure.ac.orig 2011-10-13 12:27:30.375020247 +0000 +++ ./configure.ac 2011-10-13 14:03:45.688749700 +0000 @@ -50,17 +50,17 @@ unset gmp_lib_path GMP_CFLAGS GMP_CC AC_ARG_WITH(gmp_include, [ --with-gmp-include=DIR GMP include directory ], - CPPFLAGS="$CPPFLAGS -I$withval") + [GMP_CPPFLAGS="-I$withval"]) AC_ARG_WITH(gmp_lib, [ --with-gmp-lib=DIR GMP lib directory ], [ - LDFLAGS="$LDFLAGS -L$withval" + GMP_LDFLAGS="-L$withval" gmp_lib_path="$withval" ]) AC_ARG_WITH(gmp, [ --with-gmp=DIR GMP install directory ], [ if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then - CPPFLAGS="$CPPFLAGS -I$withval/include" - LDFLAGS="$LDFLAGS -L$withval/lib" + GMP_CPPFLAGS="-I$withval/include" + GMP_LDFLAGS="-L$withval/lib" gmp_lib_path="$withval/lib" else AC_MSG_FAILURE([Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.]) @@ -71,8 +71,8 @@ [ --with-gmp-build=DIR GMP build directory (please read INSTALL file)], [ if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then - CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune" - LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune" + GMP_CPPFLAGS="-I$withval -I$withval/tune" + GMP_LDFLAGS="-L$withval -L$withval/.libs -L$withval/tune" gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune" if test -r $withval/Makefile ; then GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile` @@ -171,6 +171,10 @@ dnl options); if the compiler changes due to __GMP_CC in gmp.h, one dnl would have incorrect settings. dnl FIXME: Move this in aclocal ? +mpfr_save_LDFLAGS="$LDFLAGS" +mpfr_save_CPPFLAGS="$CPPFLAGS" +LDFLAGS="$GMP_LDFLAGS $LDFLAGS" +CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS" if test -z "$GMP_CC$GMP_CFLAGS" ; then AC_MSG_CHECKING(for CC and CFLAGS in gmp.h) GMP_CC=__GMP_CC @@ -448,11 +452,13 @@ dnl is libgmp-3 (due to libtool versionning). The best solution dnl is to believe it works under MS-Windows. if test "$dont_link_with_gmp" = yes ; then -LIBS="-lgmp $LIBS" +GMP_LIBS="$GMP_LDFLAGS -lgmp" else dnl Check if we can link with GMP -AC_CHECK_LIB(gmp, __gmpz_init, [LIBS="-lgmp $LIBS"], +mpfr_save_LIBS="$LIBS" +AC_CHECK_LIB(gmp, __gmpz_init, [GMP_LIBS="$GMP_LDFLAGS -lgmp" +LIBS="-lgmp $LIBS"], [AC_MSG_ERROR(libgmp not found or uses a different ABI (including static vs shared). Please read the INSTALL file -- see "In case of problem".)]) @@ -511,7 +517,12 @@ AC_CHECK_FUNCS([__gmpn_rootrem __gmpn_sbpi1_divappr_q]) dnl End of tests which need to link with GMP. +LIBS="$mpfr_save_LIBS" fi +LDFLAGS="$mpfr_save_LDFLAGS" +CPPFLAGS="$mpfr_save_CPPFLAGS" +AC_SUBST([GMP_CPPFLAGS]) +AC_SUBST([GMP_LIBS]) dnl Remove also many MACROS (AC_DEFINE) which are unused by MPFR dnl and polluate (and slow down because libtool has to parse them) the build. --------------080206080909050106000700--
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 10:32:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 06:32:52 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REIap-0001yI-Nn for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 06:32:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REIal-0001y2-V8 for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 06:32:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REIa9-00052B-D8 for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 06:32:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REIa9-000527-Al for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 06:32:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:32889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REIa8-0006oq-9U for bug-libtool@HIDDEN; Thu, 13 Oct 2011 06:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REIa3-00051E-6M for bug-libtool@HIDDEN; Thu, 13 Oct 2011 06:32:08 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:60094 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REIa2-00050w-P2 for bug-libtool@HIDDEN; Thu, 13 Oct 2011 06:32:03 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id D291B310033; Thu, 13 Oct 2011 12:32:00 +0200 (CEST) Date: Thu, 13 Oct 2011 12:32:00 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Peter O'Gorman <peter@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111013103200.GQ9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4E965274.3040609@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit Cc: bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.8 (-----) On 2011-10-12 21:52:36 -0500, Peter O'Gorman wrote: > If the flags were added by the user, they could set LIBS=3D-L/opt/gnu/l= ib > instead on some platfroms, but that won't work on HP-UX either because = its > linker is rather strict that -L flags for paths that contain the librar= y be > ordered before the -l flag for that library. >=20 > Anyway, the problem can be avoided by not putting the -L and -l flags f= or > gmp in LDFLAGS and LIBS, instead put both in e.g. GMP_LIBS, > (GMP_LIBS=3D"-L/opt/gnu/lib -lgmp"), then add $(GMP_LIBS) to LDADD. This doesn't work with autoconf's AC_CHECK_LIB and other tests. And using LDFLAGS for autoconf and LDADD in the Makefile would be quite hard to maintain due to the risk of inconsistencies. autoconf and libtool should agree on the way to add -L flags. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 09:27:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 13 05:27:46 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REHZp-0000VU-MM for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 05:27:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1REHZn-0000VH-TN for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 05:27:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REHZB-0005VX-9C for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 05:27:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REHZB-0005VT-7g for submit <at> debbugs.gnu.org; Thu, 13 Oct 2011 05:27:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REHZ7-0003QW-6f for bug-libtool@HIDDEN; Thu, 13 Oct 2011 05:27:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REHZ5-0005UQ-MZ for bug-libtool@HIDDEN; Thu, 13 Oct 2011 05:27:01 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:59551 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1REHZ5-0005Tw-6a for bug-libtool@HIDDEN; Thu, 13 Oct 2011 05:26:59 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 8DD23310033; Thu, 13 Oct 2011 11:26:56 +0200 (CEST) Date: Thu, 13 Oct 2011 11:26:56 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: Peter O'Gorman <peter@HIDDEN> Subject: Re: bug#9728: Incorrect -L flags order for HP-UX Message-ID: <20111013092656.GP9516@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, Peter O'Gorman <peter@HIDDEN>, bug-libtool@HIDDEN References: <20111011135830.GA12479@HIDDEN> <4E965274.3040609@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4E965274.3040609@HIDDEN> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit Cc: bug-libtool@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.7 (-----) Hi Peter, On 2011-10-12 21:52:36 -0500, Peter O'Gorman wrote: > Unfortunately this is a fairly common problem. Will this eventually be fixed? For instance libtool/automake could put the -Lrelative/path in a variable that would appear before $(LDFLAGS). Otherwise the autoconf manual should be corrected, as it currently says to use LDFLAGS for -L options. > If the flags were added by the user, they could set LIBS=3D-L/opt/gnu/l= ib > instead on some platfroms, but that won't work on HP-UX either because = its > linker is rather strict that -L flags for paths that contain the librar= y be > ordered before the -l flag for that library. >=20 > Anyway, the problem can be avoided by not putting the -L and -l flags f= or > gmp in LDFLAGS and LIBS, instead put both in e.g. GMP_LIBS, > (GMP_LIBS=3D"-L/opt/gnu/lib -lgmp"), then add $(GMP_LIBS) to LDADD. OK, I'll try that. --=20 Vincent Lef=E8vre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Ar=E9naire project (LIP, ENS-Lyon)
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 Oct 2011 02:53:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 12 22:53:22 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1REBQ8-0008QD-LL for submit <at> debbugs.gnu.org; Wed, 12 Oct 2011 22:53:22 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <peter@HIDDEN>) id 1REBQ3-0008Px-OU for submit <at> debbugs.gnu.org; Wed, 12 Oct 2011 22:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REBPX-0005qg-Rd for submit <at> debbugs.gnu.org; Wed, 12 Oct 2011 22:52:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REBPX-0005qc-QA for submit <at> debbugs.gnu.org; Wed, 12 Oct 2011 22:52:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REBPW-0007ff-Kz for bug-libtool@HIDDEN; Wed, 12 Oct 2011 22:52:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REBPV-0005qB-Ke for bug-libtool@HIDDEN; Wed, 12 Oct 2011 22:52:42 -0400 Received: from pogma.xen.prgmr.com ([68.68.97.8]:57307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <peter@HIDDEN>) id 1REBPV-0005px-Dx for bug-libtool@HIDDEN; Wed, 12 Oct 2011 22:52:41 -0400 Received: from [10.8.0.6] (unknown [10.8.0.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id 7EE41BF607; Thu, 13 Oct 2011 02:52:37 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com 7EE41BF607 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1318474357; bh=+8nEsLzi8z/G39IqhgvvkNCght9R3mkaz9WY/Lk+B0w=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=bDMrBU2zrww1F3wLxsHYEJcGOrMgPimK1ifRSy0BPxLPh8uod14gh26HiW0GbSvkF ejGYcWaNSXxpC2Due4Zz2oflZFjw6zHyQs4T0JanC4ipfXLTFYtg6rxfffNYQfqzdi 0HjbeF13xlmdNunJvxYI+wmRBoihxnIa5R1zhdGE= Message-ID: <4E965274.3040609@HIDDEN> Date: Wed, 12 Oct 2011 21:52:36 -0500 From: Peter O'Gorman <peter@HIDDEN> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14 MIME-Version: 1.0 To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN Subject: Re: bug#9728: Incorrect -L flags order for HP-UX References: <20111011135830.GA12479@HIDDEN> In-Reply-To: <20111011135830.GA12479@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.6 (----) On 10/11/2011 08:58 AM, Vincent Lefevre wrote: > With libtool 2.4 and automake 1.11.1, we have the following problem > for MPFR 3.1.0. We have received a bug report saying that when the > tests are run on a HP-UX machine, the following command is run: > > libtool: link: gcc -O2 -s -o tversion tversion.o -L/opt/gnu/lib ./.libs/libfrtests.a -lm -L../src/.libs -lmpfr -lgmp -Wl,+b -Wl,/xxx/gnu/mpfr-3.1.0/objdir/src/.libs:/opt/gnu/lib > > The problem is that -L../src/.libs comes after -L/opt/gnu/lib, so that > linking is done against the MPFR version installed in /opt/gnu/lib > instead of the one from ../src/.libs, which has just been compiled. Hi Vincent, Unfortunately this is a fairly common problem. If the flags were added by the user, they could set LIBS=-L/opt/gnu/lib instead on some platfroms, but that won't work on HP-UX either because its linker is rather strict that -L flags for paths that contain the library be ordered before the -l flag for that library. Anyway, the problem can be avoided by not putting the -L and -l flags for gmp in LDFLAGS and LIBS, instead put both in e.g. GMP_LIBS, (GMP_LIBS="-L/opt/gnu/lib -lgmp"), then add $(GMP_LIBS) to LDADD. Peter
bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.Received: (at submit) by debbugs.gnu.org; 11 Oct 2011 13:59:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 11 09:59:06 2011 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RDcrJ-00075z-5F for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 09:59:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <vincent@HIDDEN>) id 1RDcrG-00075V-1D for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 09:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1RDcqs-00074T-MV for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 09:58:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1RDcqs-00074P-Jd for submit <at> debbugs.gnu.org; Tue, 11 Oct 2011 09:58:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1RDcqr-0006Mu-J0 for bug-libtool@HIDDEN; Tue, 11 Oct 2011 09:58:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1RDcqn-0006tS-89 for bug-libtool@HIDDEN; Tue, 11 Oct 2011 09:58:37 -0400 Received: from ypig.lip.ens-lyon.fr ([140.77.13.48]:46446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <vincent@HIDDEN>) id 1RDcqn-0006sV-1P for bug-libtool@HIDDEN; Tue, 11 Oct 2011 09:58:33 -0400 Received: from vlefevre by ypig.lip.ens-lyon.fr with local (Exim 4.76) (envelope-from <vincent@HIDDEN>) id 1RDcqk-0005st-Vm; Tue, 11 Oct 2011 15:58:30 +0200 Date: Tue, 11 Oct 2011 15:58:30 +0200 From: Vincent Lefevre <vincent@HIDDEN> To: bug-libtool@HIDDEN Subject: Incorrect -L flags order for HP-UX Message-ID: <20111011135830.GA12479@HIDDEN> Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>, bug-libtool@HIDDEN MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.2 (------) With libtool 2.4 and automake 1.11.1, we have the following problem for MPFR 3.1.0. We have received a bug report saying that when the tests are run on a HP-UX machine, the following command is run: libtool: link: gcc -O2 -s -o tversion tversion.o -L/opt/gnu/lib ./.libs/libfrtests.a -lm -L../src/.libs -lmpfr -lgmp -Wl,+b -Wl,/xxx/gnu/mpfr-3.1.0/objdir/src/.libs:/opt/gnu/lib The problem is that -L../src/.libs comes after -L/opt/gnu/lib, so that linking is done against the MPFR version installed in /opt/gnu/lib instead of the one from ../src/.libs, which has just been compiled. -L/opt/gnu/lib comes from LDFLAGS (set up by the configure script); it is needed to find some other library (GMP). -L../src/.libs is added to find the MPFR library to be tested (it is necessary under HP-UX). It seems to be added to $LIBS, where in tests/Makefile.in, one gets: LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ tversion$(EXEEXT): $(tversion_OBJECTS) $(tversion_DEPENDENCIES) @rm -f tversion$(EXEEXT) $(LINK) $(tversion_OBJECTS) $(tversion_LDADD) $(LIBS) Note: the problem cannot be reproduced under Linux, as ../src/.libs/libmpfr.so is used instead of -L... -lmpfr. Thread of the bug report: http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00042.html -- Vincent Lefèvre <vincent@HIDDEN> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Vincent Lefevre <vincent@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#9728
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.