From owner-freebsd-ports@FreeBSD.ORG Mon Sep 8 15:58:03 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36191443 for ; Mon, 8 Sep 2014 15:58:03 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4174210F2 for ; Mon, 8 Sep 2014 15:58:02 +0000 (UTC) Received: from mandree.no-ip.org ([78.49.117.61]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M4002-1YI9wZ1xek-00rXSQ; Mon, 08 Sep 2014 17:57:53 +0200 Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id EAB5223D0EB; Mon, 8 Sep 2014 17:57:51 +0200 (CEST) Message-ID: <540DD1FF.1040704@gmx.de> Date: Mon, 08 Sep 2014 17:57:51 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Janos Dohanics , freebsd-ports@freebsd.org Subject: Re: net/ntop strip: ... Invalid operation References: <20140904123253.3ce66f73b13e27196ea55c04@3dresearch.com> <540A0781.90609@gmx.de> <20140905203236.GB9400@home.opsec.eu> <540A1E95.4000802@gmx.de> <20140905204704.GC9400@home.opsec.eu> <540A34BB.3080704@gmx.de> <20140907113633.5bca18a55c5c6f2198800d62@3dresearch.com> In-Reply-To: <20140907113633.5bca18a55c5c6f2198800d62@3dresearch.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:cD9vuztcXlwz4vzWyPVGiL63iq9UoXClEd7pfAwjc4P0FA21WaM czoqouRPX+AlhObD7nM/GNud26rlJ91Ge51Kt6nXqhK+obMzyE926ARFHs3D1SLCyTDJ9Aq th0h6ws5boilQOM3bQPtoJaQDa8V3r1IbNI/4kzy0WGFPDy7FfkjaH/mmUNimgVLd7XXd6w UmRL6EpbovfrR+gWH2Raw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 15:58:03 -0000 Am 07.09.2014 um 17:36 schrieb Janos Dohanics: > Matthias, > > Thanks for your help. > > I have upgraded the ports tree: > > # portsnap fetch > Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found. > Fetching snapshot tag from your-org.portsnap.freebsd.org... done. > Ports tree hasn't changed since last snapshot. > No updates needed. > > Installed binutils-2.24_1 > > Removed libndpi.so*: > > # ls /usr/ports/net/ntop/work/ntop-5.0.1/nDPI/src/lib/.libs/libndpi* > /usr/ports/net/ntop/work/ntop-5.0.1/nDPI/src/lib/.libs/libndpi.a /usr/ports/net/ntop/work/ntop-5.0.1/nDPI/src/lib/.libs/libndpi.lai > /usr/ports/net/ntop/work/ntop-5.0.1/nDPI/src/lib/.libs/libndpi.la > > End of Makefile: > > # tail -n 1 /usr/ports/net/ntop/Makefile > .include > > Trying again: > > # make install clean > ===> Staging for ntop-5.0.1_8 [...] > libtool: install: (cd /usr/ports/net/ntop/work/stage/usr/local/lib && { ln -s -f libntopreport-5.0.1.so libntopreport.so || { rm -f libntopreport.so && ln -s libntopreport-5.0.1.so libntopreport.so; }; }) > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libntopreport.lai /usr/ports/net/ntop/work/stage/usr/local/lib/libntopreport.la > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libntop.a /usr/ports/net/ntop/work/stage/usr/local/lib/libntop.a > libtool: install: strip --strip-debug /usr/ports/net/ntop/work/stage/usr/local/lib/libntop.a > strip: /usr/ports/net/ntop/work/stage/usr/local/lib/stJ2uYIj/libndpi.a: Invalid operation > Should I remove all libndpi* files? Janos, tl;dr: running "make clean && make install clean" should fix it. The changes to the port need you to go through all the build phases again, which may be a bit inconvenient on slow/loaded computers, but otherwise changes like USE_BINUTILS are not picked up. Tech background: ntop uses GNU configure, which records the state of several variables in its generated files (Makefile in particular), and the FreeBSD ports framework avoids re-running configure unless you "make clean". libtool has been running "strip", not "/usr/local/bin/strip", as a consequence. Hope that helps. Best regards, Matthias