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]

[Bug uprobes/12543] New: PKGLIBEXECDIR undefined, causing uprobes.ko build to fail


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

           Summary: PKGLIBEXECDIR undefined, causing uprobes.ko build to
                    fail
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: uprobes
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: dsmith@redhat.com


(This bug is perhaps similar/related to bug #12541.)

On a 2.6.18-238.el5 ppc64 system, I configured/built like this:

# ../src/configure --disable-server --disable-docs --disable-grapher --with-el
futils=../elfutils-0.148/
# make && make install

When I got to build uprobes, I get the following error:

====
# make -C /usr/local/share/systemtap/runtime/uprobes
make: Entering directory `/usr/local/share/systemtap/runtime/uprobes'
make -C /lib/modules/2.6.18-238.el5/build
SUBDIRS=/usr/local/share/systemtap/runtime/uprobes modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-238.el5-ppc64'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-238.el5-ppc64'
if test -f ../../../../libexec/systemtap/stap-sign-module; then \
        for f in *.ko; do \
            if test ! -e $f.sgn -o $f.sgn -ot $f; then \
                ../../../../libexec/systemtap/stap-sign-module $f; \
            fi \
        done \
    fi
/usr/local/libexec/systemtap/stap-gen-cert: line 14: stap-env: No such file or
directory
certutil:  unable to open "/root/.systemtap/ssl/server/" for writing (-5953,
21).
error converting der (An I/O error occurred during security authorization.)
certutil: unable to read input file: An I/O error occurred during security
authorization.
Certificate /root/.systemtap/ssl/server/ created and added to database
/root/.systemtap/ssl/server
certutil: Could not find cert: stap-server
: File not found.
Unable to find certificate with nickname stap-server in
/root/.systemtap/ssl/server.
(-8174) Security library: bad database.
make: *** [default] Error 1
make: Leaving directory `/usr/local/share/systemtap/runtime/uprobes'
====

The 1st error there is that stap-gen-cert complains that it can't find
'stap-env'.  That file exists in /usr/local/libexec/systemtap/stap-env

Line 14 of stap-gen-cert looks like this:
====
# Initialize the environment
. ${PKGLIBEXECDIR}stap-env
====

However, I don't see where PKGLIBEXECDIR gets defined anywhere.  Note that
PKGLIBEXECDIR also is used in:

stap-server:29:. ${PKGLIBEXECDIR}stap-env                                     
stap-serverd:20:. ${PKGLIBEXECDIR}stap-env                                    
stap-start-server:16:. ${PKGLIBEXECDIR}stap-env    

After defining PKGLIBEXECDIR the uprobes build worked correctly.  I defined
PKGLIBEXECDIR in the environment like this:

# export PKGLIBEXECDIR=/usr/local/libexec/systemtap/

One possible solution here would be to autogenerate those files with the proper
path.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


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