* iproute2: Debian 9 No ELF support @ 2018-09-17 8:23 Bo YU 2018-09-17 9:57 ` Daniel Borkmann 0 siblings, 1 reply; 4+ messages in thread From: Bo YU @ 2018-09-17 8:23 UTC (permalink / raw) To: netdev, yuzibode 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: Debian 9 No ELF support 2018-09-17 8:23 iproute2: Debian 9 No ELF support Bo YU @ 2018-09-17 9:57 ` Daniel Borkmann 2018-09-17 11:46 ` Bo YU 0 siblings, 1 reply; 4+ messages in thread From: Daniel Borkmann @ 2018-09-17 9:57 UTC (permalink / raw) To: yuzibode; +Cc: netdev 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: Debian 9 No ELF support 2018-09-17 9:57 ` Daniel Borkmann @ 2018-09-17 11:46 ` Bo YU 2018-09-17 12:07 ` Daniel Borkmann 0 siblings, 1 reply; 4+ messages in thread From: Bo YU @ 2018-09-17 11:46 UTC (permalink / raw) To: Daniel Borkmann; +Cc: yuzibode, netdev Hi, On Mon, Sep 17, 2018 at 11:57:12AM +0200, Daniel Borkmann wrote: >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? Yes,You are right. I install zlib1g-dev with your help,iproute2 enable ELF support. ```output ./configure --prefix=/usr TC schedulers ATM no libc has setns: yes SELinux support: no ELF support: yes libmnl support: yes Berkeley DB: yes need for strlcpy: yes libcap support: yes ``` But there is no effect after [1], right? When i install libelf-dev,it should install zlib1g-dev also. Is there any way to update the page [2]? Thank you, Daniel [2] https://cilium.readthedocs.io/en/latest/bpf/#bpftool > > [0] https://salsa.debian.org/debian/iproute2/blob/master/debian/control > [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885071 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2: Debian 9 No ELF support 2018-09-17 11:46 ` Bo YU @ 2018-09-17 12:07 ` Daniel Borkmann 0 siblings, 0 replies; 4+ messages in thread From: Daniel Borkmann @ 2018-09-17 12:07 UTC (permalink / raw) To: yuzibode; +Cc: netdev On 09/17/2018 01:46 PM, Bo YU wrote: > On Mon, Sep 17, 2018 at 11:57:12AM +0200, Daniel Borkmann wrote: >> 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? > Yes,You are right. I install zlib1g-dev with your help,iproute2 enable ELF > support. > ```output > ./configure --prefix=/usr > TC schedulers > ATM no > > libc has setns: yes > SELinux support: no > ELF support: yes > libmnl support: yes > Berkeley DB: yes > need for strlcpy: yes > libcap support: yes > > ``` > But there is no effect after [1], right? When i install libelf-dev,it should > install zlib1g-dev also. > > Is there any way to update the page [2]? This bug should be Debian specific, so it would make sense to contact Debian developers or comment on [1] if it's still not resolved in current versions. > Thank you, Daniel > > [2] https://cilium.readthedocs.io/en/latest/bpf/#bpftool >> >> [0] https://salsa.debian.org/debian/iproute2/blob/master/debian/control >> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885071 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-17 17:34 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-09-17 8:23 iproute2: Debian 9 No ELF support Bo YU 2018-09-17 9:57 ` Daniel Borkmann 2018-09-17 11:46 ` Bo YU 2018-09-17 12:07 ` Daniel Borkmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox