1

I am using "ip link" command to put xdp program into kernel, in my virtual machine(kernel-version:4.18)

command like this:

 ip link set dev ens33 xdp obj xdpsock_kern.o sec .text

but after this command, the error said:

No ELF library support compiled in.

what should I do to solve this problem?

Qeole
  • 8,284
  • 1
  • 24
  • 52
Vector
  • 67
  • 1
  • 5
  • 1
    It seems like your `iproute2` version was not built with libelf support. You may need to compile it yourself. Ensure that `libelf-dev` package is installed before building `iproute2` – kaylum Jan 14 '20 at 09:57
  • this problem is fixed. reconfigure iproute2 – Vector Jan 14 '20 at 10:28
  • Glad to hear. Please share your fix for future readers. You can post it as an answer to your own question. – kaylum Jan 14 '20 at 10:29

1 Answers1

1

I solve this problem by reconfigure the iproutes.

git clone git://git.kernel.org/pub/pub/scm/network/iproute2/iproute2.git

cd iproute2/
./configure --prefix=/usr

make
sudo make install

Update: Now hosted at https://github.com/shemminger/iproute2.git

kshitij8
  • 3
  • 3
Vector
  • 67
  • 1
  • 5