Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On a machine which is currently running drbd-8.3.0 I downloaded and attempted to compile drbd-8.3.1rc1. The machine is a HP Proliant DL380G4 running the latest RHEL5. Previously I had compiled drbd-8.3.0 successfully. So far I've : - attempted a "make clean all"(see I below) which resulted in yypush_buffer_state and yypop_buffer_state errors. - we have the latest rhel5 flex pkg : flex-2.5.4a-41.fc6 - downloaded and installed latest flex flex-2.5.35.tar.gz - after upgrading flex we now get the errors as given in II below. Next ? Thanks I. make clean all : before flex upgraded. [root at hatest1 drbd-8.3.1rc1]# make clean all make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user' rm -f drbdadm_scanner.c drbdmeta_scanner.c rm -f drbdsetup drbdadm drbdmeta drbdmeta_unfinished_rewrite *.o rm -f drbd_buildtag.c drbd_strings.c rm -f *~ make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' rm -f *~ rm -f datadisk make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' To clean the documentation: make doc-clean make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' rm -rf .tmp_versions rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel* make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' rm -f *~ rm -rf dist make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/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: In function â??my_yypush_buffer_stateâ??: drbdadm_scanner.fl:168: warning: implicit declaration of function â??yypush_buffer_stateâ?? drbdadm_scanner.fl: At top level: drbdadm_scanner.fl:23: 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 -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_minor_table.o drbdadm_minor_table.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 drbdadm_minor_table.o drbdadm_scanner.o: In function `my_yypush_buffer_state': /home/davidl/source/drbd/drbd-8.3.1rc1/user/drbdadm_scanner.fl:168: undefined reference to `yypush_buffer_state' drbdadm_parser.o: In function `include_file': /home/davidl/source/drbd/drbd-8.3.1rc1/user/drbdadm_parser.c:1155: undefined reference to `yypop_buffer_state' collect2: ld returned 1 exit status make[1]: *** [drbdadm] Error 1 make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user' make: *** [tools] Error 2 [root at hatest1 drbd-8.3.1rc1]# II. make clean all : after flex upgraded. root at hatest1 drbd-8.3.1rc1]# make clean all make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user' rm -f drbdadm_scanner.c drbdmeta_scanner.c rm -f drbdsetup drbdadm drbdmeta drbdmeta_unfinished_rewrite *.o rm -f drbd_buildtag.c drbd_strings.c rm -f *~ make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/user' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' rm -f *~ rm -f datadisk make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' To clean the documentation: make doc-clean make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' rm -rf .tmp_versions rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel* make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' rm -f *~ rm -rf dist make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/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.c: In function â??yy_get_next_bufferâ??: drbdadm_scanner.c:2931: warning: comparison between signed and unsigned 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 -g -O2 -c -W -Wall -I../drbd -c -o drbdadm_minor_table.o drbdadm_minor_table.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 drbdadm_minor_table.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 â??yy_get_next_bufferâ??: drbdmeta_scanner.c:1319: warning: comparison between signed and unsigned 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-128.1.1.el5/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-128.1.1.el5/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 `/home/davidl/source/drbd/drbd-8.3.1rc1/user' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/scripts' make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' To (re)make the documentation: make doc make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/documentation' Userland tools build was successful. make[1]: Entering directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=/lib/modules/2.6.18-128.1.1.el5/build test -f ../scripts/adjust_drbd_config_h.sh && \ KDIR=/lib/modules/2.6.18-128.1.1.el5/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh /lib/modules/2.6.18-128.1.1.el5/build /home/davidl/source/drbd/drbd-8.3.1rc1/drbd make[3]: /usr/src/kernels/2.6.18-128.1.1.el5-i686/Documentation/DocBook/Makefile: No such file or directory make[3]: *** No rule to make target `/usr/src/kernels/2.6.18-128.1.1.el5-i686/Documentation/DocBook/Makefile'. Stop. make[2]: *** [help] Error 2 /home/davidl/source/drbd/drbd-8.3.1rc1/drbd Using unmodified drbd_config.h make -C /lib/modules/2.6.18-128.1.1.el5/build SUBDIRS=/home/davidl/source/drbd/drbd-8.3.1rc1/drbd modules make[2]: Entering directory `/usr/src/kernels/2.6.18-128.1.1.el5-i686' CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_buildtag.o CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_bitmap.o CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_proc.o CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_worker.o CC [M] /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.o /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c: In function â??drbd_wait_for_connectâ??: /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c:725: error: implicit declaration of function â??random32â?? /home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.c: In function â??drbd_crypto_alloc_digest_safeâ??: /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 make[3]: *** [/home/davidl/source/drbd/drbd-8.3.1rc1/drbd/drbd_receiver.o] Error 1 make[2]: *** [_module_/home/davidl/source/drbd/drbd-8.3.1rc1/drbd] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.18-128.1.1.el5-i686' make[1]: *** [kbuild] Error 2 make[1]: Leaving directory `/home/davidl/source/drbd/drbd-8.3.1rc1/drbd' make: *** [module] Error 2 [root at hatest1 drbd-8.3.1rc1]# -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090325/ef8817c8/attachment.htm>