This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
location definition of stp_check
- From: "Gui,Jian" <guij at cn dot ibm dot com>
- To: <systemtap at sources dot redhat dot com>
- Date: Tue, 28 Feb 2006 17:22:33 +0800
- Subject: location definition of stp_check
Hi,
I wanted to build and run stpd in its source directory without
installing it. I've copied stp_check and set its attribute to
executable but I still got the error:
[root@localhost stpd]# ./stpd stap_9762.ko
stp_check: No such file or directory
Could not execute stp_check
It is originated by the following statement in main():
execlp(stp_check, stp_check, NULL)
while stp_check is defined as:
#ifdef PKGLIBDIR
char *stp_check=PKGLIBDIR "/stp_check";
#else
char *stp_check="stp_check";
#endif
I think normally "." is not included in $PATH and
execlp("stp_check", "stp_check", NULL) always fails,
therefore we can change it like:
#ifdef PKGLIBDIR
char *stp_check=PKGLIBDIR "/stp_check";
#else
char *stp_check="./stp_check";
#endif
Any comments? thanks.