[DRBD-user] compilation of drbd-9.0.25 fails on Suse Enterprise SP15 SP2
Rob van der Wal
rob.vanderwal at surf.nl
Fri Nov 13 08:22:57 CET 2020
Hi,
I'm getting:
make
Need a git checkout to regenerate drbd/.drbd_git_revision
make[1]: Entering directory '/home/drbdusr/drbd-9.0.25-1/drbd'
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/lib/modules/5.3.18-24.37-default/build
make -C /lib/modules/5.3.18-24.37-default/build
M=/home/drbdusr/drbd-9.0.25-1/drbd modules
./drbd-kernel-compat/gen_compat_patch.sh: line 12: spatch: command not found
./drbd-kernel-compat/gen_compat_patch.sh: line 45: hash: spatch: not found
INFO: no suitable spatch found; trying spatch-as-a-service;
be patient, may take up to 10 minutes
if it is in the server side cache it might only take a second
SPAAS a860663d2978c043246e0fc8d860911d
Successfully connected to SPAAS ('d35a4b17210dab1336de2725b997f300e9acd297')
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8431 100 3600 0 4831 70588 94725 --:--:-- --:--:--
--:--:-- 161k
You can create a new .tgz including this pre-computed compat patch
by calling "make unpatch ; echo
drbd-9.0.25-1/drbd/drbd-kernel-compat/cocci_cache/a860663d2978c043246e0fc8d860911d/compat.patch
>>.filelist ; make tgz"
PATCH
patching file ./drbd_int.h
patching file drbd_sender.c
patching file drbd_main.c
patching file drbd_debugfs.c
patching file drbd_req.c
patching file drbd_receiver.c
CC [M] /home/drbdusr/drbd-9.0.25-1/drbd/drbd_dax_pmem.o
In file included from
/usr/src/linux-5.3.18-24.37/include/uapi/linux/posix_types.h:5:0,
from
/usr/src/linux-5.3.18-24.37/include/uapi/linux/types.h:14,
from
/usr/src/linux-5.3.18-24.37/include/linux/compiler.h:180,
from
/usr/src/linux-5.3.18-24.37/include/linux/export.h:45,
from
/usr/src/linux-5.3.18-24.37/include/linux/linkage.h:7,
from
/usr/src/linux-5.3.18-24.37/include/linux/preempt.h:10,
from
/usr/src/linux-5.3.18-24.37/include/linux/spinlock.h:51,
from
/usr/src/linux-5.3.18-24.37/include/linux/vmalloc.h:5,
from /home/drbdusr/drbd-9.0.25-1/drbd/drbd_dax_pmem.c:22:
/usr/src/linux-5.3.18-24.37/include/linux/stddef.h:8:14: error: expected
declaration specifiers or ‘...’ before ‘(’ token
#define NULL ((void *)0)
^
/usr/src/linux-5.3.18-24.37/include/linux/proc_fs.h:42:52: note: in
expansion of macro ‘NULL’
proc_create_single_data(name, mode, parent, show, NULL)
^~~~
/home/drbdusr/drbd-9.0.25-1/drbd/drbd-kernel-compat/drbd_wrappers.h:493:31:
note: in expansion of macro ‘proc_create_single’
extern struct proc_dir_entry *proc_create_single(const char *name,
umode_t mode,
^~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/src/linux-5.3.18-24.37/scripts/Makefile.build:282:
/home/drbdusr/drbd-9.0.25-1/drbd/drbd_dax_pmem.o] Error 1
make[3]: *** [/usr/src/linux-5.3.18-24.37/Makefile:1650:
_module_/home/drbdusr/drbd-9.0.25-1/drbd] Error 2
make[2]: *** [../../../linux-5.3.18-24.37/Makefile:179: sub-make] Error 2
make[1]: *** [Makefile:132: kbuild] Error 2
make[1]: Leaving directory '/home/drbdusr/drbd-9.0.25-1/drbd'
make: *** [Makefile:135: module] Error 2
Any ideas how to solve this issue? With kernel 5.3.18-24.34 compilation
is correct.
Regards,
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4249 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20201113/1d4aff46/attachment.bin>
More information about the drbd-user
mailing list