[DRBD-user] DRBD 8.3.7 & openvz kernel-mod compile issues (centos 5)

brent at jeneral.com brent at jeneral.com
Wed Feb 17 00:50:21 CET 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.



I cannot compile the kernel module using openvz
(2.6.18-164.10.1.el5.028stab067.4). Has anyone successfully compile 8.3.7
in openvz? 

I've tried it many ways to build the km rpm (userland works
fine), defining both the kernel version and kdir. This also works just fine
on the stock centos 5 kernel. Any suggestions? 

I get the following: 

...


config.status: creating user/config.h
+ echo
kernelversion=2.6.18-164.10.1.el5.028stab067.4
kernelversion=2.6.18-164.10.1.el5.028stab067.4
+
echo 'kversion=%{kversion}'
kversion=%{kversion}
+ echo
krelver=2.6.18_164.10.1.el5.028stab067.4
krelver=2.6.18_164.10.1.el5.028stab067.4
+
make -j4 module
KDIR=/lib/modules/2.6.18-164.10.1.el5.028stab067.4/build/
make[1]: Entering
directory `/usr/src/redhat/BUILD/drbd-8.3.7/drbd'

 Calling toplevel
makefile of kernel source tree, which I believe is in

KDIR=/lib/modules/2.6.18-164.10.1.el5.028stab067.4/build/

test -f
../scripts/adjust_drbd_config_h.sh && 

KDIR=/lib/modules/2.6.18-164.10.1.el5.028stab067.4/build/ O= /bin/bash
../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.18-164.10.1.el5.028stab067.4/build
/usr/src/redhat/BUILD/drbd-8.3.7/drbd
/usr/src/redhat/BUILD/drbd-8.3.7/drbd


Using unmodified drbd_config.h

make -C
/lib/modules/2.6.18-164.10.1.el5.028stab067.4/build/
SUBDIRS=/usr/src/redhat/BUILD/drbd-8.3.7/drbd modules
make[2]: Entering
directory `/usr/src/kernels/2.6.18-164.10.1.el5.028stab067.4-x86_64'
 CC
[M] /usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_buildtag.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_bitmap.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_proc.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_worker.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_req.o
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.c:
In function
'drbd_crypto_alloc_digest_safe':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.c:2734:
warning: passing argument 1 of 'crypto_alloc_hash' discards qualifiers from
pointer target type
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.c:
In function
'vli_decode_bits':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_vli.h:164:
warning: control reaches end of non-void function
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_actlog.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/lru_cache.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.o
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_strings.o
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:51:24:
error: linux/swab.h: No such file or
directory
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.c: In
function
'receive_bitmap':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_receiver.c:3305:
warning: 'rl' may be used uninitialized in this function
 CC [M]
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_nl.o
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:
In function
'drbd_new_device':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3211:
warning: assignment discards qualifiers from pointer target
type
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c: In function
'drbd_free_sock':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3387:
error: implicit declaration of function
'kernel_sock_shutdown'
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3387:
error: 'SHUT_RDWR' undeclared (first use in this
function)
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3387: error:
(Each undeclared identifier is reported only
once
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3387: error: for
each function it appears
in.)
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c: In function
'_drbd_fault_random':
/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.c:3868:
error: implicit declaration of function 'swahw32'
make[3]: ***
[/usr/src/redhat/BUILD/drbd-8.3.7/drbd/drbd_main.o] Error 1
make[3]: ***
Waiting for unfinished jobs....
make[2]: ***
[_module_/usr/src/redhat/BUILD/drbd-8.3.7/drbd] Error 2
make[2]: Leaving
directory
`/usr/src/kernels/2.6.18-164.10.1.el5.028stab067.4-x86_64'
make[1]: ***
[kbuild] Error 2
make[1]: Leaving directory
`/usr/src/redhat/BUILD/drbd-8.3.7/drbd'
make: *** [module] Error 2
error:
Bad exit status from /var/tmp/rpm-tmp.38315 (%build)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.38315 (%build) 

I have:


ovzkernel-2.6.18-164.10.1.el5.028stab067.4
ovzkernel-devel-2.6.18-164.10.1.el5.028stab067.4
kernel-headers-2.6.18-164.10.1.el5
kernel-devel-2.6.18-164.10.1.el5

Thanks,


Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100216/87ce8f5d/attachment.htm>


More information about the drbd-user mailing list