I did try this on the first run. sadly no change on compiling.
Looking at the error it seems to be a problem with with this line.
/src/include/ndpi_define.h:337:23: error: implicit declaration of function 'bswap_16'; did you mean 'swab16'? [-Werror=implicit-function-declaration]
# define get_l16(X,O) bswap_16(get_u_int16_t(X,O))
I don't code in c or know anything about MIPS but it looks like NTOP don't have the correct command even though it States nDPI supports mips on the web site
I'm wondering if trying to get hold of someone at nTOP to help fix this code. or if someone knows MIPS arch and C language.
Anyone did something with this?
Currently I am using Debian with vel21ripn-ndpi on x86_64.
I do not really need it for mips but arm can be useful to many.
I can try to test in a VM.
in some file. but in what file exactly? i'm not programmer, so can only guess.
ps: will be even better to add this missing part right to Makefile (or add patch file?) if possible.
anyone can help with that?
i trying to build for ar71xx
so far i end up with many errors from above post:
ar71xx/source/build_dir/target-mips_24kc_musl/linux-ath79_generic/ndpi-netfilter2-flow_info-c8ee735-2.8/ndpi-netfilter/src/../../src/include/ndpi_define.h:61:21: warning: "__LITTLE_ENDIAN" is not defined, evaluates to 0 [-Wundef]
#if __BYTE_ORDER == __LITTLE_ENDIAN
^~~~~~~~~~~~~~~
...
ar71xx/source/build_dir/target-mips_24kc_musl/linux-ath79_generic/ndpi-netfilter2-flow_info-c8ee735-2.8/ndpi-netfilter/src/../../src/include/ndpi_define.h:337:23: error: implicit declaration of function 'bswap_16'; did you mean 'swab16'? [-Werror=implicit-function-declaration]
# define get_l16(X,O) bswap_16(get_u_int16_t(X,O))
^~~~~~~~
...
ar71xx/source/build_dir/target-mips_24kc_musl/linux-ath79_generic/ndpi-netfilter2-flow_info-c8ee735-2.8/ndpi-netfilter/src/../../src/lib/protocols/fiesta.c:55:8: note: in expansion of macro 'get_l16'
&& get_l16(packet->payload, 1) == packet->payload_packet_len - 3))) {
^~~~~~~
cc1: some warnings being treated as errors
...
$_
so ideally , it should have installed the dev part as well. not sure
The autoconfig config.log is as follows :
configure:17629: checking for pcap_open_live in -lpcap
configure:17654: gcc -std=gnu99 -o conftest -W -Wall -Wno-unused-parameter -Wno-unused-function -I/home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/include/json-c conftest.c -lpcap -ljson-c -L/home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib -ljson-c >&5
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libpcap.so when searching for -lpcap
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libpcap.a when searching for -lpcap
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libjson-c.so when searching for -ljson-c
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libjson-c.a when searching for -ljson-c
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libjson-c.so when searching for -ljson-c
/usr/bin/ld: skipping incompatible /home/spf11_2_wifi6_6018_64/qsdk/staging_dir/target-aarch64_cortex-a53_musl-1.1.16/usr/lib/libjson-c.a when searching for -ljson-c
configure:17654: $? = 0
configure:17663: result: no
configure:17670: error: Missing libpcap(-dev) library required to compile the example application.