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 am trying to compile DRBD 8.0.3 into Linux 2.6.20.7 kernel in 64-bit and running into some issue. The dump appears below. Any help would be greatly appreciated. Thank you!! make -C drbd drbd_buildtag.c make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/user' 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 -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation' To (re)make the documentation: make doc make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation' Userland tools build was successful. make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/lib/modules/2.6.20.7/build test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/lib/modules/2.6.20.7/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh /lib/modules/2.6.20.7/build ~/backup/Nbuild/drbd-8.0.3/drbd ~/backup/Nbuild/drbd-8.0.3/drbd Using unmodified drbd_config.h make -C /lib/modules/2.6.20.7/build SUBDIRS=/root/backup/Nbuild/drbd-8.0.3/drbd modules make[2]: Entering directory `/root/backup/Nbuild/linux-2.6.20.7' CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_buildtag.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_bitmap.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_proc.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_worker.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_receiver.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.o /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c: In function âdrbd_make_request_26â: /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c:1100: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 6 has type âsector_tâ CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_actlog.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/lru_cache.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_main.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_strings.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_nl.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/connector.o /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:33:2: error: #error "drbd backported connector.c compiled against kernel connector.h will not work" /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:34:2: error: #error "enable CONFIG_CONNECTOR in your kernel and try again" /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c: In function âcn_call_callbackâ: /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:175: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:177: error: incompatible types in assignment /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:178: error: âstruct work_structâ has no member named âtimerâ make[3]: *** [/root/backup/Nbuild/drbd-8.0.3/drbd/connector.o] Error 1 make[2]: *** [_module_/root/backup/Nbuild/drbd-8.0.3/drbd] Error 2 make[2]: Leaving directory `/root/backup/Nbuild/linux-2.6.20.7' make[1]: *** [kbuild] Error 2 make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make: *** [module] Error 2 [root at localhost drbd-8.0.3]# ls benchmark COPYING drbd drbd.out INSTALL README scripts tools ChangeLog documentation drbd_config.h drbd.spec.in Makefile ROADMAP testing user [root at localhost drbd-8.0.3]# ls benchmark COPYING drbd drbd.out INSTALL README scripts tools ChangeLog documentation drbd_config.h drbd.spec.in Makefile ROADMAP testing user [root at localhost drbd-8.0.3]# ls benchmark COPYING drbd drbd.out INSTALL README scripts tools ChangeLog documentation drbd_config.h drbd.spec.in Makefile ROADMAP testing user [root at localhost drbd-8.0.3]# vi README [root at localhost drbd-8.0.3]# [root at localhost drbd-8.0.3]# [root at localhost drbd-8.0.3]# make clean make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/user' rm -f drbdadm_scanner.c drbdmeta_scanner.c rm -f drbdsetup drbdadm drbdmeta *.o rm -f drbd_buildtag.c drbd_strings.c rm -f *~ make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts' rm -f *~ rm -f datadisk make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation' To clean the documentation: make doc-clean make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd' rm -rf .tmp_versions rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel* make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd' rm -f *~ rm -rf dist [root at localhost drbd-8.0.3]# make make -C drbd drbd_buildtag.c make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/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 drbdmeta.c: In function âmd_initialize_commonâ: drbdmeta.c:1349: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âsize_tâ flex -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.fl:11: 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.18-1.2798.fc6/build/include -fno-strict-aliasing -c -o drbdsetup.o drbdsetup.c cp ../drbd/drbd_strings.c drbd_strings.c gcc -g -O2 -c -W -Wall -I../drbd -I/lib/modules/2.6.18-1.2798.fc6/build/include -fno-strict-aliasing -c -o drbd_strings.o drbd_strings.c gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts' make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation' To (re)make the documentation: make doc make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation' Userland tools build was successful. make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/lib/modules/2.6.20.7/build test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/lib/modules/2.6.20.7/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh /lib/modules/2.6.20.7/build ~/backup/Nbuild/drbd-8.0.3/drbd ~/backup/Nbuild/drbd-8.0.3/drbd Using unmodified drbd_config.h make -C /lib/modules/2.6.20.7/build SUBDIRS=/root/backup/Nbuild/drbd-8.0.3/drbd modules make[2]: Entering directory `/root/backup/Nbuild/linux-2.6.20.7' CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_buildtag.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_bitmap.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_proc.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_worker.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_receiver.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.o /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c: In function âdrbd_make_request_26â: /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c:1100: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 6 has type âsector_tâ CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_actlog.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/lru_cache.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_main.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_strings.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_nl.o CC [M] /root/backup/Nbuild/drbd-8.0.3/drbd/connector.o /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:33:2: error: #error "drbd backported connector.c compiled against kernel connector.h will not work" /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:34:2: error: #error "enable CONFIG_CONNECTOR in your kernel and try again" /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c: In function âcn_call_callbackâ: /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:175: error: âstruct work_structâ has no member named âpendingâ /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:177: error: incompatible types in assignment /root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:178: error: âstruct work_structâ has no member named âtimerâ make[3]: *** [/root/backup/Nbuild/drbd-8.0.3/drbd/connector.o] Error 1 make[2]: *** [_module_/root/backup/Nbuild/drbd-8.0.3/drbd] Error 2 make[2]: Leaving directory `/root/backup/Nbuild/linux-2.6.20.7' make[1]: *** [kbuild] Error 2 make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd' make: *** [module] Error 2 [root at localhost drbd-8.0.3]# ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20070516/7aa08560/attachment.htm>