From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) by dpdk.org (Postfix) with ESMTP id 11AF38BA for ; Sun, 2 Mar 2014 20:11:46 +0100 (CET) Received: by mail-we0-f174.google.com with SMTP id t60so2273204wes.33 for ; Sun, 02 Mar 2014 11:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=v3DgYZlgwmIJ7iwvoqZr1gcupkK18/6HPK80GKY16sA=; b=GRthFjo42yRjs1TJ0dB5OeZ4CGMNWrUS/cKf/XRxAybZPGImcXFUno4asLQKGmKfkB nmuPO2yjrb3CTktDhczBX1lZvBDsF8g+Nz3+IV9lCmvc7hlSe3TSDpF+ZyTAplh2LqsH zxBYihWgQAUvWWi+Enzp6PXEJtMA5YzwDXHR2t/jqmKLwBofBNvnnXD9oOZVhcddjN7f 9pdyf+5H5OAKbMuTRg8CE75+aGBd/kjMWa0EGNO3La2xjy9+VMGDodSA7WAmc3rybsi7 VqAxOIFZZKVVSjai0EFJcmkGDnGv+rGO5fUWAx6RYFOt7hiuux1Ywezn+wZAiQX5Xik5 jVRQ== MIME-Version: 1.0 X-Received: by 10.181.13.112 with SMTP id ex16mr11737331wid.23.1393787594355; Sun, 02 Mar 2014 11:13:14 -0800 (PST) Received: by 10.194.85.169 with HTTP; Sun, 2 Mar 2014 11:13:14 -0800 (PST) Date: Sun, 2 Mar 2014 21:13:14 +0200 Message-ID: From: Meir Tseitlin To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Pcap question X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 19:11:47 -0000 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@gmail.com *http://il.linkedin.com/in/meirts * *Independent consultant* See who we know in commonWant a signature like this?