Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Thanks to Lars for pointing out some obvious issues with kernel
compilations I am now trying to compile DRBD .7.2 on my redhat 9 system
running kernel 2.4.20.31.9smp
When I try to make, I get the following:
[root at rome1 drbd]# make KDIR=/lib/modules/2.4.20-31.9smp/build/
Calling toplevel makefile of kernel source tree, which I believe is
in
KDIR=/lib/modules/2.4.20-31.9smp/build/
trying to make dep ...
/usr/src/linux-2.4.20-31.9/include/linux/modversions.h was not updated
make -C /lib/modules/2.4.20-31.9smp/build/
SUBDIRS=/var/src/drbd-0.7.2/drbd modules
make[1]: Entering directory `/usr/src/linux-2.4.20-31.9'
make -r -f tmp_include_depends all
make[2]: Entering directory `/usr/src/linux-2.4.20-31.9'
make[2]: Circular /usr/src/linux-2.4.20-31.9/include/asm/smplock.h <-
/usr/src/linux-2.4.20-31.9/include/linux/interrupt.h dependency dropped.
make[2]: Circular
/usr/src/linux-2.4.20-31.9/include/linux/netfilter_ipv4/ip_conntrack_hel
per.h <-
/usr/src/linux-2.4.20-31.9/include/linux/netfilter_ipv4/ip_conntrack.h
dependency dropped.
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-31.9'
make -C /var/src/drbd-0.7.2/drbd CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.20-31.9/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.20-31.9/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[2]: Entering directory `/var/src/drbd-0.7.2/drbd'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-31.9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-31.9/include/linux/modversions.h
-I/var/src/drbd-0.7.2/drbd -nostdinc -iwithprefix include
-DKBUILD_BASENAME=drbd_buildtag -c -o drbd_buildtag.o drbd_buildtag.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-31.9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-31.9/include/linux/modversions.h
-I/var/src/drbd-0.7.2/drbd -nostdinc -iwithprefix include
-DKBUILD_BASENAME=drbd_bitmap -c -o drbd_bitmap.o drbd_bitmap.c
In file included from drbd_int.h:237,
from drbd_bitmap.c:34:
drbd_compat_types.h:62: conflicting types for `find_first_bit'
/usr/src/linux-2.4.20-31.9/include/asm/bitops.h:304: previous
declaration of `find_first_bit'
drbd_compat_types.h:89: conflicting types for `find_next_bit'
/usr/src/linux-2.4.20-31.9/include/asm/bitops.h:363: previous
declaration of `find_next_bit'
make[2]: *** [drbd_bitmap.o] Error 1
make[2]: Leaving directory `/var/src/drbd-0.7.2/drbd'
make[1]: *** [_mod_/var/src/drbd-0.7.2/drbd] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-31.9'
make: *** [kbuild] Error 2
It seems that there is a conflict, but I am at a loss as to how to fix
this. Does anyone know what the solution could be?
Thanks,
Dan