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.007109
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 .. 9 Next › Last »

lubosz commented on 2022-02-04 01:53 (UTC) (edited on 2022-02-04 01:59 (UTC) by lubosz)

configure: error: C preprocessor "/lib/cpp" fails sanity check

is caused by CPPFLAGS="-D_FORTIFY_SOURCE=2" from makepkg.conf.

This issue only occurs in the nDPI build, not ntopng itself.

You can fix the PKGBUILD by adding unset CPPFLAGS before nDPIs call to autogen.sh.

There was an upstream issue, but it got closed: https://github.com/ntop/nDPI/issues/1115

From 2a0a65472b908efaeb96889f6cb95a32173c4dd8 Mon Sep 17 00:00:00 2001
From: Lubosz Sarnecki <lubosz@gmail.com>
Date: Fri, 4 Feb 2022 02:51:59 +0100
Subject: [PATCH] unset CPPFLAGS.

nDPI configure produces following error when -D_FORTIFY_SOURCE=2 is
set on the CPPFLAGS, which is the default in makepkg.conf:

configure: error: C preprocessor "/lib/cpp" fails sanity check
---
 PKGBUILD | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PKGBUILD b/PKGBUILD
index 4581bc8..8bd2b32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,6 +30,7 @@ sha512sums=('e157430d9c98871d0136d2f51af6c7fed3a95fa21f8d3a9447ee69ac2aaee3752b6

 build() {
   cd $srcdir/nDPI-$_ndpiver
+  unset CPPFLAGS
   ./autogen.sh
   ./configure
   make
-- 
2.35.1

cmonty14 commented on 2021-12-13 07:52 (UTC)

Build error...

checking dependency style of g++... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/thomas/.config/trizen/sources/ntopng/src/nDPI-46ebd7128fd38f3eac5289ba281f3f25bad1d899':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
:: Unable to build ntopng - makepkg exited with code: 4

Here's what I found in config.log:

configure:17084: $? = 0
configure:17073: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC) 
configure:17084: $? = 0
configure:17073: g++ -V >&5
g++: error: unrecognized command-line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:17084: $? = 1
configure:17073: g++ -qversion >&5
g++: error: unrecognized command-line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.

brooqs commented on 2021-10-18 07:04 (UTC)

checking dependency style of g++... gcc3 checking how to run the C preprocessor... /lib/cpp configure: error: in /home/brooqs/ntopng/ntopng/src/nDPI-46ebd7128fd38f3eac5289ba281f3f25bad1d899': configure: error: C preprocessor "/lib/cpp" fails sanity check Seeconfig.log' for more details ==> ERROR: A failure occurred in build(). Aborting...

I cant over this error.

xyzabc123 commented on 2021-04-27 14:50 (UTC)

Does anybody else have very high CPU usage (80-90%) spikes every 2 seconds with barely any traffic? I'am monitoring a single interface only, custom settings are -n 1 (DNS resolution). CPU is an i5-6600 (4C) so normally there shouldn't be any issues in this regard. Just wanted to make sure before reporting upstream.

yan12125 commented on 2021-04-27 12:03 (UTC)

FWIW, I also need to install json-c to successfully build this package.

johnnybash commented on 2021-01-15 16:47 (UTC)

just added the needed build flags, builds again. I linked the github issue in a comment, maybe we can remove this workaround again in the future.

anonfunc commented on 2021-01-12 19:11 (UTC)

Seems to me like nDPI 3.4 won't build with -D_FORTIFY_SOURCE=2, which is default in arch.

Opened an issue upstream, alto I don't know if that's an upstream issue by itself.

https://github.com/ntop/nDPI/issues/1115

Coda commented on 2020-11-20 02:54 (UTC)

I have an ENT license,but I couldn't get the systemid to generate the offline license when run 'ntopng --version',it always show me 'v.4.2.201120 [Community build]'.How can I use license in physical computer,not in docker env?

Lochnair commented on 2020-09-12 18:35 (UTC)

@Coda I'm guessing hiredis was updated, so you need to recompile ntopng. Had this happen myself today when updating a box

Coda commented on 2020-09-12 06:39 (UTC)

when i run 'systemctl start ntopng@all.service',it exited with code 127 and prints this message:'/usr/bin/ntopng: error while loading shared libraries: libhiredis.so.0.14: cannot open shared object file: No such file or directory',redis service was running.How can i fix it?