stap fails with: "error: implicit declaration of function ‘unregister_uprobe’"

Bug #1075772 reported by Alain Kalker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemtap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Trying to run this simple probe:

# stap -v -e 'probe process("ls").function("*").call {
           log (probefunc()." ".$$parms)
           }' -c 'ls -l'

fails with the following errors:

In file included from /tmp/stapqvNG8J/stap_518345dbbc072bbdf0bdda02edc8e988_80709_src.c:18860:0:
/usr/share/systemtap/runtime/uprobes-inode.c: In function ‘stp_inode_uprobes_unreg’:
/usr/share/systemtap/runtime/uprobes-inode.c:94:3: error: implicit declaration of function ‘unregister_uprobe’ [-Werror=implicit-function-declaration]
/usr/share/systemtap/runtime/uprobes-inode.c: In function ‘stp_inode_uprobes_reg’:
/usr/share/systemtap/runtime/uprobes-inode.c:107:3: error: implicit declaration of function ‘register_uprobe’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapqvNG8J/stap_518345dbbc072bbdf0bdda02edc8e988_80709_src.o] Error 1
make: *** [_module_/tmp/stapqvNG8J] Error 2
WARNING: make exited with status: 2
Pass 4: compiled C into "stap_518345dbbc072bbdf0bdda02edc8e988_80709.ko" in 4490usr/870sys/5668real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.

I think this may be related to the changes made for Bug #1054274 , in particular with handling the name change from 'uprobe_register' -> 'register_uprobe' et al. See uprobes-inode.c , lines 18-35.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: systemtap 1.7-1ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Tue Nov 6 23:53:44 2012
InstallationDate: Installed on 2011-11-12 (360 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: systemtap
UpgradeStatus: Upgraded to quantal on 2012-11-06 (0 days ago)

Revision history for this message
Alain Kalker (miki4242) wrote :
Revision history for this message
Alain Kalker (miki4242) wrote :

$ grep "\suprobe.*register" /proc/kallsyms
0000000000000000 T uprobe_register
0000000000000000 T uprobe_unregister

Revision history for this message
Alain Kalker (miki4242) wrote :
Revision history for this message
Frank Ch. Eigler (fche) wrote :

I believe this problem was fixed back in version 1.8, as well as the current version of 2.0.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package systemtap - 2.1-1~experimental1

---------------
systemtap (2.1-1~experimental1) experimental; urgency=low

  * New upstream release (Closes: #690404, #701365, #701365)
    (LP: #803549, #1130626, #1075772).
  * Drop patches that are part of the new upstream release:
    - manpage-syntax1.diff
    - spelling-fixes1.diff
    - spelling-fixes2.diff
    - manpage-paths1.diff
    - fix.CVE-2012-0875.diff
  * Add patches that fix various lintian warnings. These have all
    been accepted upstream so we can get rid of them in the next
    release (thanks Frank Ch. Eigler!):
    - 0001-man-stap.1-escape-minus-sign-properly.patch
    - 0002-man-stap.1-fix-typo.patch
    - 0003-man-stapprobes.3stap-escape-minus-sign-properly.patch
    - 0005-Add-missing-usr-bin-env-stap-to-some-examples.patch
    - 0006-man-stappaths.7-properly-escape-dot-in-the-beginning.patch
    - 0008-man-escape-quote-properly-in-header.patch
    - 0001-configure.ac-remove-temporary-file-after-test.patch
    - 0002-Makefile.am-remove-temporary-symlinks-in-distclean.patch
    - 0003-configure-Makefile-regenerate.patch
    - 0001-tapset-test-adieu.patch
    - 0001-Makefile.am-don-t-install-html-.tmpl-files.patch
    - 0002-Makefile.in-regenerate.patch
    - 0001-manpager-fix-warnings-by-adding-breaks-between-SEE-A.patch
  * Add patch to partially fix #604453:
    - 0001-blacklist-more-unsafe-functions.patch
  * Backport patch to support unreadable System.map on Ubuntu:
    - 0001-translator-tolerate-unavailable-System.map.patch
  * Add patch to suggest reading README.Debian if anything
    fails. Usability testing shows that surprisingly few users
    will find it otherwise :-) This patch can not be forwarded
    upstream but it is very simple.
    - suggest-readme.debian.diff
  * Upload to experimental since wheezy is frozen.
  * Drop systemtap-grapher binary package as it has been
    removed by upstream. Remove its build-dependencies
    libgtkmm-2.4-dev, libboost-dev and libglademm-2.4-dev as well.
  * Add powerpcspe to the architecture list (Closes: #700161).
  * Ship stap-prep to help users figure out what
    debug symbol and header packages they need to install and mention
    this in README.Debian.
  * Add patches to make stap-prep work on Debian:
    - 0001-Prepare-stap-prep-for-support-for-non-rpm-systems.patch
    - 0002-stap-prep-add-support-for-deb-based-systems.patch
    - 0003-man-add-man-page-for-stap-prep-1.patch
    - 0004-man-stap.1-add-reference-to-stap-prep-1.patch
    - 0001-install-stap-prep.1-man-page.patch
    - 0002-man-Makefile.in-regenerate.patch
  * Add patch to improve error messages:
    - 0001-Suggest-running-stap-prep-after-all-failures.patch
  * Enable emacs addon that makes editing .stp files easier.
  * Ensure that build log shows full build commands.
  * Bump Standards-Version to 3.9.4, no changes were needed.

 -- Timo Juhani Lindfors <email address hidden> Sat, 23 Feb 2013 14:36:19 +0200

Changed in systemtap (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.