Snipped > Hi Team, > > With fix suggest in prev mail thread at testpmd side, PDUMP works with > testpmd. > > However when we try to run our own primary app with PDUMP as a secondary > process, PDUMP console comes up, however it does not capture any packets. > > Changes made at primary app side: > 1. PDUMP initialised just after rte eal init: > > ret_pdump = rte_pdump_init(); > if (ret_pdump < 0) { > printf("rte_pdump_init failed\n"); > } > else > { > printf("rte_pdump_init success\n"); > } > > 2. Makefile modified to add all relevant files to be linked: > > LIB_SO =-L$(DPDK_LIB) -lrte_mbuf -lrte_eal -lnuma -lrte_pmd_pcap - > lrte_pdump -lrte_pmd_i40e -lrte_eal -lrte_ring -lrte_mempool -lrte_cryptodev > -lrte_ethdev -lrte_mbuf -lrte_mempool_ring -lrte_member -lrte_eventdev - > lrte_bus_vmbus -lrte_pci -lrte_bus_pci -lrte_bus_vdev -lrte_net - > lrte_distributor -lrte_reorder -lrte_kni -lrte_pipeline -lrte_table > -lrte_timer - > lrte_hash -lrte_jobstats -lrte_lpm -lrte_power -lrte_acl -lrte_meter > -lrte_sch > > Even tried to link final DPDK lib so as well: > LIB_SO =-L$(DPDK_LIB) -Wl,--whole-archive -ldpdk -Wl,--no-whole-archive - > L/usr/lib/x86_64-linux-gnu/ -fPIC
Ok, I think I have seen similar outcomes in custom Makefiles. Can you execute with `make -n` with the master Makefile and cross the necessary libraries are in bound between `-Wl,--whole-archive` and `-Wl,--no-whole-archive ` (specically for shared libraries). snipped