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/27/2017 03:00 AM, Arkady wrote:
> I tried to move the -lncurses -ljson-c to the end of the command like this
> 
> gcc -Wall -Wextra -Werror -Wunused -W -Wformat=2  -ltinfo -g -O2
> -fstack-protector-all -D_FORTIFY_SOURCE=2   -o stapio stapio.o
> mainloop.o common.o ctl.o relay.o relay_old.o monitor.o
> libstrfloctime.a -lpthread -ljson-c -lncurses
> 
> It works fine, no errors. Apparently this is a problem of order of linking.

Oh definitely. Since the linker found -lncurses and -ljson-c first
before the .o files, it just threw them away since nothing referenced them.

We'll have to keep an eye out on others having this same issue.

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