[DRBD-user] drbd tools make error

Mike Hall mhall at montana.edu
Fri Sep 26 22:35:17 CEST 2008

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


I am running into problems building drbd-8.2.6 on RHEL WS 4 with kernel
2.6.9-78.ELsmp (latest for this release).  The module builds fine, but
drbdsetup errors out on the make with this error:


[root at webatemp drbd-8.2.6]# make tools
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/usr/local/src/drbd-8.2.6/drbd'
make[1]: Leaving directory `/usr/local/src/drbd-8.2.6/drbd'
make[1]: Entering directory `/usr/local/src/drbd-8.2.6/user'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
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.ELsmp/build/include -fno-strict-aliasing   -c -o
drbdsetup.o drbdsetup.c
In file included
from /lib/modules/2.6.9-78.ELsmp/build/include/linux/netlink.h:5,
                 from drbdsetup.c:48:
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:158: error:
syntax error before "__sum16"
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:158: warning:
type defaults to `int' in declaration of `__sum16'
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:158: warning:
data definition has no type or storage class
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:159: error:
syntax error before "__wsum"
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:159: warning:
type defaults to `int' in declaration of `__wsum'
/lib/modules/2.6.9-78.ELsmp/build/include/linux/types.h:159: warning:
data definition has no type or storage class
make[1]: *** [drbdsetup.o] Error 1

Does anyone know of a fix for this?  I have tried a couple different
releases with the same result.  Any insight would be appreciated.






More information about the drbd-user mailing list