Menu

#161 Kdump "crasher.c" fails to compile

Module
open
nobody
Test Driver (3)
5
2012-09-13
2012-09-13
No

Crasher.c which is part of the kdump test suite fails to compile on kernel versions 3.x.x. It has successfully compiled on kernel versions 2.6.32.x. Any ideas?

[root@system1 crasher]# pwd
/root/ltp-full-20120903/testcases/kdump/lib/crasher

[root@system1 crasher]# ll
total 8
-rw-r--r--. 1 root root 2659 Sep 13 15:11 crasher.c
-rw-r--r--. 1 root root 296 Sep 2 22:39 Makefile

[root@system1 crasher]# make
make -C /lib/modules/3.3.8/build M=/root/ltp-full-20120903/testcases/kdump/lib/crasher modules
make[1]: Entering directory `/usr/src/kernels/3.3.8'
CC [M] /root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.o
In file included from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.c:22:
include/linux/spinlock.h:104:38: warning: backslash and newline separated by space
/root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.c: In function ‘crasher_write’:
/root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.c:49: error: ‘SPIN_LOCK_UNLOCKED’ undeclared (first use in this function)
/root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.c:49: error: (Each undeclared identifier is reported only once
/root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.c:49: error: for each function it appears in.)
make[2]: *** [/root/ltp-full-20120903/testcases/kdump/lib/crasher/crasher.o] Error 1
make[1]: *** [_module_/root/ltp-full-20120903/testcases/kdump/lib/crasher] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.3.8'
make: *** [default] Error 2

Regards,
Randy

Discussion


Log in to post a comment.