Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Mike, Please note that I opened the file types.h and simply commented out lines 158 and 159, /*typedef __u16 __bitwise __sum16; typedef __u32 __bitwise __wsum;*/ Then I was able to complete the build. **************************************************************************** ********************** Roger Moore, P. Eng. Software Developer Direct: (403) 538-8989 Office: (403) 262-5780 Fax: (403) 262-8632 Email: <mailto:rmoore at gedco.com> rmoore at gedco.com GEDCO 1200, 815-8th Avenue S.W. Calgary, AB T2P 3P2 Canada <http://www.gedco.com/> www.GEDCO.com EMAIL DISCLAIMER This e-mail communication is confidential. If you are not the intended recipient, please notify me at the telephone number shown above or by return e-mail and delete this communication and any copy. Thank you. [DRBD-user] drbd tools make error Mike Hall mhall at montana.edu <mailto:drbd-user%40lists.linbit.com?Subject=%5BDRBD-user%5D%20drbd%20tools% 20make%20error&In-Reply-To=> Fri Sep 26 22:35:17 CEST 2008 * Previous message: [DRBD-user] <http://lists.linbit.com/pipermail/drbd-user/2008-September/010437.html> drbd+lvm sizing and performance * Next message: [DRBD-user] <http://lists.linbit.com/pipermail/drbd-user/2008-September/010439.html> transmission protocol / change without shutting down the disks * Messages sorted by: [ <http://lists.linbit.com/pipermail/drbd-user/2008-September/date.html#10438> date ] [ <http://lists.linbit.com/pipermail/drbd-user/2008-September/thread.html#1043 8> thread ] [ <http://lists.linbit.com/pipermail/drbd-user/2008-September/subject.html#104 38> subject ] [ <http://lists.linbit.com/pipermail/drbd-user/2008-September/author.html#1043 8> author ] _____ 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 <http://lists.linbit.com/mailman/listinfo/drbd-user> 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090227/1e685b31/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 5527 bytes Desc: not available URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090227/1e685b31/attachment.jpeg>