public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug uprobes/12543] New: PKGLIBEXECDIR undefined, causing uprobes.ko build to fail
@ 2011-03-04 16:20 dsmith at redhat dot com
  2011-03-04 18:48 ` [Bug uprobes/12543] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dsmith at redhat dot com @ 2011-03-04 16:20 UTC (permalink / raw)
  To: systemtap

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.

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

* [Bug uprobes/12543] PKGLIBEXECDIR undefined, causing uprobes.ko build to fail
  2011-03-04 16:20 [Bug uprobes/12543] New: PKGLIBEXECDIR undefined, causing uprobes.ko build to fail dsmith at redhat dot com
@ 2011-03-04 18:48 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2011-03-04 18:48 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |systemtap at sourceware dot
                   |redhat.com                  |org

--- Comment #1 from David Smith <dsmith at redhat dot com> 2011-03-04 18:47:58 UTC ---
Note that I just saw the same error on a 2.6.32-118.el6.ppc64 system, so this
problem isn't RHEL5 specific.

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

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

end of thread, other threads:[~2011-03-04 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 16:20 [Bug uprobes/12543] New: PKGLIBEXECDIR undefined, causing uprobes.ko build to fail dsmith at redhat dot com
2011-03-04 18:48 ` [Bug uprobes/12543] " dsmith 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).