asd757817 / dpdk-nDPI

10 stars 12 forks source link

Cannnot complie the dpdk-nDPI application #2

Open anust opened 3 years ago

anust commented 3 years ago

I did the following setting

~/dpdk-nDPI-master$ export RTE_TARGET=x86_64-native-linux-gcc
~/dpdk-nDPI-master$ export nDPI_src=/home/ta/nDPI-3.2-stable
~/dpdk-nDPI-master$ export RTE_SDK=/home/ta/dpdk-stable-19.11.8

Error Log:

error: array type has incomplete element type ‘struct ether_addr’
error: dereferencing pointer to incomplete type ‘struct ipv4_hdr’
error: array type has incomplete element type ‘struct ether_addr’

OS: 16.04 server nDPI 3.2 stable with hyperscan

asd757817 commented 3 years ago

Did you build DPDK first? You have to make install DPDK first.

anust commented 3 years ago

Yes I built it first. Please guide me with the whole process, step by step. I need to run this code asap.

asd757817 commented 3 years ago

OK, I find the problem. Because this project based on DPDK 18.11.2 and DPDK 19.11.8 changed the type name. You can try to compile with DPDK 18.11.2 again or change the old type name to the new one.

anust commented 3 years ago

I will recompile and let you know

anust commented 3 years ago

@asd757817 I was able to compile the code using DPDK 18.11.2, but getting the following error, I am using ndpi3.2

dpdk-nDPI-master/build$ sudo ./nDPIexe --help
Segmentation fault

Please tell me which OS you used for compilation.

asd757817 commented 3 years ago

OS: Ubutnu 16.04 DPDK version: 18.11.2 nDPI version: 3.2 (Not very sure.

I did this project almost 2 years ago, and I don't have the environmnet to test it. Try ./nDPIexe again. I review the codes and it doesn't support the --help option, but I'm not sure this is the root cause.

anust commented 3 years ago

I am unable to reproduce it using OS: Ubutnu 16.04 DPDK version: 18.11.2 nDPI version: 3.2

/dpdk-nDPI-master/build$ sudo ./nDPIexe 
Segmentation fault (core dumped)

sudo ./build/nDPIexe -c 0xf -n4 -- -L -p 0x3 --config="(0,0,0),(1,0,1)"
Segmentation fault (core dumped)

It always says this Segmentation fault, whatever options I gave. Also I compiled it to ubuntu 18 as well, yet same issue

anust commented 3 years ago

@asd757817

*** Error in./build/nDPIexe': free(): invalid next size (fast): 0x00000000027f8790 ***` There is some error in memory allocation. Can you please comment on this.