From owner-freebsd-ports@FreeBSD.ORG Tue Jan 1 06:58:28 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 697A499F for ; Tue, 1 Jan 2013 06:58:28 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by mx1.freebsd.org (Postfix) with ESMTP id EAFC18FC08 for ; Tue, 1 Jan 2013 06:58:27 +0000 (UTC) Received: by mail-ee0-f51.google.com with SMTP id d4so6300834eek.38 for ; Mon, 31 Dec 2012 22:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=41c4TuX9Ju5IaRpkNSyWb4YVCpqDaIdZA8oKidA3vuw=; b=lzv9pIOgBML6bTUckEuA6Y82luH050H1AnXKRmJF8OXPzzBykLnycLKPAt2zYruB79 T9Pd4qiArYyIZwekcPf57nJnkEvJBB9T69gkFR1eUGeuLRHTjanHnrRPolo4xd41Fy+i RsKYtb6xKdf8YLmeBsSDhzhXrSkyKfcNGYV3D1e+LkFfiyaVNAqZcJrlU1Y+a9Tjdba/ Tyo6iR0KrAXPAsQzHZqv89LJKuvsswpgbLTuZuKGK+oBTTJryot9ABuGer9mMVTQzbss FJOhmH+550eZB1z0yCPi47a1Z4tx4kUsYFS7QW+55Fsh+SxK4L/kOe318dwlwH3wTXAa /1lg== MIME-Version: 1.0 Received: by 10.14.205.199 with SMTP id j47mr115581128eeo.26.1357023501452; Mon, 31 Dec 2012 22:58:21 -0800 (PST) Received: by 10.223.170.193 with HTTP; Mon, 31 Dec 2012 22:58:21 -0800 (PST) In-Reply-To: <1357002865.4322.YahooMailClassic@web164004.mail.gq1.yahoo.com> References: <1357002865.4322.YahooMailClassic@web164004.mail.gq1.yahoo.com> Date: Mon, 31 Dec 2012 22:58:21 -0800 Message-ID: Subject: Re: Two errors each affecting several ports From: Kevin Oberman To: Jeffrey Bouquet Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 06:58:28 -0000 On Mon, Dec 31, 2012 at 5:14 PM, Jeffrey Bouquet wrote: > Reply below. > > --- On Mon, 12/31/12, Kevin Oberman wrote: > > From: Kevin Oberman > Subject: Re: Two errors each affecting several ports > To: "Jeffrey Bouquet" > Cc: freebsd-ports@freebsd.org > Date: Monday, December 31, 2012, 3:37 PM > > On Mon, Dec 31, 2012 at 3:13 PM, Jeffrey Bouquet > wrote: >> First error: >> configure: error: the pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config >> (affects ports such as shared-mime-info, esound...) > > pkg-config was replaced by pkgconf back in July. Check > /usr/ports/UPDATING for the 20120726:entry. Either you didn't relace > it or, more likely, you did not follow the instructions in UPDATING. > >> Second error: >> /usr/local/bin/ld: main.o: undefined reference to symbol 'curses version' >> /usr/local/lib/libtinfow.so.6.0: could not read symbols: Invalid operation >> collect2: ld returned 1 exit status >> *** [mutt] Error code 1 >> ... >> Which affects several other ports (... mc, vitunes...) >> ... >> I tried rebuilding binutils to fix it/them, no difference. (BTW binutils needs several >> of its binaries (/usr/local/bin/ to configure/build/install, I fixed that temporarily by >> copying some of them elsewhere and back as "extra binaries" until reinstalled and >> overwritten...) >> ... >> Each of these three errors may be specific to some arcane setup here. Posting in >> the chance that others have fixed it/them and so it is more common problem(s). > > Yes, it appears that something specific to your environment is making > ports unhappy, but I have no idea what. You don't say what version of > FreeBSD or whether you have moved to pkgng or are still using the old > pkg_* tools. Not that I am sure I would know what was going on with > this information, but it would certainly help. The issue with binutils > is especially odd. Could you state what "extra binaries" were a > problem? It almost sounds like some sort of tool chain issue. > -- > R. Kevin Oberman, Network Engineer > E-mail: kob6558@gmail.com > > > 9-STABLE, (r243371); I am not yet pkgng; I've lots in /usr/local/lib/compat > and some in /usr/local/lib/compat/pkg... the binaries binutils complains about > are as, ar, and ranlib.; standard $PATH; I replaced pkg-config with pkgconf ages > ago. (Almost wishing for a "wrapper port" that one wraps around a port build to > point explicitly at which dependency causes an error, or if not, which parameter to ./configure or which patch file in /files/ or which line in the Makefile... almost like a dtrace/strace GUI-something... but specifically for port building.) What does your PATH look like? Since there should be both /usr/bin versions of these tools, could your environment be causing the wrong ones to be used? Normally /usr/bin should precede /usr/local/bin in the path, but I would hope that the binutils' Makefiles would address this. Are you doing anything with PREFIX or DESTDIR? the configure should show: checking for ar... ar checking for as... as etc and: checking where to find the target ar... just compiled checking where to find the target as... just compiled checking where to find the target ranlib... just compiled checking where to find the target readelf... just compiled etc. It should create the target executable using the existing ones. it does not remove any of the files in /usr/bin, so they should always be available. -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com