Netdev List
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: yuzibode@126.com
Cc: netdev@vger.kernel.org
Subject: Re: iproute2: Debian 9 No ELF support
Date: Mon, 17 Sep 2018 11:57:12 +0200	[thread overview]
Message-ID: <b7e1ba40-7cd2-ac4a-7544-ec3ff454ad15@iogearbox.net> (raw)
In-Reply-To: <20180917082353.ebtapq7oxirrzrcu@yubo-2>

On 09/17/2018 10:23 AM, Bo YU wrote:
> Hello,
> I have followed the instructions from:
> 
> https://cilium.readthedocs.io/en/latest/bpf/#bpftool
> 
> to test xdp program.
> But i can not enable elf support.
> 
> ./configure --prefix=/usr
> ```output
> TC schedulers
> ATM    no
> 
> libc has setns: yes
> SELinux support: no
> ELF support: no
> libmnl support: yes
> Berkeley DB: yes
> need for strlcpy: yes
> libcap support: yes
> ```
> And i have installed libelf-dev :
> ```output
> sudo apt show libelf-dev
> Package: libelf-dev
> Version: 0.168-1
> Priority: optional
> Section: libdevel
> Source: elfutils
> Maintainer: Kurt Roeckx <kurt@roeckx.be>
> Installed-Size: 353 kB
> Depends: libelf1 (= 0.168-1)
> Conflicts: libelfg0-dev
> Homepage: https://sourceware.org/elfutils/
> Tag: devel::library, role::devel-lib
> ```
> 
> And gcc version:
> gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
> 
> uname -a:
> Linux debian 4.18.0-rc1+ #2 SMP Sun Jun 24 16:53:57 HKT 2018 x86_64 GNU/Linux
> 
> Any help is appreciate.

Debian's official iproute2 packaging build says 'libelf-dev' [0], and having
libelf-dev installed should work ...

  [...]
  Build-Depends: bison,
               debhelper (>= 10~),
               flex,
               iptables-dev,
               libatm1-dev,
               libcap-dev,
               libdb-dev,
               libelf-dev,
               libmnl-dev,
               libselinux1-dev,
               linux-libc-dev,
               pkg-config,
               po-debconf,
               zlib1g-dev,
  [...]

Did you ran into this one perhaps [1]? Do you have zlib1g-dev installed?

  [0] https://salsa.debian.org/debian/iproute2/blob/master/debian/control
  [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885071

  reply	other threads:[~2018-09-17 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17  8:23 iproute2: Debian 9 No ELF support Bo YU
2018-09-17  9:57 ` Daniel Borkmann [this message]
2018-09-17 11:46   ` Bo YU
2018-09-17 12:07     ` Daniel Borkmann

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=b7e1ba40-7cd2-ac4a-7544-ec3ff454ad15@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=netdev@vger.kernel.org \
    --cc=yuzibode@126.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