This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Problem Building Elfutils (patched) Required by systemtap
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Nathan DeBardeleben <ndebard at lanl dot gov>
- Cc: systemtap at sources dot redhat dot com
- Date: 09 Mar 2006 17:58:57 -0500
- Subject: Re: Problem Building Elfutils (patched) Required by systemtap
- References: <4410A9F3.2040101@lanl.gov>
Nathan DeBardeleben <ndebard@lanl.gov> writes:
> [...] 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.
Strange.
> 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):
It is not. Building systemtap, and running the "make check" portion
of the test suite should require no privileged access. Only "make
install" and running scripts such as the dejagnu pass-5 tests will
require privileges.
> > 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'
> > [...]
I wonder if this is some kind of security precaution in the linker,
associated with running the build as root.
- FChE