Could NOT find LIBBFD

package 'zlib' not found , package 'libcurl' not found

"package" means a package config file e.g. /usr/lib64/pkgconfig/zlib.pc

Please use yum to decide a package name, like :

yum provides */libbfd.so
yum provides */zlib.pc
yum provides */libz.so
yum provides */libcurl.pc
yum provides */libcurl.so

Installing the packages :

# yum install binutils-devel zlib-devel libcurl-devel

Ref. comment about kcov :

"kcov" : # yum install elfutils-devel

cd build/ && cmake .. && make
.
.
[ 98%] Building C object src/CMakeFiles/kcov-system-daemon.dir/version.c.o
Linking CXX executable kcov-system-daemon
[100%] Built target kcov-system-daemon
Answer from Knud Larsen on Stack Overflow
🌐
The Mail Archive
mail-archive.com › openwrt-devel@lists.openwrt.org › msg61620.html
Re: [PATCH 2/6] tools/dwarves: add host package
February 28, 2022 - > > Please try this instead: > > diff --git a/tools/dwarves/Makefile b/tools/dwarves/Makefile > index b02a2398a1..e5a55706be 100644 > --- a/tools/dwarves/Makefile > +++ b/tools/dwarves/Makefile > @@ -12,14 +12,12 @@PKG_LICENSE:=GPL-2.0-only > PKG_LICENSE_FILES:=COPYING > > HOST_BUILD_PARALLEL:=1 > +PKG_BUILD_DEPENDS:=elfutils/host > > include $(INCLUDE_DIR)/host-build.mk > include $(INCLUDE_DIR)/cmake.mk > > CMAKE_HOST_OPTIONS += \ > - -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH \ > - -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \ > - -DCMAKE_BUILD_TYPE=Release \ > -D__LIB=lib \ > -DCMAKE_INSTALL_RPATH="$(STAGING_DIR_HOST)/lib" \ > -DCMAKE_SKIP_RPATH=FALSE > > Thanks, > Stijn >
🌐
Debian
linux.debian.bugs.dist.narkive.com › 8SQ9Xhf3 › bug-534529-libdw-dev-missing-libebl-makes-dwarves-fail-to-build
Bug#534529: libdw-dev: missing libebl makes dwarves fail to build
Clean solution will be to remove this EBL_LIBRARY or detect whether shared libdw is used. So I dont think that it is a bug in elfutils. Post by Samuel Bronson Your solution to #436522 doesn't appear to have totally worked; "dwarves" does not build from source now, using the latest from ,---- ...
🌐
Narkive
systemtap.sourceware.narkive.com › hSzrO0Fl › build-errors
build errors - systemtap@sourceware.org
Post by Marcin Krol configure: error: missing elfutils development headers/libraries (dw 0.123+) You should install libelf-dev, libdw-dev and libebl-dev.
🌐
GitHub
github.com › acmel › dwarves › blob › master › cmake › modules › FindDWARF.cmake
dwarves/cmake/modules/FindDWARF.cmake at master · acmel/dwarves
find_path(LIBDW_INCLUDE_DIR elfutils/libdw.h · /usr/include · /usr/local/include · ~/usr/local/include · ) · find_library(DWARF_LIBRARY · NAMES dw dwarf · PATHS /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64 ~/usr/local/lib ~/usr/local/lib64 ·
Author   acmel
🌐
GitHub
github.com › SimonKagstrom › kcov › issues › 22
cmake error:Could NOT find LibDwarf (missing: LIBDWARF_LIBRARIES LIBDWARF_INCLUDE_DIRS) · Issue #22 · SimonKagstrom/kcov
July 18, 2014 - already install libbdwraft , however ,when I run cmake, always alert: Could NOT find LibDwarf (missing: LIBDWARF_LIBRARIES LIBDWARF_INCLUDE_DIRS) ls /usr/local/lib/libdwarf.* /usr/local/lib/libdwarf.a /usr/local/lib/libdwarf.h cmake '-DC...
Author   SimonKagstrom
🌐
GitHub
github.com › ogdf › ogdf › issues › 46
libraries missing · Issue #46 · ogdf/ogdf
May 28, 2019 - Could NOT find LIBDW (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR) Could NOT find LIBBFD (missing: LIBBFD_LIBRARY LIBDL_LIBRARY LIBDL_INCLUDE_DIR) Could NOT find LIBUNWIND (missing: LIBUNWIND_LIBRARY LIBUNWIND_INCLUDE_DIR) Performing Test compiler_has_pretty_function Performing Test compiler_has_pretty_function - Failed The default target builds OGDF (and dependencies like COIN).
Author   ogdf
🌐
Debian
bugs.debian.org › cgi-bin › bugreport.cgi
#534529 - libdw-dev: missing libebl makes dwarves fail to build - Debian Bug report logs
June 25, 2009 - I just tried to replace find_library statement for EBL_LIBRARY > in cmake/modules/FindDWARF.cmake in pahole sources with this: > set (EBL_LIBRARY -ldw) > and it compiled fine (without any libebl). Clean solution will be to > remove this EBL_LIBRARY or detect whether shared libdw is used.
Find elsewhere
🌐
Spinics.net
spinics.net › lists › dwarves › msg00384.html
[PATCH pahole] cmake: libebl was merged into libdw — Linux DWARVES
December 16, 2019 - We do it against libelf because, IIRC, some distros # include libdw linked statically into libelf. check_library_exists(elf dwfl_module_build_id "" HAVE_DWFL_MODULE_BUILD_ID) -else (DWARF_INCLUDE_DIR AND LIBDW_INCLUDE_DIR AND DWARF_LIBRARY AND ELF_LIBRARY AND EBL_LIBRARY) +else (DWARF_INCLUDE_DIR AND LIBDW_INCLUDE_DIR AND DWARF_LIBRARY AND ELF_LIBRARY) set(DWARF_FOUND FALSE) set(DWARF_LIBRARIES) -endif (DWARF_INCLUDE_DIR AND LIBDW_INCLUDE_DIR AND DWARF_LIBRARY AND ELF_LIBRARY AND EBL_LIBRARY) +endif (DWARF_INCLUDE_DIR AND LIBDW_INCLUDE_DIR AND DWARF_LIBRARY AND ELF_LIBRARY) if (DWARF_FOUND) if
🌐
Narkive
ltrace-devel.alioth.debian.narkive.com › ge2CorwD › compilation-error-with-dwarf-code
[Ltrace-devel] Compilation error with dwarf code
The idea is that \b matches on edges of words, and we don't care about the rest, whether it's followed by a comma and more arguments, or directly by a closing paren. Thierry, could you please verify that the above works as expected? Thank you, PM ... Post by Thierry Fauck ( thierry @ linux.vnet.ibm.com ) I confirm that following patch solves the problem. Cool, I applied the fix. Thanks, PM ... Post by Petr Machata +AM_CONDITIONAL(HAVE_LIBDW, test x"$enable_elfutils" = xyes) if test x"$enable_elfutils" = xyes; then libdw_LIBS=-ldw AC_SUBST(libdw_LIBS) AC_DEFINE([HAVE_LIBDW], [1], [we have elfutils libdw]) fi Which does the same.
🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
Dnf update fails again (libasm/libdw missing, cannot be re-installed) - Fedora Discussion
October 15, 2020 - Hello @all, Again I’m having issues in performing a dnf update. It says `libdw.so.1: cannot open shared library’. So I tried to re-install the elfutils lib by using the ‘rpm’ command, which finished without an error message. Nevertheless the libdw/lobasm libraries are still missing ...
🌐
Google Source
kernel.googlesource.com › pub › scm › devel › pahole › pahole › + › v1.5 › cmake › modules › FindDWARF.cmake
cmake/modules/FindDWARF.cmake - pub/scm/devel/pahole/pahole - Git at Google
Sign in · kernel / pub / scm / devel / pahole / pahole / v1.5 / . / cmake / modules / FindDWARF.cmake · blob: c72026c4dee30e80bad15733cce7b205e5b435ad [file] [log] [blame] · Powered by Gitiles| Privacy| Termstxt json
🌐
Launchpad
launchpad.net › debian › +source › elfutils › +changelog
Change log : elfutils package : Debian
GDB has its own mechanism for detecting whether DEBUGINFOD_URLS is set and asking the user if they want to use it. I don't believe we need to default to not using our debuginfod service anymore. [ Matthias Klose ] * Install usr/include/elfutils/libdwfl_stacktrace.h in libdw-dev.
🌐
Google
chromium.googlesource.com › external › elfutils › + › elfutils-0.169 › libdw › libdw.h
libdw/libdw.h - external/elfutils - Git at Google
Sign in · chromium / external / elfutils / elfutils-0.169 / . / libdw / libdw.h · blob: 9ae80ebb3880a421d84497b6d813d6dec4e604e6 [file] [log] [blame] · Powered by Gitiles| Privacy| Termstxt json
🌐
GitHub
github.com › bombela › backward-cpp › issues › 331
cmake vcpkg elfutil libdw missing '<dlfcn.h>' · Issue #331 · bombela/backward-cpp
February 4, 2024 - FetchContent_Declare( backward GIT_REPOSITORY https://github.com/yhyu13/backward-cpp GIT_TAG 51f0700452cf71c57d43c2d028277b24cde32502 # or a version tag, such as v1.6 GIT_SHALLOW 1 # optional ( --depth=1 ) GIT_PROGRESS TRUE SYSTEM # optional, the Backward include directory will be treated as system directory ) FetchContent_MakeAvailable(backward) # Add Backward to your target (either Backward::Interface, Backward::Object, or Backward::Backward) target_link_libraries(Common PUBLIC Backward::Interface) Then in my test case TestException.cpp, I included #include <backward.hpp> The the compile target fails with dlopen cannot find under libdw source code, bascially it is the file '<dlfcn.h>' (libld) that is missing from linker.
Author   bombela