From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 18:52:22 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 86B9A16A41F for ; Thu, 10 Nov 2005 18:52:22 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AED043D6A for ; Thu, 10 Nov 2005 18:52:21 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jAAIqKfM017962; Thu, 10 Nov 2005 12:52:20 -0600 (CST) (envelope-from dan) Date: Thu, 10 Nov 2005 12:52:20 -0600 From: Dan Nelson To: Jeff Kreska Message-ID: <20051110185220.GE93359@dan.emsphone.com> References: <200511101727.jAAHRu3Y035224@ecs2400.jeff.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511101727.jAAHRu3Y035224@ecs2400.jeff.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 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 18:52:22 -0000 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