Bug 11917 - "configure: error: missing elfutils development headers/libraries": how to resolve?
Summary: "configure: error: missing elfutils development headers/libraries": how to r...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemtap
Classification: Unclassified
Component: releng (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 01:05 UTC by Peter Teoh
Modified: 2010-08-17 04:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
config.log (3.08 KB, text/x-log)
2010-08-17 04:24 UTC, Peter Teoh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Teoh 2010-08-17 01:05:41 UTC
No matter how hard I tried:

./configure always gives:

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C++ preprocessor... g++ -E
checking for gtkmm... no
checking for libglade... no
checking boost/algorithm/string.hpp usability... yes
checking boost/algorithm/string.hpp presence... yes
checking for boost/algorithm/string.hpp... yes
checking boost/range.hpp usability... yes
checking boost/range.hpp presence... yes
checking for boost/range.hpp... yes
checking for rpmtsInitIterator in -lrpm... no
checking for dwfl_module_getsym in -ldw... no
configure: error: missing elfutils development headers/libraries (install 
elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)


I am the most updated version:

git describe
release-1.3-47-g8dc503b

And system is running Ubuntu 10.04 Lucid (64-bit AMD, 2.6.32-21-generic - 
default kernel), would appreciate very much if anyone can let me know the proper 
requirements for installation.
Comment 1 Frank Ch. Eigler 2010-08-17 01:08:36 UTC
Have you tried ...

# apt-get build-dep systemtap

Or else use the "bundled elfutils" mode of installation from the README:
download elfutils sources, untar into some directory, then configure
systemtap with --with-elfutils=THE_ELFUTILS_SOURCE_DIRECTORY/.
Comment 2 Peter Teoh 2010-08-17 04:24:09 UTC
Subject: Re:  "configure: error: missing elfutils
 development headers/libraries": how to resolve?

On Tue, Aug 17, 2010 at 9:08 AM, fche at redhat dot com
<sourceware-bugzilla@sourceware.org> wrote:
>
> ------- Additional Comments From fche at redhat dot com  2010-08-17 01:08 -------
> Have you tried ...
>
> # apt-get build-dep systemtap

Thanks, but may not always worked with the latest development kernel.
 At least that was my experience last time :-).

>
> Or else use the "bundled elfutils" mode of installation from the README:

Ok thanks for this tip.   I started this option, and it worked.   I
did something extra:   configure and make install the downloaded
elfutils, and it created the "ld" and "ar" files into /usr/local/bin,
which results in errors during compilation of systemtap.   Now I have
deleted ld and other files, and did a "make distclean" inside elfutils
and compilation in systemtap went through successfullly.

Thank you Frank!!

> download elfutils sources, untar into some directory, then configure
> systemtap with --with-elfutils=THE_ELFUTILS_SOURCE_DIRECTORY/.
>
>
> --
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Status|NEW                         |WAITING
>
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=11917
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>



Comment 3 Peter Teoh 2010-08-17 04:24:09 UTC
Created attachment 4936 [details]
config.log
Comment 4 Peter Teoh 2010-08-17 04:36:47 UTC
Comment on attachment 4936 [details]
config.log

As extracted from the config.log:

gcc: '-V' option must have argument
configure:2877: $? = 1
configure:2866: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:2877: $? = 1
configure:2897: checking whether the C compiler works
configure:2919: gcc    conftest.c  >&5
/usr/local/bin/ld: unknown option `-z relro'
/usr/local/bin/ld: cannot load ld backend library 'libld_elf_x86_64.so':
libld_elf_x86_64.so: cannot open shared object file: No such file or directory


The error was because I had "make install" the downloaded elfutils, which
subsequently installed "ld" and "ar" into /usr/local/bin, and these latter
binaries are not working properly.   But as systemtap just need the source of
elfutils, it is not need to "make install" for the elfutils.
Comment 5 Peter Teoh 2010-08-17 04:40:42 UTC
This worked:

configure --with-elfutils=XXXXX

where XXXXX is the source directory of downloaded elfutil.