<HTML><BODY>
<div>Hi,<br>
<br>
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!!<br>
<br>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">make -C
drbd drbd_buildtag.c<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

cp ../drbd/drbd_buildtag.c drbd_buildtag.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbd_buildtag.o
drbd_buildtag.c<br>

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<br>

gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o<br>

gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

make[1]: Nothing to be done for `all'.<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation'<br>

To (re)make the documentation: make doc<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation'</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Userland tools build was successful.<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd'</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;
Calling toplevel makefile of kernel source tree, which I believe is in<br>

&nbsp;&nbsp;&nbsp; KDIR=/lib/modules/2.6.20.7/build</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">test -f
../scripts/adjust_drbd_config_h.sh &amp;&amp; \<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KDIR=/lib/modules/2.6.20.7/build
O= /bin/bash ../scripts/adjust_drbd_config_h.sh<br>

/lib/modules/2.6.20.7/build ~/backup/Nbuild/drbd-8.0.3/drbd<br>

~/backup/Nbuild/drbd-8.0.3/drbd</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;
Using unmodified drbd_config.h</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">make -C
/lib/modules/2.6.20.7/build SUBDIRS=/root/backup/Nbuild/drbd-8.0.3/drbd&nbsp;
modules<br>

make[2]: Entering directory `/root/backup/Nbuild/linux-2.6.20.7'<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_buildtag.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_bitmap.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_proc.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_worker.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_receiver.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.o<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c: In function
âdrbd_make_request_26â:<br>

/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â<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_actlog.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/lru_cache.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_main.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_strings.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_nl.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/connector.o<br>

/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"<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:34:2: error: #error
"enable CONFIG_CONNECTOR in your kernel and try again"<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c: In function
âcn_call_callbackâ:<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:175: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:177: error: incompatible types
in assignment<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:178: error: âstruct
work_structâ has no member named âtimerâ<br>

make[3]: *** [/root/backup/Nbuild/drbd-8.0.3/drbd/connector.o] Error 1<br>

make[2]: *** [_module_/root/backup/Nbuild/drbd-8.0.3/drbd] Error 2<br>

make[2]: Leaving directory `/root/backup/Nbuild/linux-2.6.20.7'<br>

make[1]: *** [kbuild] Error 2<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make: *** [module] Error 2<br>

[root@localhost drbd-8.0.3]# ls<br>

benchmark&nbsp; COPYING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd.out&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL&nbsp;&nbsp; README&nbsp;&nbsp;
scripts&nbsp; tools<br>

ChangeLog&nbsp; documentation&nbsp; drbd_config.h&nbsp; drbd.spec.in&nbsp;
Makefile&nbsp; ROADMAP&nbsp; testing&nbsp; user<br>

[root@localhost drbd-8.0.3]# ls<br>

benchmark&nbsp; COPYING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd.out&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL&nbsp;&nbsp; README&nbsp;&nbsp;
scripts&nbsp; tools<br>

ChangeLog&nbsp; documentation&nbsp; drbd_config.h&nbsp; drbd.spec.in&nbsp;
Makefile&nbsp; ROADMAP&nbsp; testing&nbsp; user<br>

[root@localhost drbd-8.0.3]# ls<br>

benchmark&nbsp; COPYING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
drbd.out&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL&nbsp;&nbsp; README&nbsp;&nbsp;
scripts&nbsp; tools<br>

ChangeLog&nbsp; documentation&nbsp; drbd_config.h&nbsp; drbd.spec.in&nbsp;
Makefile&nbsp; ROADMAP&nbsp; testing&nbsp; user<br>

[root@localhost drbd-8.0.3]# vi README<br>

[root@localhost drbd-8.0.3]#<br>

[root@localhost drbd-8.0.3]#<br>

[root@localhost drbd-8.0.3]# make clean<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

rm -f drbdadm_scanner.c drbdmeta_scanner.c<br>

rm -f drbdsetup drbdadm drbdmeta *.o<br>

rm -f drbd_buildtag.c drbd_strings.c<br>

rm -f *~<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

rm -f *~<br>

rm -f datadisk<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation'<br>

To clean the documentation: make doc-clean<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

rm -rf .tmp_versions<br>

rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

rm -f *~<br>

rm -rf dist<br>

[root@localhost drbd-8.0.3]# make<br>

make -C drbd drbd_buildtag.c<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

flex -s -odrbdadm_scanner.c drbdadm_scanner.fl<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdadm_scanner.o
drbdadm_scanner.c<br>

drbdadm_scanner.fl:21: warning: âyyunputâ declared âstaticâ but never defined<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdadm_parser.o
drbdadm_parser.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdadm_main.o
drbdadm_main.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdadm_adjust.o
drbdadm_adjust.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdtool_common.o
drbdtool_common.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbdadm_usage_cnt.o
drbdadm_usage_cnt.c<br>

cp ../drbd/drbd_buildtag.c drbd_buildtag.c<br>

gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbd_buildtag.o
drbd_buildtag.c<br>

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<br>

gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing&nbsp;&nbsp; -c -o
drbdmeta.o drbdmeta.c<br>

drbdmeta.c: In function âmd_initialize_commonâ:<br>

drbdmeta.c:1349: warning: format â%uâ expects type âunsigned intâ, but argument
3 has type âsize_tâ<br>

flex -odrbdmeta_scanner.c drbdmeta_scanner.fl<br>

gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing&nbsp;&nbsp; -c -o
drbdmeta_scanner.o drbdmeta_scanner.c<br>

drbdmeta_scanner.fl:11: warning: âyyunputâ declared âstaticâ but never defined<br>

gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o<br>

gcc -g -O2 -c -W -Wall -I../drbd -I/lib/modules/2.6.18-1.2798.fc6/build/include
-fno-strict-aliasing&nbsp;&nbsp; -c -o drbdsetup.o drbdsetup.c<br>

cp ../drbd/drbd_strings.c drbd_strings.c<br>

gcc -g -O2 -c -W -Wall -I../drbd -I/lib/modules/2.6.18-1.2798.fc6/build/include
-fno-strict-aliasing&nbsp;&nbsp; -c -o drbd_strings.o drbd_strings.c<br>

gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/user'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

make[1]: Nothing to be done for `all'.<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/scripts'<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/documentation'<br>

