-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error message #194
Comments
Which commit are you trying to compile? |
5.make
|
This written in the INSTALL file |
I know why can not work now... My kernel is 3.18.0 , The /root/nDPI/ndpi-netfilter/INSTALL file write : I found /root/nDPI/ndpi-netfilter/kernel-patch/v3.18.3.diff |
@lyt0112 In kernel 3.18, the procfs api prototypes are different. The code in ndpi-netfilter/src/main.c needs to be corrected. I have the minimum available version of the gcc compiler 9.3.0 |
@vel21ripn https://github.com/vel21ripn/nDPI/blob/flow_info-4/src/lib/third_party/src/roaring.c & roaring_v2.c use it |
@vel21ripn
|
Hi
I compiled and tested nDPI which can work fine on 2021.
I download newest version to compile today on same environment but got the following error message:
Any suggestion to fix the issue?
make[1]: Leaving directory '/root/nDPI/src/lib'
Making all in example
make[1]: Entering directory '/root/nDPI/example'
gcc -fPIC -DPIC -I../src/include -W -Wall -Wno-address-of-packed-member -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1 -O2 -DUSE_GLOBAL_CONTEXT -pthread -c reader_util.c -o reader_util.o
reader_util.c: In function ‘packet_processing’:
reader_util.c:1673:13: warning: unused variable ‘pkt_seq’ [-Wunused-variable]
static int pkt_seq=0;
^
reader_util.c: At top level:
reader_util.c:359:39: warning: ‘debug_bitmask’ defined but not used [-Wunused-variable]
static NDPI_PROTOCOL_BITMASK debug_bitmask;
^
cc1: warning: unrecognized command line option "-Wno-address-of-packed-member"
ar rsv libndpiReader.a reader_util.o
ar: creating libndpiReader.a
a - reader_util.o
gcc -fPIC -DPIC -I../src/include -W -Wall -Wno-address-of-packed-member -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1 -O2 -DUSE_GLOBAL_CONTEXT -pthread -c ndpiReader.c -o ndpiReader.o
ndpiReader.c: In function ‘debug_printf’:
ndpiReader.c:2674:36: warning: unused parameter ‘protocol’ [-Wunused-parameter]
static void debug_printf(u_int32_t protocol, void *id_struct,
^
ndpiReader.c:2674:52: warning: unused parameter ‘id_struct’ [-Wunused-parameter]
static void debug_printf(u_int32_t protocol, void *id_struct,
^
ndpiReader.c: At top level:
ndpiReader.c:2674:13: warning: ‘debug_printf’ defined but not used [-Wunused-function]
static void debug_printf(u_int32_t protocol, void *id_struct,
^
cc1: warning: unrecognized command line option "-Wno-address-of-packed-member"
gcc -fPIC -DPIC -I../src/include -W -Wall -Wno-address-of-packed-member -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1 -O2 -DUSE_GLOBAL_CONTEXT -pthread ndpiReader.o libndpiReader.a ../src/lib/libndpi.a -lpcap -lm -lpthread -pthread -o ndpiReader
../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_serialize': /root/nDPI/src/lib/ndpi_bitmap.c:126: undefined reference to
roaring_bitmap_portable_size_in_bytes'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_iterator_next': /root/nDPI/src/lib/ndpi_bitmap.c:269: undefined reference to
roaring_read_uint32_iterator'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
roaring_bitmap_create': /root/nDPI/src/lib/third_party/include/roaring_v2.h:210: undefined reference to
roaring_bitmap_create_with_capacity'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_free': /root/nDPI/src/lib/ndpi_bitmap.c:58: undefined reference to
roaring_bitmap_free'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_copy': /root/nDPI/src/lib/ndpi_bitmap.c:68: undefined reference to
roaring_bitmap_copy'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_cardinality': /root/nDPI/src/lib/ndpi_bitmap.c:78: undefined reference to
roaring_bitmap_get_cardinality'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_set': /root/nDPI/src/lib/ndpi_bitmap.c:88: undefined reference to
roaring_bitmap_add'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_unset': /root/nDPI/src/lib/ndpi_bitmap.c:98: undefined reference to
roaring_bitmap_remove'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_isset': /root/nDPI/src/lib/ndpi_bitmap.c:110: undefined reference to
roaring_bitmap_contains'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_serialize': /root/nDPI/src/lib/ndpi_bitmap.c:138: undefined reference to
roaring_bitmap_portable_serialize'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_deserialize': /root/nDPI/src/lib/ndpi_bitmap.c:148: undefined reference to
roaring_bitmap_portable_deserialize_safe'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_and': /root/nDPI/src/lib/ndpi_bitmap.c:159: undefined reference to
roaring_bitmap_and_inplace'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_and_alloc': /root/nDPI/src/lib/ndpi_bitmap.c:170: undefined reference to
roaring_bitmap_and'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_andnot': /root/nDPI/src/lib/ndpi_bitmap.c:181: undefined reference to
roaring_bitmap_andnot_inplace'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_or': /root/nDPI/src/lib/ndpi_bitmap.c:192: undefined reference to
roaring_bitmap_or_inplace'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_or_alloc': /root/nDPI/src/lib/ndpi_bitmap.c:203: undefined reference to
roaring_bitmap_or'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_xor': /root/nDPI/src/lib/ndpi_bitmap.c:214: undefined reference to
roaring_bitmap_xor_inplace'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_optimize': /root/nDPI/src/lib/ndpi_bitmap.c:224: undefined reference to
roaring_bitmap_run_optimize'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_iterator_alloc': /root/nDPI/src/lib/ndpi_bitmap.c:234: undefined reference to
roaring_create_iterator'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_iterator_free': /root/nDPI/src/lib/ndpi_bitmap.c:244: undefined reference to
roaring_free_uint32_iterator'../src/lib/libndpi.a(libndpi_a-ndpi_bitmap.o): In function
ndpi_bitmap_is_empty': /root/nDPI/src/lib/ndpi_bitmap.c:254: undefined reference to
roaring_bitmap_is_empty'collect2: error: ld returned 1 exit status
Makefile:57: recipe for target 'ndpiReader' failed
make[1]: *** [ndpiReader] Error 1
make[1]: Leaving directory '/root/nDPI/example'
Makefile:541: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
The text was updated successfully, but these errors were encountered: