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]

Compiling SystemTap with elfutils-0.165 fails


Mark,

I use the following configuration to compile SystemTap on my system.

The systemtap repository resides in work/repository/systemtap. A copy of elfutils-0.165 is in work/repository/elfutils-0.165.

cd work/repository/systemtap-i686-linux-gnu
../systemtap/configure \
    --prefix=/opt/tooling/adit/systemtap \
    --with-elfutils=/home/polle/work/repository/elfutils-0.165 \
    --enable-docs=no

make install

Eventually, I get the following output:

make[2]: Entering directory `/home/polle/work/repository/systemtap-i686-linux-gnu'
  CXX      stap-main.o
In file included from include-elfutils/gelf.h:32:0,
                 from include-elfutils/elfutils/libdw.h:32,
                 from ../systemtap/elaborate.h:25,
                 from ../systemtap/main.cxx:14:
include-elfutils/libelf.h:280:8: error: âElf32_Chdrâ does not name a type
include-elfutils/libelf.h:281:8: error: âElf64_Chdrâ does not name a type

It seems that include-elfutils/libelf.h tries to pull in elf.h but fails to include the one from elfutils-0.165. Instead my copy in /usr/include is included, which stems from an older version of elfutils. I can fix the problem by copying work/repository/elfutils-0.165/libelf/elf.h to work/repository/systemtap-i686-linux-gnu/include-elfutils.

Kind Regards,
Torsten

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