public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug dyninst/15740] New: stapdyn linking failed
@ 2013-07-14 15:24 soariez at gmail dot com
  2013-07-14 15:25 ` [Bug dyninst/15740] " soariez at gmail dot com
  2013-07-15  3:53 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: soariez at gmail dot com @ 2013-07-14 15:24 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15740

            Bug ID: 15740
           Summary: stapdyn linking failed
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dyninst
          Assignee: systemtap at sourceware dot org
          Reporter: soariez at gmail dot com

Compiling stapdyn failed on my system.

Here is the error output: 
====
make[3]: Entering directory `./systemtap/stapdyn'
  CXXLD    stapdyn
/usr/lib64/dyninst/libdyninstAPI.so: undefined reference to
`Dyninst::SymtabAPI::Function::getParams(std::vector<Dyninst::SymtabAPI::localVar*,
std::allocator<Dyninst::SymtabAPI::localVar*> >&)'
/usr/lib64/dyninst/libdyninstAPI.so: undefined reference to
`Dyninst::SymtabAPI::Function::getLocalVariables(std::vector<Dyninst::SymtabAPI::localVar*,
std::allocator<Dyninst::SymtabAPI::localVar*> >&)'
/usr/lib64/dyninst/libdyninstAPI.so: undefined reference to
`Dyninst::SymtabAPI::Function::getReturnType() const'
collect2: error: ld returned 1 exit status
make[3]: *** [stapdyn] Error 1
====

Looks like these symbols are defined in libsymtabAPI.so not libdyninstAPI.so.
====
➜  /tmp  rpmextract.sh dyninst-8.1.2-1.fc20.x86_64.rpm 
➜  /tmp  nm -CD usr/lib64/dyninst/libdyninstAPI.so | grep getReturnType
0000000000101bc0 T BPatch_function::getReturnType()
                 U Dyninst::SymtabAPI::Function::getReturnType() const
➜  /tmp  nm -CD usr/lib64/dyninst/libsymtabAPI.so | grep getReturnType 
00000000000eecd0 T Dyninst::SymtabAPI::DwarfWalker::getReturnType(bool,
Dyninst::SymtabAPI::Type*&)
00000000000e36b0 T Dyninst::SymtabAPI::typeFunction::getReturnType() const
00000000000afca0 T Dyninst::SymtabAPI::Function::getReturnType() const
====

A quick patch attached:
====
diff --git a/stapdyn/Makefile.am b/stapdyn/Makefile.am
index 6bd43f3..57d0e35 100644
--- a/stapdyn/Makefile.am
+++ b/stapdyn/Makefile.am
@@ -30,12 +30,12 @@ stapdyn_SOURCES = stapdyn.cxx mutator.cxx mutatee.cxx \
                                  dynprobe.cxx dynutil.cxx ../util.cxx
 stapdyn_CXXFLAGS = $(AM_CXXFLAGS) @DYNINST_CXXFLAGS@
 stapdyn_LDFLAGS = $(AM_LDFLAGS) @DYNINST_LDFLAGS@
-stapdyn_LDADD = -ldl -ldyninstAPI -lpthread
+stapdyn_LDADD = -ldl -ldyninstAPI -lsymtabAPI -lpthread

 dynsdt_SOURCES = dynsdt.cxx dynutil.cxx ../util.cxx
 dynsdt_CXXFLAGS = $(AM_CXXFLAGS) @DYNINST_CXXFLAGS@
 dynsdt_LDFLAGS = $(AM_LDFLAGS) @DYNINST_LDFLAGS@
-dynsdt_LDADD = -ldl -lelf -ldyninstAPI -lpthread
+dynsdt_LDADD = -ldl -lelf -ldyninstAPI -lsymtabAPI -lpthread

 endif # HAVE_DYNINST
====

I am not sure if this issue is system specific. I am running Archlinux with
dyninst 8.1.2 installed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dyninst/15740] stapdyn linking failed
  2013-07-14 15:24 [Bug dyninst/15740] New: stapdyn linking failed soariez at gmail dot com
@ 2013-07-14 15:25 ` soariez at gmail dot com
  2013-07-15  3:53 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: soariez at gmail dot com @ 2013-07-14 15:25 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15740

Zifei Tong <soariez at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |soariez at gmail dot com

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dyninst/15740] stapdyn linking failed
  2013-07-14 15:24 [Bug dyninst/15740] New: stapdyn linking failed soariez at gmail dot com
  2013-07-14 15:25 ` [Bug dyninst/15740] " soariez at gmail dot com
@ 2013-07-15  3:53 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2013-07-15  3:53 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15740

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
Thanks for the patch, merged.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-15  3:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-14 15:24 [Bug dyninst/15740] New: stapdyn linking failed soariez at gmail dot com
2013-07-14 15:25 ` [Bug dyninst/15740] " soariez at gmail dot com
2013-07-15  3:53 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).