Re: [PATCH 2/2] perf report: Add gcc option '-rdynamic' to define symbol callchain_param

From: Jiri Olsa
Date: Sun May 01 2016 - 11:45:01 EST


On Thu, Apr 28, 2016 at 11:49:06PM +0900, Kyeongmin Cho wrote:
> Hi,
>
> Althogh applying my previous patch, it still prints
>
> $ ./perf report --gtk
> GTK browser requested but could not find libperf-gtk.so
>
> When printing dlerror() in setup_gtk_browser(),
>
> $ ./perf report --gtk
> /home/drzix/lib64/libperf-gtk.so: undefined symbol: callchain_param
> GTK browser requested but could not find libperf-gtk.so
>
> After applying this patch, compiling rdynamically to make
> libperf-gtk.so find out the symbol, it works.

hum, I'm running that with:
LD_LIBRARY_PATH=$PWD ./perf report --gtk

jirka