<br><font size=2><tt>On a machine which is currently running drbd-8.3.0
I<br>
downloaded and attempted to compile drbd-8.3.1rc1.</tt></font>
<br>
<br><font size=2><tt>The machine is a HP Proliant DL380G4 running the latest
RHEL5.<br>
</tt></font>
<br><font size=2><tt>Previously I had compiled drbd-8.3.0 successfully.<br>
</tt></font>
<br><font size=2><tt>So far I've :<br>
- attempted a "make clean all"(see I below) which resulted in</tt></font>
<br><font size=2><tt>yypush_buffer_state and yypop_buffer_state errors.<br>
- we have the latest rhel5 flex pkg : flex-2.5.4a-41.fc6<br>
- downloaded and installed latest flex flex-2.5.35.tar.gz</tt></font>
<br>
<br><font size=2><tt>- after upgrading flex we now get the errors as given
in II below.<br>
</tt></font>
<br>
<br><font size=2><tt>Next ?<br>
</tt></font>
<br><font size=2><tt>Thanks<br>
</tt></font>
<br>
<br><font size=2><tt>I. make clean all : before flex upgraded.<br>
</tt></font>
<br>
<br><font size=2><tt>[root@hatest1 drbd-8.3.1rc1]# make clean all<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
rm -f drbdadm_scanner.c drbdmeta_scanner.c<br>
rm -f drbdsetup drbdadm drbdmeta drbdmeta_unfinished_rewrite *.o<br>
rm -f drbd_buildtag.c drbd_strings.c<br>
rm -f *~<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
rm -f *~<br>
rm -f datadisk<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
To clean the documentation: make doc-clean<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
rm -rf .tmp_versions<br>
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
rm -f *~<br>
rm -rf dist<br>
make -C drbd drbd_buildtag.c<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_scanner.o drbdadm_scanner.c<br>
drbdadm_scanner.fl: In function ‘my_yypush_buffer_state’:<br>
drbdadm_scanner.fl:168: warning: implicit declaration of function ‘yypush_buffer_state’<br>
drbdadm_scanner.fl: At top level:<br>
drbdadm_scanner.fl:23: warning: ‘yyunput’ declared ‘static’
but never defined<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_parser.o drbdadm_parser.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_adjust.o drbdadm_adjust.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdtool_common.o drbdtool_common.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -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 -c -o drbd_buildtag.o drbd_buildtag.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_minor_table.o drbdadm_minor_table.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 drbdadm_minor_table.o<br>
drbdadm_scanner.o: In function `my_yypush_buffer_state':<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/user/drbdadm_scanner.fl:168: undefined
reference to `yypush_buffer_state'<br>
drbdadm_parser.o: In function `include_file':<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/user/drbdadm_parser.c:1155: undefined
reference to `yypop_buffer_state'<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [drbdadm] Error 1<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
make: *** [tools] Error 2<br>
[root@hatest1 drbd-8.3.1rc1]#<br>
</tt></font>
<br>
<br>
<br>
<br><font size=2><tt>II. make clean all : after flex upgraded.<br>
</tt></font>
<br><font size=2><tt>root@hatest1 drbd-8.3.1rc1]# make clean all<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
rm -f drbdadm_scanner.c drbdmeta_scanner.c<br>
rm -f drbdsetup drbdadm drbdmeta drbdmeta_unfinished_rewrite *.o<br>
rm -f drbd_buildtag.c drbd_strings.c<br>
rm -f *~<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
rm -f *~<br>
rm -f datadisk<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
To clean the documentation: make doc-clean<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
rm -rf .tmp_versions<br>
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
rm -f *~<br>
rm -rf dist<br>
make -C drbd drbd_buildtag.c<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_scanner.o drbdadm_scanner.c<br>
drbdadm_scanner.c: In function ‘yy_get_next_buffer’:<br>
drbdadm_scanner.c:2931: warning: comparison between signed and unsigned<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_parser.o drbdadm_parser.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_adjust.o drbdadm_adjust.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdtool_common.o drbdtool_common.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -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 -c -o drbd_buildtag.o drbd_buildtag.c<br>
gcc -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_minor_table.o drbdadm_minor_table.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 drbdadm_minor_table.o<br>
gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing -c -o drbdmeta.o
drbdmeta.c<br>
flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl<br>
gcc -g -O2 -c -W -Wall -I../drbd -fno-strict-aliasing -c -o drbdmeta_scanner.o
drbdmeta_scanner.c<br>
drbdmeta_scanner.c: In function ‘yy_get_next_buffer’:<br>
drbdmeta_scanner.c:1319: warning: comparison between signed and unsigned<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-128.1.1.el5/build/include
-fno-strict-aliasing -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-128.1.1.el5/build/include
-fno-strict-aliasing -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 `/home/davidl/source/drbd/drbd-8.3.1rc1/user'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts'<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
To (re)make the documentation: make doc<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation'<br>
</tt></font>
<br><font size=2><tt>Userland tools build was successful.<br>
make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
</tt></font>
<br><font size=2><tt>Calling toplevel makefile of kernel source tree, which
I believe is in<br>
KDIR=/lib/modules/2.6.18-128.1.1.el5/build</tt></font>
<br>
<br><font size=2><tt>test -f ../scripts/adjust_drbd_config_h.sh &&
\<br>
KDIR=/lib/modules/2.6.18-128.1.1.el5/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh</tt></font>
<br><font size=2><tt>/lib/modules/2.6.18-128.1.1.el5/build /home/davidl/source/drbd/drbd-8.3.1rc1/drbd<br>
make[3]: /usr/src/kernels/2.6.18-128.1.1.el5-i686/Documentation/DocBook/Makefile:
No such file or directory<br>
make[3]: *** No rule to make target `/usr/src/kernels/2.6.18-128.1.1.el5-i686/Documentation/DocBook/Makefile'.
Stop.<br>
make[2]: *** [help] Error 2<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/drbd<br>
</tt></font>
<br><font size=2><tt>Using unmodified drbd_config.h<br>
</tt></font>
<br><font size=2><tt>make -C /lib/modules/2.6.18-128.1.1.el5/build SUBDIRS=/home/davidl/source/drbd/drbd-8.3.1rc1/drbd
modules<br>
make[2]: Entering directory `/usr/src/kernels/2.6.18-128.1.1.el5-i686'</tt></font>
<br><font size=2><tt>CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_buildtag.o<br>
CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_bitmap.o<br>
CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_proc.o<br>
CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_worker.o<br>
CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.o</tt></font>
<br><font size=2><tt>/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c:
In function ‘drbd_wait_for_connect’:<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c:725: error:
implicit declaration of function ‘random32’<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c: In function
‘drbd_crypto_alloc_digest_safe’:<br>
/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c:2709: warning:
passing argument 1 of ‘crypto_alloc_hash’ discards qualifiers from
pointer target type<br>
make[3]: *** [/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.o]
Error 1<br>
make[2]: *** [_module_/home/davidl/source/drbd/drbd-8.3.1rc1/drbd] Error
2<br>
make[2]: Leaving directory `/usr/src/kernels/2.6.18-128.1.1.el5-i686'<br>
make[1]: *** [kbuild] Error 2<br>
make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd'<br>
make: *** [module] Error 2<br>
[root@hatest1 drbd-8.3.1rc1]#</tt></font>
<br>