-
Notifications
You must be signed in to change notification settings - Fork 39
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
__attribute__((constructor, used)) doesn't work if build with static lib of odp-dpdk #15
Comments
This happens also with odp-linux when using DPDK pktio andit is likely caused by OFP not properly importing flags from libodp-linux.pc/libodp-dpdk.pc. I'm in the middle of porting patches from odp-linux to bring odp-dpdk up to date, but setting "PKG_CONFIG="pkg-config --static"" environment variable fixed driver linking with odp-linux. |
|
Regarding odp-dpdk. I remember doing several iterations with odp-linux/dpdk till I was able to fix possible app.odp/dpdk linking cases. |
@lumag I assumed OFP was built is static as ODP was build with '--disable-shared'. I've used OFP's fpm_burstmode example to verify driver linking. E.g. |
Fixed by #79. |
odp-dpdk version: 1.15.0.0_DPDK_17.02
"odp_packet_dpdk.c:162:setup_pkt_dpdk():No driver found for interface: 0"
RTE_PMD_REGISTER_PCI(net_ixgbe, rte_ixgbe_pmd.pci_drv)
only be called in shared libraryThe text was updated successfully, but these errors were encountered: