From owner-freebsd-ports@FreeBSD.ORG Fri Sep 5 18:55:03 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29DC5511 for ; Fri, 5 Sep 2014 18:55: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 C914A1E4A for ; Fri, 5 Sep 2014 18:55:02 +0000 (UTC) Received: from mandree.no-ip.org ([78.49.247.146]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MK17F-1XRLZR2qU1-001RZV for ; Fri, 05 Sep 2014 20:55:00 +0200 Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id 988CE23CE71 for ; Fri, 5 Sep 2014 20:54:59 +0200 (CEST) Message-ID: <540A0703.90801@gmx.de> Date: Fri, 05 Sep 2014 20:54:59 +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: freebsd-ports@freebsd.org Subject: Re: net/ntop strip: ... Invalid operation References: <20140904123253.3ce66f73b13e27196ea55c04@3dresearch.com> In-Reply-To: <20140904123253.3ce66f73b13e27196ea55c04@3dresearch.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:JkWodY2yoovaSlzV0gts6hjsH9qJ2et1cGEhnUbSn7Akp8l8pxW oSbYsEr8Ogc1R+MJ95ccKyDtbCfdWTavlDP0eWNX6NyIuJaSL0RrM1Tb5cQV874du4jvwke e3em5B54b7P3UtUn2JQj+VR7tqnoKRQ5hmIDpP8jjUYmynDY6edNglxV+Tm4ULpyoMJuYOd KzRq4lP3xVnaT7qNahPRg== 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: Fri, 05 Sep 2014 18:55:03 -0000 Am 04.09.2014 um 18:32 schrieb Janos Dohanics: > I'm trying to build and install net/ntop and getting this error > (FreeBSD 8.4-STABLE #0 r264373 amd64): > > ===> Generating temporary packing list > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo -I m4 > -I m4 > cd . && /bin/sh ./missing --run echo --gnu > --gnu > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo > > if test -z 'strip'; then \ > gmake INSTALL_PROGRAM="/bin/sh /usr/ports/net/ntop/work/ntop-5.0.1/install-sh -c -s" \ > install_sh_PROGRAM="/bin/sh /usr/ports/net/ntop/work/ntop-5.0.1/install-sh -c -s" INSTALL_STRIP_FLAG=-s \ > install; \ > else \ > gmake INSTALL_PROGRAM="/bin/sh /usr/ports/net/ntop/work/ntop-5.0.1/install-sh -c -s" \ > install_sh_PROGRAM="/bin/sh /usr/ports/net/ntop/work/ntop-5.0.1/install-sh -c -s" INSTALL_STRIP_FLAG=-s \ > "INSTALL_PROGRAM_ENV=STRIPPROG='strip'" install; \ > fi > gmake[1]: Entering directory `/usr/ports/net/ntop/work/ntop-5.0.1' > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo -I m4 > -I m4 > cd . && /bin/sh ./missing --run echo --gnu > --gnu > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo > > Making install in . > gmake[2]: Entering directory `/usr/ports/net/ntop/work/ntop-5.0.1' > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo -I m4 > -I m4 > cd . && /bin/sh ./missing --run echo --gnu > --gnu > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo > > gmake[3]: Entering directory `/usr/ports/net/ntop/work/ntop-5.0.1' > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo -I m4 > -I m4 > cd . && /bin/sh ./missing --run echo --gnu > --gnu > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh ./missing --run echo > > /bin/mkdir -p '/usr/ports/net/ntop/work/stage/usr/local/lib' > /bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel -s libntop.la libntopreport.la '/usr/ports/net/ntop/work/stage/usr/local/lib' > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libntop-5.0.1.so /usr/ports/net/ntop/work/stage/usr/local/lib/libntop-5.0.1.so > libtool: install: strip --strip-unneeded /usr/ports/net/ntop/work/stage/usr/local/lib/libntop-5.0.1.so > libtool: install: (cd /usr/ports/net/ntop/work/stage/usr/local/lib && { ln -s -f libntop-5.0.1.so libntop.so || { rm -f libntop.so && ln -s libntop-5.0.1.so libntop.so; }; }) > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libntop.lai /usr/ports/net/ntop/work/stage/usr/local/lib/libntop.la > libtool: install: warning: relinking `libntopreport.la' > libtool: install: (cd /usr/ports/net/ntop/work/ntop-5.0.1; /bin/sh /usr/ports/net/ntop/work/ntop-5.0.1/libtool --tag CC --mode=relink cc -g -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -I/usr/local/include -I/opt/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -I /usr/include -I/usr/local/include -I/usr/include -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -release 5.0.1 -export-dynamic -L/usr/local/lib -pthread -Wl,-rpath,/usr/lib:/usr/local/lib-L/usr/local/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -o libntopreport.la -rpath /usr/local/lib emitter.lo globals-report.lo graph.lo httpd.lo report.lo reportUtils.lo ssl_utils.lo webInterface.lo map.lo python.lo libntop.la -lpthread -lc -lcrypt -lssl -lcrypto -lgdbm -lz -L/usr/local/lib -lintl -lutil -lm -lpython2.7 -lGeoIP -L/usr/lib -lpcap -L/usr/local/lib -lrrd_th ./nDPI/sr c / > lib/.libs/libndpi.a -inst-prefix-dir /usr/ports/net/ntop/work/stage) > > *** Warning: Linking the shared library libntopreport.la against the > *** static library ./nDPI/src/lib/.libs/libndpi.a is not portable! > libtool: relink: cc -shared -fPIC -DPIC .libs/emitter.o .libs/globals-report.o .libs/graph.o .libs/httpd.o .libs/report.o .libs/reportUtils.o .libs/ssl_utils.o .libs/webInterface.o .libs/map.o .libs/python.o -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/opt/local/lib -L/usr/lib ./.libs/libntop.so -lpthread -lcrypt -lssl -lcrypto /usr/local/lib/libgdbm.so -lz /usr/local/lib/libintl.so -lutil -lm -lpython2.7 -lGeoIP -lpcap -lrrd_th ./nDPI/src/lib/.libs/libndpi.a -O2 -O2 -pthread -Wl,-rpath -Wl,/usr/lib:/usr/local/lib-L/usr/local/lib -pthread -Wl,-soname -Wl,libntopreport-5.0.1.so -o .libs/libntopreport-5.0.1.so > libtool: install: /usr/bin/install -c -o root -g wheel .libs/libntopreport-5.0.1.soT /usr/ports/net/ntop/work/stage/usr/local/lib/libntopreport-5.0.1.so > libtool: install: strip --strip-unneeded /usr/ports/net/ntop/work/stage/usr/local/lib/libntopreport-5.0.1.so > 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/stcf7kmO/libndpi.a: Invalid operation > gmake[3]: *** [install-libLTLIBRARIES] Error 1 > gmake[3]: Leaving directory `/usr/ports/net/ntop/work/ntop-5.0.1' > gmake[2]: *** [install-am] Error 2 > gmake[2]: Leaving directory `/usr/ports/net/ntop/work/ntop-5.0.1' > gmake[1]: *** [install-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/net/ntop/work/ntop-5.0.1' > gmake: *** [install-strip] Error 2 > *** Error code 2 > > Stop in /usr/ports/net/ntop. > *** Error code 1 > > Stop in /usr/ports/net/ntop. > > I understand that net/ntop is unmaintained, but someone perhaps still > could advise... > It should be stripping and linking the .so files or executables. Stripping the .a apparently does not work. Check if you have some libndpi.so somewhere (perhaps in a hidden .libs directory) and also check that you don't add static-link options that you do not need.