Re: [DynInst_API:] undefined reference to `dlopen' error during parseThat build


Date: Wed, 21 Nov 2012 11:51:19 -0500
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: [DynInst_API:] undefined reference to `dlopen' error during parseThat build
Hi -

On Wed, Nov 21, 2012 at 04:43:49PM +0000, Wei Ming Khoo wrote:
> [...]
> -L../../testsuite/i386-unknown-linux2.4 -ldl  -ldyninstAPI -lstackwalk
> -lpcontrol -lpatchAPI -lparseAPI -linstructionAPI -lsymtabAPI -lsymLite
> -ldynDwarf -ldynElf -lcommon -pthread  -ldwarf
> ../../proccontrol/i386-unknown-linux2.4/libpcontrol.so: undefined reference
> to `dlopen'
> [...]
> 
> I noticed that the '-ldl' library is specified, so I'm not sure what's
> going on. Any ideas?

Yeah, but it's too early in the list.  -ldl should come later than the libraries
that require it - or better, -lpcontrol etc. should each be linked against -ldl.

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