Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2014 17:57:51 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        Janos Dohanics <web@3dresearch.com>, freebsd-ports@freebsd.org
Subject:   Re: net/ntop strip: ... Invalid operation
Message-ID:  <540DD1FF.1040704@gmx.de>
In-Reply-To: <20140907113633.5bca18a55c5c6f2198800d62@3dresearch.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.post.mk>
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540DD1FF.1040704>