Re: [DynInst_API:] compilation error


Date: Tue, 26 Mar 2013 08:43:32 -0500
From: Andrew Bernat <bernat@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] compilation error
Are you using a statically linked libelf, by any chance? Odd. 

There's nothing immediately wrong there; it has an undefined memcpy symbol but libc should be providing it. 

Can you try this sequence of commands from the dyninst source directory? I'm explicitly providing -lelf and -lc when building the parseThat binary. 

cd parseThat
cd x86_64-unknown-linux2.4
g++ -I../../codeCoverage/h -I../../common/h -I../../dataflowAPI/h -I../../dwarf/h -I../../dynC_API/h -I../../dyninstAPI/h -I../../dyninstAPI_RT/h -I../../dynutil/h -I../../elf/h -I../../instructionAPI/h -I../../parseAPI/h -I../../patchAPI/h -I../../proccontrol/h -I../../stackwalk/h -I../../symlite/h -I../../symtabAPI/h -Wall parseThat.o config.o ipc.o record.o strlist.o reglist.o log.o utils.o sha1.o dyninstCore.o dyninstCompat.v5.o -o parseThat -L/home/corpaul/dyninst/lib -L../../codeCoverage/x86_64-unknown-linux2.4 -L../../common/x86_64-unknown-linux2.4 -L../../dwarf/x86_64-unknown-linux2.4 -L../../dynC_API/x86_64-unknown-linux2.4 -L../../dyninstAPI/x86_64-unknown-linux2.4 -L../../dyninstAPI_RT/x86_64-unknown-linux2.4 -L../../elf/x86_64-unknown-linux2.4 -L../../instructionAPI/x86_64-unknown-linux2.4 -L../../parseAPI/x86_64-unknown-linux2.4 -L../../patchAPI/x86_64-unknown-linux2.4 -L../../proccontrol/x86_64-unknown-linux2.4 -L../../stackwalk/x86_64-unknown-linux2.4 -L../../symlite/x86_64-unknown-linux2.4 -L../../symtabAPI/x86_64-unknown-linux2.4 -L../../testsuite/x86_64-unknown-linux2.4 -ldyninstAPI -lstackwalk -lpcontrol -lpatchAPI -lparseAPI -linstructionAPI -lsymtabAPI -lsymLite -ldynDwarf -ldynElf -lcommon -pthread  -ldwarf -ldl -lelf -lc

On Mar 26, 2013, at 8:31 AM, Cor-paul Bezemer - EWI <C.Bezemer@xxxxxxxxxx> wrote:

Of course, see attached file. I could only find libdynElf in the x86_64 directory.

Cor-Paul
_____________




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