This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build errors


Hello everyone,

I'm a new user of systemtap on Debian Etch 4.0r1 and have terrible problems building it from source available from CVS (binary package available by default on Etch can't even compile "hello world" example from tutorial without throwing compilation errors).

I get this after ./compile:

configure: error: missing elfutils development headers/libraries (dw 0.123+)

In config.log I get:

configure:6324: gcc -o conftest -march=nocona -02 -pipe -fomit-frame-pointer conftest.c -ldw >&5
gcc: unrecognized option '-02'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdw.a(dwfl_module_getsym.o): In function `dwfl_module_getsym':
(.text+0x55): undefined reference to `gelf_getsymshndx'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdw.a(dwfl_module_getsym.o): In function `dwfl_module_getsym':
(.text+0xf9): undefined reference to `elf_getshstrndx'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdw.a(dwfl_error.o): In function `__libdwfl_seterrno':
(.text+0x1a1): undefined reference to `elf_errno'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libdw.a(dwfl_error.o): In function `__libdwfl_canon_error':
(.text+0x228): undefined reference to `elf_errno'


...

Trouble is, there is no elfutils-dev available on Debian. Even though I compiled elfutils from source and installed it (with prefix=/usr/local), ./configure for systemtap still cannot find the elfutils headers.

This is strange, as there are some headers in /usr/include/elfutils (from some packages I installed before) as well as /usr/local/include/elfutils folder (from source build):

a2 (87.204.147.145) ~/systemtap-0.0.20061028/src % cd /usr/include/elfutils/
da2 (87.204.147.145) /usr/include/elfutils % ls
elf-knowledge.h  libdwfl.h  libdw.h  libebl.h
da2 (87.204.147.145) /usr/include/elfutils % cd /usr/local/include/elfutils/
da2 (87.204.147.145) /usr/local/include/elfutils % ls
elf-knowledge.h  libasm.h  libdwfl.h  libdw.h  libebl.h

Anybody knows how I can compile this?


-- Marcin Krol



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]