Summary: | "configure: error: missing elfutils development headers/libraries": how to resolve? | ||
---|---|---|---|
Product: | systemtap | Reporter: | Peter Teoh <htmldeveloper> |
Component: | releng | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | htmldeveloper |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | config.log |
Description
Peter Teoh
2010-08-17 01:05:41 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/. 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. |