To (re)make the documentation: make doc<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/documentation'</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Userland tools build was successful.<br>

make[1]: Entering directory `/root/backup/Nbuild/drbd-8.0.3/drbd'</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;
Calling toplevel makefile of kernel source tree, which I believe is in<br>

&nbsp;&nbsp;&nbsp; KDIR=/lib/modules/2.6.20.7/build</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">test -f
../scripts/adjust_drbd_config_h.sh &amp;&amp; \<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
KDIR=/lib/modules/2.6.20.7/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh<br>

/lib/modules/2.6.20.7/build ~/backup/Nbuild/drbd-8.0.3/drbd<br>

~/backup/Nbuild/drbd-8.0.3/drbd</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">&nbsp;
Using unmodified drbd_config.h</span><o:p></o:p></div>



<div class="MsoNormal">&nbsp;<o:p></o:p></div>



<div class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">make -C
/lib/modules/2.6.20.7/build SUBDIRS=/root/backup/Nbuild/drbd-8.0.3/drbd&nbsp;
modules<br>

make[2]: Entering directory `/root/backup/Nbuild/linux-2.6.20.7'<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_buildtag.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_bitmap.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_proc.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_worker.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_receiver.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.o<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/drbd_req.c: In function âdrbd_make_request_26â:<br>

/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â<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_actlog.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/lru_cache.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_main.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_strings.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/drbd_nl.o<br>

&nbsp; CC [M]&nbsp; /root/backup/Nbuild/drbd-8.0.3/drbd/connector.o<br>

/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"<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:34:2: error: #error
"enable CONFIG_CONNECTOR in your kernel and try again"<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c: In function
âcn_call_callbackâ:<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:149: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:175: error: âstruct
work_structâ has no member named âpendingâ<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:177: error: incompatible types
in assignment<br>

/root/backup/Nbuild/drbd-8.0.3/drbd/connector.c:178: error: âstruct
work_structâ has no member named âtimerâ<br>

make[3]: *** [/root/backup/Nbuild/drbd-8.0.3/drbd/connector.o] Error 1<br>

make[2]: *** [_module_/root/backup/Nbuild/drbd-8.0.3/drbd] Error 2<br>

make[2]: Leaving directory `/root/backup/Nbuild/linux-2.6.20.7'<br>

make[1]: *** [kbuild] Error 2<br>

make[1]: Leaving directory `/root/backup/Nbuild/drbd-8.0.3/drbd'<br>

make: *** [module] Error 2<br>

[root@localhost drbd-8.0.3]#</span><o:p></o:p></div>


<br>
</div>

<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone.  Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>

</BODY></HTML>