Re: [DynInst_API:] Building Examples from parseAPI and dataflowAPI in Ubuntu 16.04


Date: Fri, 10 Feb 2017 16:53:40 +0000
From: Bill Williams <bill@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] Building Examples from parseAPI and dataflowAPI in Ubuntu 16.04
Did Dyninst install into /usr/local/lib, or is it elsewhere on your system? All of those methods should be exported and visible (and if they weren't, Dyninst itself wouldn't build and link correctly), so the most likely problem is that the parseAPI library is not in your link path.

--bw

________________________________________
From: Dyninst-api <dyninst-api-bounces@xxxxxxxxxxx> on behalf of Sazzadur Rahaman <sazzad14@xxxxxx>
Sent: Friday, February 10, 2017 10:43 AM
To: dyninst-api@xxxxxxxxxxx
Subject: [DynInst_API:] Building Examples from parseAPI and dataflowAPI in      Ubuntu 16.04

Hi All,

I am also facing a similar problem as this (https://www-auth.cs.wisc.edu/lists/dyninst-api/2017/msg00055.shtml) while I try to build Examples from parseAPI and dataflowAPI. For example, when I run "make" to build the code from 3.2 Control flow graph traversal, I get the following error message:

g++ -g -O2 -std=c++11 -I/usr/local/include -L/usr/local/lib -lparseAPI -lsymtabAPI -lelf -ldynDwarf -ldwarf -lelf -ldynElf -lcommon CFG.cpp -o CFG
/tmp/ccf4Fy7w.o: In function `main':
/home/krishnokoli/dyninst-tools/binary-parsing/CFG.cpp:27: undefined reference to `Dyninst::ParseAPI::SymtabCodeSource::SymtabCodeSource(char*)'
/home/krishnokoli/dyninst-tools/binary-parsing/CFG.cpp:28: undefined reference to `Dyninst::ParseAPI::CodeObject::CodeObject(Dyninst::ParseAPI::CodeSource*, Dyninst::ParseAPI::CFGFactory*, Dyninst::ParseAPI::ParseCallback*, bool)'
/home/krishnokoli/dyninst-tools/binary-parsing/CFG.cpp:31: undefined reference to `Dyninst::ParseAPI::CodeObject::parse()'
/home/krishnokoli/dyninst-tools/binary-parsing/CFG.cpp:60: undefined reference to `Dyninst::ParseAPI::Function::blocks()'
/home/krishnokoli/dyninst-tools/binary-parsing/CFG.cpp:61: undefined reference to `Dyninst::ParseAPI::Function::blocks()'
collect2: error: ld returned 1 exit status
Makefile:7: recipe for target 'CFG' failed
make: *** [CFG] Error 1

Sidenote: Before installing Dyninst, I manually installed Boost library, elf library, iberty library but I left libdwarf to be installed by itself during Dyninst build process.

Any help on this issue will be lifesaving. Thank you very much for your help!

Best Regards,
Sazzadur Rahaman

[← Prev in Thread] Current Thread [Next in Thread→]