[Bug runtime/3282] staprun failed in relayfs mode

guanglei at cn dot ibm dot com sourceware-bugzilla@sourceware.org
Fri Sep 29 04:51:00 GMT 2006


------- Additional Comments From guanglei at cn dot ibm dot com  2006-09-29 04:51 -------
I checked and found the reason is the due to the failure of:
execlp(stp_check, stp_check, NULL) , which is called inside init_relayfs of
librelayfs.c
the PKGLIBDIR is not defined so execlp can't find the path of stp_check.

Here is a patch, I tested and it works for me:

Index: Makefile.am
===================================================================
RCS file: /cvs/systemtap/src/Makefile.am,v
retrieving revision 1.54
diff -u -r1.54 Makefile.am
--- Makefile.am 26 Sep 2006 21:41:37 -0000      1.54
+++ Makefile.am 29 Sep 2006 04:47:04 -0000
@@ -5,7 +5,7 @@

 pkglibexecdir = ${libexecdir}/${PACKAGE}

-AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DPKGDATADIR='"${pkgdatadir}"'
+AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DPKGDATADIR='"${pkgdatadir}"'
-DPKGLIBDIR='"$(pkglibexecdir)"'

 AM_CFLAGS = -std=gnu99 -D_GNU_SOURCE -fexceptions \
            -Wall -Werror -Wshadow -Wunused -Wformat=2 -W


-- 


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

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



More information about the Systemtap mailing list