Public bug reported:

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)

** Affects: systemtap (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug quantal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1075772

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1075772/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to