net/ntop strip: ... Invalid operation

Matthias Andree matthias.andree at gmx.de
Mon Sep 8 15:58:03 UTC 2014


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



More information about the freebsd-ports mailing list