Hi guys, I am experiencing problem with compiling libpcap extension with all recent versions:
Versions after 1.5.2r2 (1.5.2r2 up to 1.6.0r1) I get the following error compilation error: ------------------------------------------------------------------------------------------------------------------ == Build lib/librte_pmd_pcap CC rte_eth_pcap.o /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c: In function 'rte_pmd_init_internals': /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:559:30: error: dereferencing pointer to incomplete type /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:560:15: error: dereferencing pointer to incomplete type /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:561:18: error: dereferencing pointer to incomplete type /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:603:47: error: dereferencing pointer to incomplete type /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c: In function 'rte_pmd_pcap_init': /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:732:73: error: 'dict' undeclared (first use in this function) /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:732:73: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/libs/dpdk-1.5.2r2/lib/librte_pmd_pcap/rte_eth_pcap.c:778:1: error: control reaches end of non-void function [-Werror=return-type] Versions 1.5.1r1 - 1.5.2r1 I get the following error: ------------------------------------------------------------------------------------------------------------------ LD testpmd /usr/bin/ld: unrecognized option '-Wl' /usr/bin/ld: use the --help option for usage information collect2: error: ld returned 1 exit status make[3]: *** [testpmd] Error 1 make[2]: *** [test-pmd] Error 2 My environment: ----------------------- I am running Ubuntu 12.04 64 bit: I tried GCC 4.6 and 4.7.3 I tried binutils (ld) 2.22 and 2.24 I tried libpcap 1.4.0 and 1.5.3 With libpcap 0.8 (12.04 original repository) version prior 1.5.2r2 does compile successfully, but as mentioned in documentation it does not support packet sending Without libpcap enabled everything compiles fine Help will be highly appreciated! Meir Tseitlin -- Kind regards, *Meir Tseitlin* Software architect*Mobile:* +972.54.7647417 *Fax:* +972.72.2812365 *Email:* meir.tech at gmail.com *http://il.linkedin.com/in/meirts <http://il.linkedin.com/in/meirts>* *Independent consultant* <http://maps.google.com/maps?q=&hl=en> See who we know in common<http://www.linkedin.com/e/wwk/6408776/?hs=false&tok=2g4qg82N8Sb5U1>Want a signature like this?<http://www.linkedin.com/e/sig/6408776/?hs=false&tok=20mz9jA_USb5U1>