DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Mcnamara, John" <john.mcnamara@intel.com>
To: Gal Sagie <gal.sagie@gmail.com>, "<dev@dpdk.org>" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Unable to compile DPDK 2.1
Date: Mon, 12 Oct 2015 11:48:36 +0000	[thread overview]
Message-ID: <B27915DBBA3421428155699D51E4CFE20237EABE@IRSMSX103.ger.corp.intel.com> (raw)
In-Reply-To: <CAG9LJa5ZkoGm4cGDSf32cQbceC5EgS6SH6S0APsNCWHcZO1h3A@mail.gmail.com>

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Gal Sagie
> Sent: Monday, October 12, 2015 9:20 AM
> To: <dev@dpdk.org>
> Subject: [dpdk-dev] Unable to compile DPDK 2.1
> 
> Hello all,
> 
> I was trying to help someone compile DPDK2.1 on Ubuntu 14.04, we were
> following the instructions on http://www.dpdk.org/doc/quick-start
> 
> We installed libpcap using "sudo apt-get install libpcap-dev"
> 
> When starting the 'make' the following error occured:
> 
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/i686-linux-gnu/4.8/../../../libpcap.so
>  when searching for -lpcap /usr/bin/ld:
> skipping incompatible //usr/lib/libpcap.so when searching for -lpcap
> /usr/bin/ld: cannot find -lpcap
> 
> Anyone can please help with this?

Hi,

That looks like a 32/64 bit incompatibility between the lib and app.

What is your full make line or what exports did you do prior to running make? Also what OS are you on (see commands below).

I tried with a clean 64 bit Ubuntu 14.04 install in a VM and was able to build dpdk with pcap support:


# uname -a
Linux vbox-ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@vbox-ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.1 LTS
Release:	14.04
Codename:	trusty


# apt-get update
# apt-get install git
# apt-cache search pcap
# apt-get install libpcap-dev

   
# locate libpcap.so
/usr/lib/x86_64-linux-gnu/libpcap.so.0.8
/usr/lib/x86_64-linux-gnu/libpcap.so.1.5.3


$ git clone http://dpdk.org/git/dpdk

$ cd dpdk/

$ vi config/common_linuxapp

$ git diff
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 0de43d5..cccbda4 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -267,7 +267,7 @@ CONFIG_RTE_PMD_RING_MAX_TX_RINGS=16
 #
 # Compile software PMD backed by PCAP files
 #
-CONFIG_RTE_LIBRTE_PMD_PCAP=n
+CONFIG_RTE_LIBRTE_PMD_PCAP=y

$ make T=x86_64-native-linuxapp-gcc -j install
...
Build complete [x86_64-native-linuxapp-gcc]




      reply	other threads:[~2015-10-12 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-12  8:19 Gal Sagie
2015-10-12 11:48 ` Mcnamara, John [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B27915DBBA3421428155699D51E4CFE20237EABE@IRSMSX103.ger.corp.intel.com \
    --to=john.mcnamara@intel.com \
    --cc=dev@dpdk.org \
    --cc=gal.sagie@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).