Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 11:36:33 -0400
From:      Janos Dohanics <web@3dresearch.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: net/ntop strip: ... Invalid operation
Message-ID:  <20140907113633.5bca18a55c5c6f2198800d62@3dresearch.com>
In-Reply-To: <540A34BB.3080704@gmx.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 06 Sep 2014 00:10:03 +0200
Matthias Andree <matthias.andree@gmx.de> wrote:

> Am 05.09.2014 um 22:47 schrieb Kurt Jaeger:
> > Hi!
> > 
> >>>>> I understand that net/ntop is unmaintained, but someone perhaps
> >>>>> still could advise...
> > 
> >>>> Another suggestion, after checking the website: did you try
> >>>> ntopng yet?
> > 
> >> Apparently it needs a bit love, upstream seems rather active given
> >> the latest file release dates in August. Haven't checked in depth.
> > 
> > I had a quick look at it, it needs more than a little bit to get it
> > up to 1.2.0.
> > 
> 
> I believe SVN r367396 fixes the net/ntop build problem, at the price
> of an additional requisite package, namely binutils, on 8.x releases
> (or all versions before OSVERSION reached 900033, for that matter).
> 
> It also fixes a problem when trying to build WITH_SSP_PORTS=yes for
> hardening.
> 
> Closes Bug #192047.  I am not bumping the portrevision because this
> fixes build failures only.
> 
> 
> Janos,
> 
> thank you for the report.  Try upgrading your ports tree a short while
> after I've sent this message; the port is up to date if it
> uses .include <bsd.port.post.mk> at its very end.
> 
> HTH

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
[...]
/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/src
 /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   -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/stJ2uYIj/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

# make showconfig
===> The following configuration options are available for ntop-5.0.1_8:
     JUMBO_FRAMES=off: Jumbo Frames (experimental)
     MAKO=off: Install py-mako for Host Map, Region View
     PCAP_PORT=off: Use libpcap from ports
     XMLDUMP=off: Enable XML Dump support
===> Use 'make config' to modify these settings

Should I remove all libndpi* files?

-- 
Janos Dohanics



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