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.
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/.
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. >
Created attachment 4936 [details] config.log
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.
This worked: configure --with-elfutils=XXXXX where XXXXX is the source directory of downloaded elfutil.