From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 19:00:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1478516A41F for ; Thu, 10 Nov 2005 19:00:35 +0000 (GMT) (envelope-from jeff@kreska.org) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [216.148.227.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5ECB43D53 for ; Thu, 10 Nov 2005 19:00:34 +0000 (GMT) (envelope-from jeff@kreska.org) Received: from hacking.kicks-ass.org ([24.1.125.150]) by comcast.net (rwcrmhc11) with ESMTP id <2005111019003201300iijtse>; Thu, 10 Nov 2005 19:00:32 +0000 Received: from TXPKRESKAJ (ecs2400.jeff.com [192.168.0.8]) by hacking.kicks-ass.org (8.13.2/8.13.2) with ESMTP id jAAJ0Vg8046258; Thu, 10 Nov 2005 13:00:31 -0600 (CST) (envelope-from jeff@kreska.org) Message-Id: <200511101900.jAAJ0Vg8046258@hacking.kicks-ass.org> From: "Jeff" To: "'Dan Nelson'" , "'Jeff Kreska'" Date: Thu, 10 Nov 2005 13:00:46 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXmJ/1vSVQ5TklMQe6BtUKxFycSAwAAGT0g In-Reply-To: <20051110185220.GE93359@dan.emsphone.com> Cc: freebsd-questions@freebsd.org Subject: RE: remove -tag=CC from libtool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 19:00:35 -0000 I am not sure how this happened. I was having some problems with php shared modules and decided to update my ports collection to see if the problem was fixed. At that time I could no longer build apache because of the libtool problem. I tried rebuilding libtool port which didn't help. I found a post saying that you need to pass CC=gcc to configure to prevent libtool from using the --tag=CC but I couldn't figure out how this would occur using the FreeBSD ports framework. Your patch is allowing me to build now. :) I am confused how everyone else is getting there ports to compile. > -----Original Message----- > From: Dan Nelson [mailto:dnelson@allantgroup.com] > Sent: Thursday, November 10, 2005 12:52 PM > To: Jeff Kreska > Cc: freebsd-questions@freebsd.org > Subject: Re: remove -tag=CC from libtool > > In the last episode (Nov 10), Jeff Kreska said: > > I am running 5.3-RELEASE I think, it says 5.3-SECURITY in the > > sysinstall prog > > > > I am having a heck of a time getting my newly supped ports > tree to compile. > > Several of the programs are calling libtool with a --tag=CC > and then it fails with the following error: > > libtool15: link: unable to infer tagged configuration > > libtool15: link: specify a tag with `--tag' > > It's a libtool bug, imho. It should require both --tag and > --mode for all invocations, and not try to guess what the user wanted. > > Are you running ccache or distcc (or have otherwise set CC to > something other than "cc" or "gcc")? That's usually what > causes it for me. > Here's my fix, which will make it use the CC tag if its guess failed. > > --- libtool15~ Thu Nov 10 12:49:57 2005 > +++ libtool15 Thu Nov 10 12:49:57 2005 > @@ -580,9 +580,7 @@ > # was found and let the user know that the "--tag" command > # line option must be used. > if test -z "$tagname"; then > - $echo "$modename: unable to infer tagged configuration" > - $echo "$modename: specify a tag with \--tag'" 1>&2 > - exit $EXIT_FAILURE > + tagname=CC > # else > # $echo "$modename: using $tagname tagged configuration" > fi > > > > -- > Dan Nelson > dnelson@allantgroup.com > >