iotg_tsn_ref_sw icon indicating copy to clipboard operation
iotg_tsn_ref_sw copied to clipboard

Build fails: libelf not found

Open dietWall opened this issue 4 years ago • 2 comments
trafficstars

Build fails on Debian 10 with

checking dependency style of gcc... gcc3
./configure: line 3410: syntax error near unexpected token `libelf,'
./configure: line 3410: `PKG_CHECK_MODULES(libelf, libelf)'
Configure failed

System:

$ lsb_release -d
Description:    Debian GNU/Linux 10 (buster)

libelf is installed:

~/iotg_tsn_ref_sw$ sudo apt list --installed | grep libelf

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libelf++0/stable,now 0.3-1 amd64  [installiert]
libelf-dev/stable,now 0.176-1.1 amd64  [installiert]
libelf1/stable,now 0.176-1.1 amd64  [installiert]
libelfin-dev/stable,now 0.3-1 amd64  [installiert]

dietWall avatar Jul 29 '21 08:07 dietWall

I have the same problem.

yin-n avatar Oct 27 '21 06:10 yin-n

Just came across the same issue recently. For some reason installing pkg-config sudo apt install pkg-config solved above error. Finally checking that libelf find / -name libelf*.pc is within paths as reported by pkg-config --variable pc_path pkg-config. In my case it was under /usr/lib/x86_64-linux-gnu/pkgconfig/

tkalceca avatar Nov 26 '21 14:11 tkalceca