Package Details: ntopng 6.2-1

Git Clone URL: https://aur.archlinux.org/ntopng.git (read-only, click to copy)
Package Base: ntopng
Description: The next generation version of the original ntop, a network traffic probe that shows the network usage
Upstream URL: http://www.ntop.org/
Keywords: monitoring networking ntop top
Licenses: GPL-3.0-only
Submitter: crt
Maintainer: pht (johnnybash)
Last Packager: johnnybash
Votes: 28
Popularity: 0.003145
First Submitted: 2015-09-22 08:31 (UTC)
Last Updated: 2024-11-07 16:21 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

pht commented on 2018-09-21 20:00 (UTC)

Hello, thanks for the info. I remember that Geode and SIGILL is a recurring theme... there's some catch around it being i586 only and not i686. Might be a case of this again? Unfortunately I do not have that specific hardware (or any x86 only for that matter) to test. Would you be willing to help a bit here... either figure it out or at least run through gdb to see what specific instruction in which module is triggering the error?

madman_xxx commented on 2018-09-20 20:27 (UTC) (edited on 2018-09-20 20:29 (UTC) by madman_xxx)

Although PKGBUILD contains x86 architecture, the final package has a non-working binary.

The package builds successfully, but when I start ntopng I get the following:

# systemctl status ntopng-4g
[...]
wrz 20 21:14:06 router-4g systemd[1]: Started ntopng network traffic monitor (br0 + br1 + Orange + Play).
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [Ntop.cpp:1499] Setting local networks to 127.0.0.0/8
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [Utils.cpp:2409] Rule 127.0.0.0/8
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [Redis.cpp:127] Successfully connected to redis 127.0.0.1:6379@0
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [Redis.cpp:127] Successfully connected to redis 127.0.0.1:6379@0
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [Ntop.cpp:352] Interfaces Available: 32
wrz 20 21:14:06 router-4g ntopng[11089]: 20/Sep/2018 21:14:06 [ThreadedActivity.cpp:147] Running /usr/share/ntopng/scripts/callbacks/system/boot.lua (iface=(nil))
wrz 20 21:14:06 router-4g systemd[1]: ntopng-4g.service: Main process exited, code=dumped, status=4/ILL
wrz 20 21:14:06 router-4g systemd[1]: ntopng-4g.service: Failed with result 'core-dump'.
[...]

It is built on an old AMD Geode NX1500 CPU, where it's intended to be run.

ddt-aur commented on 2018-08-26 08:26 (UTC)

Builds successfully for me too.
Thanks for looking into this!

pht commented on 2018-08-26 05:48 (UTC) (edited on 2018-08-26 05:54 (UTC) by pht)

Thanks for the report. Apparently there is a clash with SOCKET definition elsewhere in the system (libpcap?) ... I'm not sure how I succeeded to build the original package in the first place. I've created a patch to fix and verified correct build on my machine. Could you give it a try?

ddt-aur commented on 2018-08-22 12:06 (UTC) (edited on 2018-08-22 12:09 (UTC) by ddt-aur)

ntopng 3.4-1 won't build on my machine. It doesn't matter if I try to build it with makepkg or in a chroot using makechrootpkg, the build always fails like this:

[...]
g++ -g -Wall -I/build/ntopng/src/ntopng-3.4 -I/build/ntopng/src/ntopng-3.4/include -I/usr/local/include -I /build/ntopng/src/ntopng-3.4/third-party/hiredis -I/build/ntopng/src/ntopng-3.4/third-party/mongoose -I/usr/include/json-c   -I/build/ntopng/src/nDPI-521afe7e1f340eff5d475b4f0bc6f91ea91c0601/src/include -I/build/ntopng/src/nDPI-521afe7e1f340eff5d475b4f0bc6f91ea91c0601/src/lib/third_party/include -I/build/ntopng/src/ntopng-3.4/third-party/LuaJIT-2.1.0-beta3/src -I/build/ntopng/src/ntopng-3.4/third-party/rrdtool-1.4.8/src/ -I/build/ntopng/src/ntopng-3.4/third-party/zeromq-4.1.3/include -I/usr/include/mysql -D_FORTIFY_SOURCE=2 -I/build/ntopng/src/ntopng-3.4 -I/build/ntopng/src/ntopng-3.4/include -I/usr/local/include -I/build/ntopng/src/ntopng-3.4/third-party/http-client-c/src/  -I/usr/include/openssl  -DDATA_DIR='"/usr/share"' -I/build/ntopng/src/ntopng-3.4/third-party/libgeohash -I/build/ntopng/src/ntopng-3.4/third-party/patricia  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c src/HTTPserver.cpp -o src/HTTPserver.o
In file included from src/HTTPserver.cpp:25:
src/../third-party/mongoose/mongoose.c:250: warning: "INVALID_SOCKET" redefined
 #define INVALID_SOCKET (-1)

In file included from /usr/include/pcap.h:43,
                 from /build/ntopng/src/ntopng-3.4/include/ntop_includes.h:105,
                 from src/HTTPserver.cpp:22:
/usr/include/pcap/pcap.h:958: note: this is the location of the previous definition
   #define INVALID_SOCKET -1

src/../third-party/mongoose/mongoose.c:273:13: error: multiple types in one declaration
 typedef int SOCKET;
             ^~~~~~
src/../third-party/mongoose/mongoose.c:273:13: error: declaration does not declare anything [-fpermissive]
In file included from src/HTTPserver.cpp:25:
src/../third-party/mongoose/mongoose.c: In function ‘mg_connection* mg_connect(const char*, int, int, char*, size_t)’:
src/../third-party/mongoose/mongoose.c:4927:46: warning: the address of ‘const SSL_METHOD* TLS_client_method()’ will never be NULL [-Waddress]
   } else if (use_ssl && SSLv23_client_method == NULL) {
                                              ^
src/../third-party/mongoose/mongoose.c: At global scope:
src/../third-party/mongoose/mongoose.c:4692:22: warning: ‘long unsigned int ssl_id_callback()’ defined but not used [-Wunused-function]
 static unsigned long ssl_id_callback(void) {
                      ^~~~~~~~~~~~~~~
src/../third-party/mongoose/mongoose.c:4680:13: warning: ‘void ssl_locking_callback(int, int, const char*, int)’ defined but not used [-Wunused-function]
 static void ssl_locking_callback(int mode, int mutex_num, const char *file,
             ^~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:157: src/HTTPserver.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /opt/mks/Arch-chroot/mks/build

pht commented on 2018-08-19 17:29 (UTC)

Bumped to 3.4

pht commented on 2018-08-19 12:55 (UTC)

Thanks for the tip. Rebuild works. I'll try to bump to current version and adopt the package though it will be irregular service.

dude commented on 2018-08-12 15:21 (UTC)

I've disowned this package as I no longer use it. There is an upstream v3.4 release available, if anyone wants to take over and update the PKGBUILD.

dude commented on 2018-08-12 11:20 (UTC)

Have you rebuilt ntopng since your package updates?

pht commented on 2018-08-12 07:52 (UTC)

Hello, after latest package updates, json-c library was upgraded to v4. Ntopng fails to start: /usr/bin/ntopng: error while loading shared libraries: libjson-c.so.3: cannot open shared object file: No such file or directory