Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi, I'm trying to compile drbd 0.8.4 with the latest kernel errata released from Red Hat. I'm using Scientific Linux 4.6 (RHEL 4 U6) and get the problem below: > ... > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_scanner.o drbdadm_scanner.c > drbdadm_scanner.fl:21: warning: 'yyunput' declared `static' but never defined > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_parser.o drbdadm_parser.c > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_adjust.o drbdadm_adjust.c > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdtool_common.o drbdtool_common.c > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c > cp ../drbd/drbd_buildtag.c drbd_buildtag.c > gcc -g -O2 -c -W -Wall -I../drbd -c -o drbd_buildtag.o drbd_buildtag.c > gcc -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o > drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o > gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing -c -o drbdmeta.o > drbdmeta.c > flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl > gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing -c -o > drbdmeta_scanner.o drbdmeta_scanner.c > drbdmeta_scanner.c: In function `yylex': > drbdmeta_scanner.c:850: warning: label `find_rule' defined but not used > drbdmeta_scanner.fl: At top level: > drbdmeta_scanner.c:1848: warning: 'yy_flex_realloc' defined but not used > drbdmeta_scanner.fl:13: warning: 'yyunput' declared `static' but never defined > gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o > gcc -g -O2 -c -W -Wall -I../drbd -I/lib/modules/2.6.9- 78.0.1.EL/build/include > -fno-strict-aliasing -c -o drbdsetup.o drbdsetup.c > In file included from > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/netlink.h:5, > from drbdsetup.c:48: > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:158: error: syntax > error before "__sum16" > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:158: warning: type > defaults to `int' in declaration of `__sum16' > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:158: warning: data > definition has no type or storage class > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:159: error: syntax > error before "__wsum" > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:159: warning: type > defaults to `int' in declaration of `__wsum' > /lib/modules/2.6.9-78.0.1.EL/build/include/linux/types.h:159: warning: data > definition has no type or storage class > make[1]: *** [drbdsetup.o] Error 1 > make[1]: Leaving directory `/usr/src/cluster/drbd-8.2.4/user' > make: *** [tools] Error 2 So I still have to stick to the kernel-2.6.9-67.0.22.EL kernel (which compiles drbd 0.8.4 fine). Any ideas how I can fix this? Thanks. Michael.