Hello,

dwarves do require modifications, but they can be built with new
elfutils. 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. So I
dont think that it is a bug in elfutils.

24 червня 2009 о 23:20 -0400 Samuel Bronson написав(-ла):
> Your solution to #436522 doesn't appear to have totally worked;
> "dwarves" does not build from source now, using the latest from
> git://git.kernel.org/pub/scm/linux/kernel/git/acme/pahole.git:
> 
> ,----
> | naes...@hydrogen:~/hacking/pahole% git status
> | # On branch master
> | nothing to commit (working directory clean)
> | naes...@hydrogen:~/hacking/pahole% cmake -D__LIB=lib
> | -- The C compiler identification is GNU
> | -- Check for working C compiler: /usr/bin/gcc
> | -- Check for working C compiler: /usr/bin/gcc -- works
> | -- Detecting C compiler ABI info
> | -- Detecting C compiler ABI info - done
> | -- Checking availability of DWARF and ELF development libraries
> | -- Could NOT find libebl library
> | CMake Error at cmake/modules/FindDWARF.cmake:95 (message):
> |   Could NOT find some ELF and DWARF libraries, please install the missing
> |   packages
> | Call Stack (most recent call first):
> |   CMakeLists.txt:31 (find_package)
> |
> |
> | -- Configuring incomplete, errors occurred!
> `----
> 
> Any ideas about how to solve this? Maybe it's a bug in dwarves, but
> either way it needs fixing...
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages libdw-dev depends on:
> ii  libdw1                        0.141-2    library that provides access to 
> th
> ii  libelf-dev                    0.141-2    libelf1 development libraries and
> 
> libdw-dev recommends no packages.
> 
> -- no debconf information
> 
> 
> 

Attachment: signature.asc
Description: Digital signature

Reply via email to