Re: [DynInst_API:] compilation error


Date: Tue, 26 Mar 2013 14:07:15 +0000
From: Cor-paul Bezemer - EWI <C.Bezemer@xxxxxxxxxx>
Subject: Re: [DynInst_API:] compilation error
Now that I think of it... I was getting a configuration error so someone told me to --enable-static while configuring. It indeed removed the error message (I think it had something to do with 32/64-bit) 
but still could not compile.
Can that be the cause? I am pretty new with linux so I am kind of stuck here...

Output for the commands:
/home/corpaul/dyninst/lib/libdynElf.so: undefined reference to `memcpy@xxxxxxxxxx'
collect2: error: ld returned 1 exit status


Cor-Paul

________________________________________
From: Andrew Bernat [bernat@xxxxxxxxxxx]
Sent: Tuesday, March 26, 2013 2:43 PM
To: Cor-paul Bezemer - EWI
Cc: dyninst-api@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<mailto:C.Bezemer@xxxxxxxxxx>> wrote:

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

Cor-Paul
_____________

--
Andrew Bernat
Paradyn Project
bernat@xxxxxxxxxxx<mailto:bernat@xxxxxxxxxxx>
http://www.cs.wisc.edu/~bernat



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