This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trouble with installation of systemtap3-0 on Ubuntu 14.04


On 01/26/2017 05:17 AM, Arkady wrote:
> Hi,
> 
> This thread is probably the closest to the problem I experience.
> 
> I need --monitor support in the stap. I am trying to compile the 3.0 release
> On my Ubuntu 4.4.0-59-generic
> 
> pkg-config --exists --print-errors "json-c >= 0.12";echo $?
> pkg-config --exists --print-errors "ncurses";echo $?
> 
> both return zero
> 
> I checked the ./configure and decided to run with
> 
> PKG_CONFIG=/usr/bin/pkg-config ./configure  --prefix=/home/arkady/systemtap/
> 
> Without PKG_CONFIG=/usr/bin/pkg-config ./configure fails to discover
> json-c and ncurses.
> 
> I got 'yes' for both json-c and ncurses. The link (?) fails though
> 
> make[3]: Entering directory '/home/arkady/systemtap-3.0/staprun'
>   CCLD     stapio
> monitor.o: In function `comp_name':
> /home/arkady/systemtap-3.0/staprun/monitor.c:151: undefined reference
> to `json_object_object_get_ex'
> I have ./lib/x86_64-linux-gnu/libjson.a and the library contains
> json_object_object_get_ex
> ...................
> 
> What am I missing?

Am I correct in thinking that libjson is installed in your home
directory somewhere and isn't a system library? If so, that might be
your problem. We can probably pass more options to configure to add that
directory to the link search path.

Another possibility is that the link is looking for a shared library
(.so) and you've got a static library (.a).

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]