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


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

> > 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.

> I'd like to take this time to say thanks to Ubuntu for taking a
> giant step backwards in linker usability. 

I suspect it's actually an upstream GNU binutils change from a few years ago.
Use LDFLAGS=-Wl,--as-needed to restore the previous behavior, or else fix the
shared libraries' makefiles to have each link against -ldl as needed.

> You are completely right, and it should be; I'll go see what I
> missed for 32-bit builds.

So e.g. in proccontrol/*/Makefile, LDFLAGS should include -ldl.


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