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]

Re: build errors


Hi,

29 ÐÐÑÑÐÐÐÐÐ 2007 Ð 11:36 +0100 Marcin Krol ÐÐÐÐÑÐÐ(-ÐÐ):
> 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).
Hmm, isn't systemtap package available in Etch?

>
> I get this after ./compile:
>
> configure: error: missing elfutils development headers/libraries (dw 0.123+)
You should install libelf-dev, libdw-dev and libebl-dev.

>
> 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'
Hmm, minus-zero-two? Should be minus-O-two.

> /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'
This is because there are only static elfutils libraries available in
Debian. You can look at patch 06-static-libdw-fix in systemtap source
package for the fix (it adds -Wl,--start-group and -Wl,--end-group flags
to the linker command line).

> Trouble is, there is no elfutils-dev available on Debian. Even though I 
elfutils-dev is split in 3 packages, see above.

> 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?
There is also some information on
http://sourceware.org/systemtap/wiki/SystemtapOnDebian that may be
useful.

Regards,
Eugeniy Meshcheryakov

Attachment: signature.asc
Description: Digital signature


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