This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Problem Building Elfutils (patched) Required by systemtap
- From: Nathan DeBardeleben <ndebard at lanl dot gov>
- To: "systemtap at sources dot redhat dot com" <systemtap at sources dot redhat dot com>
- Date: Thu, 09 Mar 2006 15:19:31 -0700
- Subject: Problem Building Elfutils (patched) Required by systemtap
I'm sure this is a newbie question but I figured I'd toss it out there
anyway. I'm trying to build the latest systemtap snapshot I see on the
FTP server - 20060304. I got the elfutils, 0.119 and patched it with
the patch provided as well. Then compiling systemtap it goes into the
elfutils dir and runs a Make in there - I get the following error. I'm
trying this as root in this example since I was having problems doing it
as a user (not sure if that's necessary):
. . .
Making all in src
make[3]: Entering directory
`/root/systemtap-20060304/src/build-elfutils/src'
gcc -Wall -Wshadow -std=gnu99 -Werror -Wunused -Wextra -Wformat=2 -g
-O2 -Wl,--enable-new-dtags,-rpath,/usr/local/lib/systemtap -o
addr2line addr2line.o ../libdw/libdw.so
/usr/bin/ld: warning: libelf.so.1, needed by ../libdw/libdw.so, not
found (try using -rpath or -rpath-link)
../libdw/libdw.so: undefined reference to `gelf_getsymshndx@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf32_xlatetof@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_errno@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_kind@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_update_shdr@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_errmsg@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_xlatetom@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_getshdr@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_end@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf32_xlatetom@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_nextscn@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_getrel@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_getehdr@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_rawdata@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_getshstrndx@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_strptr@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_getphdr@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_version@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_begin@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_ndxscn@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_xlatetof@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `gelf_getrela@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_memory@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_getdata@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_cntl@ELFUTILS_1.0'
../libdw/libdw.so: undefined reference to `elf_getscn@ELFUTILS_1.0'
collect2: ld returned 1 exit status
make[3]: *** [addr2line] Error 1
make[3]: Leaving directory
`/root/systemtap-20060304/src/build-elfutils/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/systemtap-20060304/src/build-elfutils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/systemtap-20060304/src/build-elfutils'
make: *** [stamp-elfutils] Error 2
I had previous configured systemtap with:
./configure --with-elfutils=/root/elfutils-0.119
Any help would be appreciated. Sorry for the newbie question but
perhaps it reveals a problem in the configure or potentially a place to
add something in the docs? Or maybe I just missed something in the docs. :)
Thanks!
--
-- Nathan
Correspondence
---------------------------------------------------------------------
Nathan DeBardeleben, Ph.D.
Los Alamos National Laboratory
Parallel Tools Team
High Performance Computing Environments
phone: 505-667-3428
email: ndebard@lanl.gov
---------------------------------------------------------------------