The following errors appear when compiling any systemtap script:
In file included from include/linux/mutex.h:15:0, from /tmp/stapbdpxn3/stap_a0ec17f995e8f89d672d8c2eb7fe7c24_1693_src.c:25:
include/linux/spinlock_types.h:55:14: error: ‘__ARCH_SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
.raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
^
include/linux/spinlock_types.h:79:15: note: in expansion of macro ‘__RAW_SPIN_LOCK_INITIALIZER’
{ { .rlock = __RAW_SPIN_LOCK_INITIALIZER(lockname) } }
^
include/linux/spinlock_types.h:82:16: note: in expansion of macro ‘__SPIN_LOCK_INITIALIZER’
(spinlock_t ) __SPIN_LOCK_INITIALIZER(lockname)
^
include/linux/mutex.h:111:18: note: in expansion of macro ‘__SPIN_LOCK_UNLOCKED’
, .wait_lock = __SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
^
include/linux/mutex.h:117:27: note: in expansion of macro ‘__MUTEX_INITIALIZER’
struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
The following errors appear when compiling any systemtap script:
In file included from include/ linux/mutex. h:15:0,
from /tmp/stapbdpxn3 /stap_a0ec17f99 5e8f89d672d8c2e b7fe7c24_ 1693_src. c:25: linux/spinlock_ types.h: 55:14: error: ‘__ARCH_ SPIN_LOCK_ UNLOCKED’ undeclared here (not in a function) SPIN_LOCK_ UNLOCKED, \ linux/spinlock_ types.h: 79:15: note: in expansion of macro ‘__RAW_ SPIN_LOCK_ INITIALIZER’ LOCK_INITIALIZE R(lockname) } } linux/spinlock_ types.h: 82:16: note: in expansion of macro ‘__SPIN_ LOCK_INITIALIZE R’ LOCK_INITIALIZE R(lockname) linux/mutex. h:111:18: note: in expansion of macro ‘__SPIN_ LOCK_UNLOCKED’ LOCK_UNLOCKED( lockname. wait_lock) \ linux/mutex. h:117:27: note: in expansion of macro ‘__MUTEX_ INITIALIZER’ INITIALIZER( mutexname)
include/
.raw_lock = __ARCH_
^
include/
{ { .rlock = __RAW_SPIN_
^
include/
(spinlock_t ) __SPIN_
^
include/
, .wait_lock = __SPIN_
^
include/
struct mutex mutexname = __MUTEX_
Relevant bug in fedora: https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1240682 /www.sourceware .org/git/ gitweb. cgi?p=systemtap .git;a= commitdiff; h=320e1ecb16427 b5769f0f5a097d8 0823ee1fb765
Upstream fix: https:/