[DynInst_API:] issues compiling dyninst


Date: Tue, 30 Jun 2015 19:01:07 -0400
From: Srihari Radhakrishnan <s2radhak@xxxxxxxxxxxx>
Subject: [DynInst_API:] issues compiling dyninst
Hello,

I'm trying to build the dyninst library on my machine, and I'm running into the following issue :Â

Linking CXX shared library libdynDwarf.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdwarf.a(dwarf_alloc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdwarf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [dwarf/libdynDwarf.so.8.2.1] Error 1
make[1]: *** [dwarf/CMakeFiles/dynDwarf.dir/all] Error 2
make: *** [all] Error 2


How do I fix this issue? I'm using Dyninst-8.2.1, and am configuring the project using "cmake --with=libdwarf-static", but it's still building the dynamic library.Â

Any help would be greatly appreciated.

Regards,
SrihariÂ
[← Prev in Thread] Current Thread [Next in Thread→]