Closed tolunFdancer closed 5 years ago
My Dev and test environment is Ubuntu. Ihave not faced these issues. If you feel you need to correct the Makefile edit 'src/Makefile'
Thanks! I found out the reason, /DPDK-Suricata_3.0-master/suricata-3.0/configure, there should not be existing an spcae between -L and ${with_libdpdkintel_libraries} at line 17164 . I hope you fixed it.
Thanks for the update. As mentioned many times you have not shared config.log for me to debug. Why have not shared you are using with-libdpdkintel-libraries? Hence I have no clue what to fix.
Going forward I hope you will share clear information with lofs
I have rechecked my commits, as mentioned earlier for Ubuntu 18.04 Dec and test environment following commit is been tested and validated
https://github.com/vipinpv85/DPDK-Suricata_3.0/commit/46540ef80e2926b622a83a779a6fb3c27ebfa731
If you have different environment or Linux release please do the needfuk
OK, 3Q. Now it shows "/usr/bin/ld: cannot find -lethdev collect2: error: ld returned 1 exit status" when I run "make -j 10", the config.log did not show something. I already build the dpdk by following your readme.
And when I run ifconfig, it shows only ens160 and lo, no other ens.
Share your config.log Dpdk does not use kernel interface. Lethdev might be -l rte_ethdev.
Looks like you have issues with build infrastructure.
hint 1: you have mentioned as I already build the dpdk by following your readme
Solution: If this is the case you would not be using with_libdpdkintel_libraries
. Instead as suggested in readme would be setting RTE_SDK and RTE_TARGET and run with configure script.
Hence easiest way to debug is to share your config.log.
hint 2: when I run ifconfig, it shows only ens160 and lo, no other ens
Solution: in readme, it is clearly specified to run with compiled Suricata with '--list-dpdkintel-ports'
Note: DPDK ports are not listed under kernel interface, so I am not sure what are you trying with 'ifconfig -a'
Here is my steps:
There are couple of interesting leads from your config.log
'''' hostname = f14cp-kfx18 uname -m = x86_64 uname -r = 3.10.0-514.el7.x86_64 uname -s = Linux '''
Dpdk LD flag is ''' DPDKINTEL_LDADD='-Wl,--no-as-needed -Wl,-export-dynamic -L/opt/tolun/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/lib/ -Wl,--whole-archive -Wl,-lrte_distributor -Wl,-lrte_reorder -Wl,-lrte_kni -Wl,-lrte_pipeline -Wl,-lrte_table -Wl,-lrte_port -Wl,-lrte_timer -Wl,-lrte_hash -Wl,-lrte_jobstats -Wl,-lrte_lpm -Wl,-lrte_power -Wl,-lrte_acl -Wl,-lrte_meter -Wl,-lrte_sched -Wl,-lm -Wl,-lrt -Wl,--start-group -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lrte_ip_frag -Wl,-lethdev -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -Wl,-lrte_cmdline -Wl,-lrte_cfgfile -Wl,-lrte_pmd_bond -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_pmd_enic -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_ixgbe -Wl,-lrte_pmd_ring -Wl,-lrte_pmd_af_packet -Wl,-lrt -Wl,-lm -Wl,-ldl -Wl,--end-group -Wl,--no-whole-archive, /opt/tolun/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/lib/libdpdk.a -ldl ' '''
The LD fix you mentioned is not reflected '''' -L/opt/tolun/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/lib/ '''
The ldflag is present '''' -lethdev '''
Hence we have 2 options
I found out my DPDK did not build and run successfully. First I fix the DPDK,if there still are some errors about suricata then I will ask for your help. Thanks your time ,you are very kind!
Once again I humbly request you follow the readme, which clearly had stated test with helloworld, l2fwd examples. If the steps were taken into account you could have saved time and effort of debug much less and faster.
Please do follow the steps mentioned in readme. It saves time.
Good lick
This time I assure the DPDK is build success, Then when I run "make -j 10" it turns out "collect2: error: ld returned 1 exit status Makefile:1224: recipe for target 'suricata' failed". And the DPDK version is 18.02.2 config.log
Please check dpdk version used and recommend in readme.
I checked the DPDKINTEL_LDADD from config.log. Mine and your results are different (excluding the $RTE_SDK path). Have you edited or added something of your own?
share your configure script
I think you have not read the README properly, if yes you would have done the following
***note: if there are build errors reporting for 'ld not found', please retry after running 'autoconf'
I assume the difference in configure script is due to this.
I did not edit the configure script. As I told you before,my steps is :
you have not read the README, so please run autconf after step 1
***note: if there are build errors reporting for 'ld not found', please retry after running 'autoconf'
your earlier comment
Thanks! I found out the reason, /DPDK-Suricata_3.0-master/suricata-3.0/configure, there should not be existing an spcae between -L and ${with_libdpdkintel_libraries} at line 17164 . I hope you fixed it.
Thanks, my earlier comment is for 4.1.1, the 3.0 did not exist the space problem. This time I did not run "make -j 10", I run "make" and it run successfully, and When I run "./src/suricata --list-dpdkintel-ports" it shows the follow info: EAL: Detected 4 lcore(s) EAL: Multi-process socket /var/run/.rte_unix EAL: Probing VFIO support... EAL: PCI device 0000:00:19.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:15a3 net_e1000_em
--- DPDK Intel Ports ---
* Overall Ports: 1
-- Port: 0
--- MTU: 1500
--- MAX RX MTU: 9234
--- Driver: net_e1000_em
--- Index: 0
--- Queues RX 1 & TX 1
--- SRIOV VF: 0
--- Offload RX: f TX: f
--- CPU NUMA node: 0
--- Status: Up
Led for 5 sec.......
------------------------
So I think this time it worked right finally, what do you think?
@tolunFdancer I do not know, since you are mixing issues with 3.0 with 4.0. I can not support or help such scenarios. It consumes my time.
If the result is with regard to 3.0, looks like you are have 1G interface in DPDK with 1 RX and TX.
Thanks! When I run "./src/suricata -c suricata.yaml -s
Why the default-log-dir did not build, just because I did not run "autoconf"? How I can fix thsi?
Current reported issue is not regard to build or link. Hence please use a new issue.
Hint: if are familiar with suricata and have used it before. You already know what to do.
If you are new to suricata, please try basic Linux CMD to navigate through the errors
Thanks a lot, I appreciate your help. Have a good day!
I will wait for your upcoming update and solution if you found how to fix the current issue. If not let me know if you need help.
I fixed the log path issue, then I run "./src/suricata -c suricata.yaml -s
PortsDPDK 1 Config-file 2
22/7/2019 -- 15:49:25 -
I could not fix this problem ,I wanna know if you could give me some advices? 3Q!
open a ticket related to the error, I could not offer help on the ticket failing to link the dpdk libraries
I been waiting for the new ticket so I can update you what is going wrong for you
Sorry , I do not understand the meaning of new ticket, so I make a new issue.
Expected behaviour build successfully when passing configure with
with_dpdkintel_libraries
Log
Details (please complete the following information):
Additional context Add any other context about the problem here.