<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i am trying to run kdump test but i am getting following error.Can you suggest what will be the reason for failure ??<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
root@test:/home/test/ltp/testcases/kdump# make</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>chmod a+x runkdump.sh lib/*.sh</div>
<div>./runkdump.sh</div>
<div>+ conf=./runkdump.conf</div>
<div>+ lib=lib</div>
<div>+ log=log</div>
<div>+ . ./runkdump.conf</div>
<div>+ ITERATION=1</div>
<div>+ CRASH=0</div>
<div>+ REBOOT=0</div>
<div>+ uname -r</div>
<div>+ VMLINUX=/usr/lib/debug/lib/modules/5.3.0-28-generic/vmlinux</div>
<div>+ COREDIR=/var/crash</div>
<div>+ FILTER=0</div>
<div>+ MAKE_OPTIONS=</div>
<div>+ LINK_DELAY=</div>
<div>+ CRASHER=ACS ACP ACB ACE ACL</div>
<div>+ BASIC_LKDTM=KPIDB KPIEB KPTEE KPBL</div>
<div>+ EXTRA_LKDTM=</div>
<div>KPIDE KPIDL KPIDP KPIDO</div>
<div>KPIEE KPIEL KPIEP KPIEO</div>
<div>KPTEB KPTEL KPTEP KPTEO</div>
<div>KPBB KPBE KPBP KPBO</div>
<div>KPMSB KPMSE KPMSL KPMSP KPMSO</div>
<div>KPTB KPTE KPTL KPTP KPTO</div>
<div>KPSB KPSE KPSL KPSP KPSO</div>
<div>KPIB KPIE KPIL KPIP KPIO</div>
<div><br>
</div>
<div>+ EXTRA_DUMP=KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB</div>
<div>+ EXT3_PART=</div>
<div>+ EXT3_LABEL=</div>
<div>+ EXT3_UID=</div>
<div>+ RAW_PART=</div>
<div>+ SCP_PATH=</div>
<div>+ SCP_PASS=</div>
<div>+ NFS_PATH=</div>
<div>+ [ -z 1 ]</div>
<div>+ [ -z 0 ]</div>
<div>+ [ -z /var/crash ]</div>
<div>+ cd lib</div>
<div>+ [ 1 -ge 1 ]</div>
<div>+ [ -z 0 ]</div>
<div>+ [ 0 -eq 0 ]</div>
<div>+ echo Setup test environment.</div>
<div>Setup test environment.</div>
<div>+ SetupCrontab</div>
<div>+ echo Setup crontab.</div>
<div>Setup crontab.</div>
<div>+ set +e</div>
<div>+ crontab -r</div>
<div>no crontab for root</div>
<div>+ set -e</div>
<div>+ pwd</div>
<div>+ date +%F-%T</div>
<div>+ cat</div>
<div>+ crontab kdump.cron</div>
<div>+ echo Enable cron daemon by default.</div>
<div>Enable cron daemon by default.</div>
<div>+ [ -f /etc/init.d/crond ]</div>
<div>+ cron=cron</div>
<div>+ [ -x /sbin/chkconfig ]</div>
<div>+ [ -x /sbin/update-rc.d ]</div>
<div>+ ./setup.sh .././runkdump.conf</div>
<div>+ conf=.././runkdump.conf</div>
<div>+ uname -m</div>
<div>+ arch=x86_64</div>
<div>+ uname -r</div>
<div>+ kver=5.3.0-28-generic</div>
<div>+ . .././runkdump.conf</div>
<div>+ ITERATION=1</div>
<div>+ CRASH=0</div>
<div>+ REBOOT=0</div>
<div>+ uname -r</div>
<div>+ VMLINUX=/usr/lib/debug/lib/modules/5.3.0-28-generic/vmlinux</div>
<div>+ COREDIR=/var/crash</div>
<div>+ FILTER=0</div>
<div>+ MAKE_OPTIONS=</div>
<div>+ LINK_DELAY=</div>
<div>+ CRASHER=ACS ACP ACB ACE ACL</div>
<div>+ BASIC_LKDTM=KPIDB KPIEB KPTEE KPBL</div>
<div>+ EXTRA_LKDTM=</div>
<div>KPIDE KPIDL KPIDP KPIDO</div>
<div>KPIEE KPIEL KPIEP KPIEO</div>
<div>KPTEB KPTEL KPTEP KPTEO</div>
<div>KPBB KPBE KPBP KPBO</div>
<div>KPMSB KPMSE KPMSL KPMSP KPMSO</div>
<div>KPTB KPTE KPTL KPTP KPTO</div>
<div>KPSB KPSE KPSL KPSP KPSO</div>
<div>KPIB KPIE KPIL KPIP KPIO</div>
<div><br>
</div>
<div>+ EXTRA_DUMP=KLEXT KLLBL KLUID KLRAW KNSCP KNNFS KDENB</div>
<div>+ EXT3_PART=</div>
<div>+ EXT3_LABEL=</div>
<div>+ EXT3_UID=</div>
<div>+ RAW_PART=</div>
<div>+ SCP_PATH=</div>
<div>+ SCP_PASS=</div>
<div>+ NFS_PATH=</div>
<div>+ echo Verify Kernel version >= 2.6.16.</div>
<div>Verify Kernel version >= 2.6.16.</div>
<div>+ kx=5</div>
<div>+ tmp=3.0-28-generic</div>
<div>+ ky=3</div>
<div>+ tmp=0-28-generic</div>
<div>+ tmp=0-28-generic</div>
<div>+ kz=0</div>
<div>+ [ 5 -lt 2 ]</div>
<div>+ [ 5 -eq 2 ]</div>
<div>+ [ ]</div>
<div>+ echo Verify user is root.</div>
<div>Verify user is root.</div>
<div>+ id -u</div>
<div>+ [ 0 != 0 ]</div>
<div>+ echo Verify prerequisite.</div>
<div>Verify prerequisite.</div>
<div>+ [ ! -x /sbin/kexec ]</div>
<div>+ [ ! -d /lib/modules/5.3.0-28-generic/build ]</div>
<div>+ [ 0 ]</div>
<div>+ [ 0 -eq 1 ]</div>
<div>+ [ ]</div>
<div>+ echo Compile Kernel modules.</div>
<div>Compile Kernel modules.</div>
<div>+ make clean</div>
<div>make[1]: Entering directory '/home/test/ltp/testcases/kdump/lib'</div>
<div>make -C crasher clean</div>
<div>make[2]: Entering directory '/home/test/ltp/testcases/kdump/lib/crasher'</div>
<div>make -C /lib/modules/5.3.0-28-generic/build M=/home/test/ltp/testcases/kdump/lib/crasher clean</div>
<div>make[3]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div>make[3]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div>rm -f Module.symvers</div>
<div>make[2]: Leaving directory '/home/test/ltp/testcases/kdump/lib/crasher'</div>
<div>make -C lkdtm clean</div>
<div>make[2]: Entering directory '/home/test/ltp/testcases/kdump/lib/lkdtm'</div>
<div>make -C /lib/modules/5.3.0-28-generic/build M=/home/test/ltp/testcases/kdump/lib/lkdtm clean</div>
<div>make[3]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div>make[3]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div>rm -f Module.symvers</div>
<div>make[2]: Leaving directory '/home/test/ltp/testcases/kdump/lib/lkdtm'</div>
<div>make[1]: Leaving directory '/home/test/ltp/testcases/kdump/lib'</div>
<div>+ make -C kprobes</div>
<div>+ make</div>
<div>make[1]: Entering directory '/home/test/ltp/testcases/kdump/lib'</div>
<div>make -C crasher</div>
<div>make[2]: Entering directory '/home/test/ltp/testcases/kdump/lib/crasher'</div>
<div>make -C /lib/modules/5.3.0-28-generic/build M=/home/test/ltp/testcases/kdump/lib/crasher modules</div>
<div>make[3]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div> CC [M] /home/test/ltp/testcases/kdump/lib/crasher/crasher.o</div>
<div> Building modules, stage 2.</div>
<div> MODPOST 1 modules</div>
<div> CC /home/test/ltp/testcases/kdump/lib/crasher/crasher.mod.o</div>
<div> LD [M] /home/test/ltp/testcases/kdump/lib/crasher/crasher.ko</div>
<div>make[3]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div>make[2]: Leaving directory '/home/test/ltp/testcases/kdump/lib/crasher'</div>
<div>make -C lkdtm</div>
<div>make[2]: Entering directory '/home/test/ltp/testcases/kdump/lib/lkdtm'</div>
<div>make -C /lib/modules/5.3.0-28-generic/build M=/home/test/ltp/testcases/kdump/lib/lkdtm modules</div>
<div>make[3]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'</div>
<div> CC [M] /home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.o</div>
<div>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘jp_do_irq’:</div>
<div>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:139:2: error: implicit declaration of function ‘jprobe_return’; did you mean ‘probe_irq_on’? [-Werror=implicit-function-declaration]</div>
<div> jprobe_return();</div>
<div> ^~~~~~~~~~~~~</div>
<div> probe_irq_on</div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_lookup_name’:</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:295:10: error: invalid use of undefined type ‘struct jprobe’</b></div>
<div><b> *(lkdtm.kp.addr) = addr;</b></div>
<div><b> ^</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:8: error: invalid use of undefined type ‘struct jprobe’</b></div>
<div><b> lkdtm.entry = JPROBE_ENTRY(entry);</b></div>
<div> ^</div>
<div>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:17: error: implicit declaration of function ‘JPROBE_ENTRY’; did you mean ‘KPROBE_REENTER’? [-Werror=implicit-function-declaration]</div>
<div> lkdtm.entry = JPROBE_ENTRY(entry);</div>
<div> ^~~~~~~~~~~~</div>
<div> KPROBE_REENTER</div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_module_init’:</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:468:13: error: implicit declaration of function ‘register_jprobe’; did you mean ‘register_kprobe’? [-Werror=implicit-function-declaration]</b></div>
<div><b> if ((ret = register_jprobe(&lkdtm)) < 0) {</b></div>
<div> ^~~~~~~~~~~~~~~</div>
<div> <b> register_kprobe</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_module_exit’:</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:480:2: error: implicit declaration of function ‘unregister_jprobe’; did you mean ‘unregister_kprobe’? [-Werror=implicit-function-declaration]</b></div>
<div><b> unregister_jprobe(&lkdtm);</b></div>
<div><b> ^~~~~~~~~~~~~~~~~</b></div>
<div><b> unregister_kprobe</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: At top level:</b></div>
<div><b>/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:110:22: error: storage size of ‘lkdtm’ isn’t known</b></div>
<div><b> static struct jprobe lkdtm;</b></div>
<div><b> ^~~~~</b></div>
<div><b>cc1: some warnings being treated as errors</b></div>
<div><b>scripts/Makefile.build:288: recipe for target '/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.o' failed</b></div>
<div><b>make[4]: *** [/home/test/ltp/testcases/kdump/lib/lkdtm/lkdtm.o] Error 1</b></div>
<div><b>Makefile:1655: recipe for target '_module_/home/test/ltp/testcases/kdump/lib/lkdtm' failed</b></div>
<div><b>make[3]: *** [_module_/home/test/ltp/testcases/kdump/lib/lkdtm] Error 2</b></div>
<div><b>make[3]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'</b></div>
<div><b>Makefile:11: recipe for target 'default' failed</b></div>
<div><b>make[2]: *** [default] Error 2</b></div>
<div><b>make[2]: Leaving directory '/home/test/ltp/testcases/kdump/lib/lkdtm'</b></div>
<div><b>Makefile:2: recipe for target 'default' failed</b></div>
<div><b>make[1]: *** [default] Error 2</b></div>
<div><b>make[1]: Leaving directory '/home/test/ltp/testcases/kdump/lib'</b></div>
<div><b>Makefile:2: recipe for target 'all' failed</b></div>
<div><b>make: *** [all] Error 2</b></div>
<div><b><br>
</b></div>
<div><br>
</div>
<div>Thanks<b><br>
</b></div>
<br>
</div>
</body>
</html>