Building DRBD 8.3.4 against OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7 [message #38234] |
Tue, 01 December 2009 09:16 ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
triangle
Messages: 6 Registered: May 2009
|
Junior Member |
|
|
I am failing to build a DRBD 8.3.4 RPM packet on a system running the OpenVZ kernel 2.6.18-164.2.1.el5.028stab066.7.
Building the DRBD 8.3.4 RPM packet on the same system running the CentOS kernel 2.6.18-164.2.1.el5 works fine.
The DRBD source code is taken from http://oss.linbit.com/drbd/8.3/drbd-8.3.4.tar.gz
My questions:
- Are there any hints to make DRBD 8.3.4 compile successfully on 2.6.18-164.2.1.el5.028stab066.7?
- Is it safe to use the DRBD 8.3.4 userland tools built on the CentOS kernel 2.6.18-164.2.1.el5 on the 2.6.18-164.2.1.el5.028stab066.7-based OpenVZ host?
Thanks for your help! David
These kernel-related packages are installed on the system:
[root@hostname drbd-8.3.4]# rpm -qa | grep kernel
kernel-headers-2.6.18-164.6.1.el5
ovzkernel-devel-2.6.18-164.2.1.el5.028stab066.7
kernel-devel-2.6.18-164.6.1.el5
kernel-2.6.18-164.2.1.el5
ovzkernel-2.6.18-164.2.1.el5.028stab066.7
kernel-2.6.18-164.6.1.el5
kernel-devel-2.6.18-164.2.1.el5
[root@hostname drbd-8.3.4]#
Here are the details about the failing build process:
[root@hostname drbd-8.3.4]# uname -a
Linux hostname.domain.net 2.6.18-164.2.1.el5.028stab066.7 #1 SMP Thu Nov 26 06:53:20 MSK 2009 i686 i686 i386 GNU/Linux
[root@hostname drbd-8.3.4]#
[root@hostname drbd-8.3.4]# pwd
/tmp/drbd-8.3.4
[root@hostname drbd-8.3.4]# make rpm
checking for presence of 8\.3\.4 in various changelog files
debian/changelog needs update [ignored]
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/tmp/drbd-8.3.4/drbd'
make[1]: Leaving directory `/tmp/drbd-8.3.4/drbd'
make -C documentation doc
make[1]: Entering directory `/tmp/drbd-8.3.4/documentation'
make[1]: Nothing to be done for `doc'.
make[1]: Leaving directory `/tmp/drbd-8.3.4/documentation'
test -e .filelist
ln -sf drbd/linux/drbd_config.h drbd_config.h
rm -f drbd-8.3.4
ln -s . drbd-8.3.4
for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit 1; done
grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \
tar --owner=0 --group=0 -czf - -T .filelist > drbd-8.3.4$_DEB.tar.gz
rm drbd-8.3.4
mkdir -p dist/BUILD \
dist/RPMS \
dist/SPECS \
dist/SOURCES \
dist/TMP \
dist/install \
dist/SRPMS
[ -h dist/SOURCES/drbd-8.3.4.tar.gz ] || \
ln -s /tmp/drbd-8.3.4/drbd-8.3.4.tar.gz \
/tmp/drbd-8.3.4/dist/SOURCES/drbd-8.3.4.tar.gz
if test drbd.spec.in -nt dist/SPECS/drbd.spec ; then \
sed -e "s/^\(Version:\).*/\1 8.3.4/;" \
-e "s/^\(Packager:\).*/\1 root@hostname.domain.net/;" < drbd.spec.in \
> dist/SPECS/drbd.spec ; \
fi
rpmbuild -bb \
--define "_topdir /tmp/drbd-8.3.4/dist" \
--define "buildroot /tmp/drbd-8.3.4/dist/install" \
--define "kernelversion 2.6.18-164.2.1.el5.028stab066.7" \
--define "kdir /lib/modules/2.6.18-164.2.1.el5.028stab066.7/build" \
\
/tmp/drbd-8.3.4/dist/SPECS/drbd.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.54854
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ rm -rf drbd-8.3.4
+ /bin/gzip -dc /tmp/drbd-8.3.4/dist/SOURCES/drbd-8.3.4.tar.gz
+ tar -xvvf -
-rw-rw-r-- root/root 875 2008-11-24 11:43:32 drbd-8.3.4/.gitignore
drwxr-xr-x Creating directory: drbd-8.3.4
-rw-rw-r-- root/root 17990 2008-11-24 11:43:32 drbd-8.3.4/COPYING
-rw-rw-r-- root/root 26897 2009-10-06 14:34:41 drbd-8.3.4/ChangeLog
-rw-rw-r-- root/root 7054 2009-05-26 14:49:07 drbd-8.3.4/Makefile
-rw-rw-r-- root/root 425 2009-05-26 14:49:07 drbd-8.3.4/README
-rw-rw-r-- root/root 191 2009-05-26 14:49:07 drbd-8.3.4/benchmark/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/benchmark
-rw-rw-r-- root/root 95 2007-10-22 17:38:27 drbd-8.3.4/benchmark/README
-rw-rw-r-- root/root 10173 2009-07-27 10:47:42 drbd-8.3.4/benchmark/dm.c
-rw-rw-r-- root/root 8639 2009-07-27 10:47:42 drbd-8.3.4/benchmark/io-latency-test.c
-rw-rw-r-- root/root 2293 2009-08-26 15:27:50 drbd-8.3.4/documentation/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/documentation
-rw-rw-r-- root/root 2860 2008-11-24 11:43:32 drbd-8.3.4/documentation/Makefile.lang
-rw-rw-r-- root/root 2018 2009-08-26 15:27:50 drbd-8.3.4/documentation/aspell.en.per
-rw-rw-r-- root/root 68148 2009-09-29 10:03:16 drbd-8.3.4/documentation/drbd.conf.xml
-rw-rw-r-- root/root 3522 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbd.xml
-rw-rw-r-- root/root 18425 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbdadm.xml
-rw-rw-r-- root/root 3176 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbddisk.xml
-rw-rw-r-- root/root 7163 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbdmeta.xml
-rw-rw-r-- root/root 70034 2009-09-29 10:03:19 drbd-8.3.4/documentation/drbdsetup.xml
-rw-rw-r-- root/root 28845 2009-10-06 14:34:36 drbd-8.3.4/drbd.spec.in
-rw-rw-r-- root/root 1734 2009-09-29 10:35:31 drbd-8.3.4/drbd/Kconfig
drwxr-xr-x Creating directory: drbd-8.3.4/drbd
-rw-rw-r-- root/root 7565 2009-09-07 12:21:47 drbd-8.3.4/drbd/Makefile
-rw-rw-r-- root/root 362 2009-08-26 15:27:50 drbd-8.3.4/drbd/Makefile-2.6
-rw-rw-r-- root/root 4932 2009-07-27 10:47:43 drbd-8.3.4/drbd/cn_queue.c
-rw-rw-r-- root/root 12046 2009-10-06 13:32:41 drbd-8.3.4/drbd/connector.c
-rw-rw-r-- root/root 41271 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_actlog.c
-rw-rw-r-- root/root 37380 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_bitmap.c
-rw-rw-r-- root/root 77793 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_int.h
-rw-rw-r-- root/root 106310 2009-09-14 16:44:36 drbd-8.3.4/drbd/drbd_main.c
-rw-rw-r-- root/root 67642 2009-10-05 14:52:03 drbd-8.3.4/drbd/drbd_nl.c
-rw-rw-r-- root/root 7485 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_proc.c
-rw-rw-r-- root/root 124900 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_receiver.c
-rw-rw-r-- root/root 37373 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_req.c
-rw-rw-r-- root/root 10346 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_req.h
-rw-rw-r-- root/root 4243 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_strings.c
-rw-rw-r-- root/root 21430 2009-09-29 09:51:14 drbd-8.3.4/drbd/drbd_tracing.c
-rw-rw-r-- root/root 2655 2009-07-27 10:47:43 drbd-8.3.4/drbd/drbd_tracing.h
-rw-rw-r-- root/root 11513 2009-07-27 10:47:43 drbd-8.3.4/drbd/drbd_vli.h
-rw-rw-r-- root/root 41241 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_worker.c
-rw-rw-r-- root/root 16844 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_wrappers.h
-rw-rw-r-- root/root 4091 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/connector.h
drwxr-xr-x Creating directory: drbd-8.3.4/drbd/linux
-rw-rw-r-- root/root 9923 2009-10-05 14:52:03 drbd-8.3.4/drbd/linux/drbd.h
-rw-rw-r-- root/root 3059 2009-10-06 14:32:17 drbd-8.3.4/drbd/linux/drbd_config.h
-rw-rw-r-- root/root 3881 2009-09-29 09:51:14 drbd-8.3.4/drbd/linux/drbd_limits.h
-rw-rw-r-- root/root 4068 2009-07-28 16:26:11 drbd-8.3.4/drbd/linux/drbd_nl.h
-rw-rw-r-- root/root 2772 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/drbd_tag_magic.h
-rw-rw-r-- root/root 26 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/hardirq.h
-rw-rw-r-- root/root 12315 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/lru_cache.h
-rw-rw-r-- root/root 133 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/memcontrol.h
-rw-rw-r-- root/root 611 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/mutex.h
-rw-rw-r-- root/root 19 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/tracepoint.h
-rw-rw-r-- root/root 14754 2009-08-26 15:27:50 drbd-8.3.4/drbd/lru_cache.c
-rw-rw-r-- root/root 5379 2009-08-26 15:27:50 drbd-8.3.4/scripts/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/scripts
-rw-rw-r-- root/root 755 2009-06-09 13:33:03 drbd-8.3.4/scripts/README
-rwxrwxr-x root/root 5651 2009-10-05 14:52:03 drbd-8.3.4/scripts/adjust_drbd_config_h.sh
-rwxrwxr-x root/root 8047 2009-05-26 14:49:07 drbd-8.3.4/scripts/block-drbd
-rwxrwxr-x root/root 16152 2009-09-07 12:21:47 drbd-8.3.4/scripts/crm-fence-peer.sh
-rwxrwxr-x root/root 5607 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd
-rwxrwxr-x root/root 6250 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd-overview.pl
-rw-rw-r-- root/root 23759 2009-08-26 15:27:50 drbd-8.3.4/scripts/drbd.conf
-rw-rw-r-- root/root 3380 2008-11-24 11:43:33 drbd-8.3.4/scripts/drbd.gentoo
-rw-rw-r-- root/root 1420 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbd.metadata.rhcs
-rw-rw-r-- root/root 24297 2009-10-05 09:42:05 drbd-8.3.4/scripts/drbd.ocf
-rw-rw-r-- root/root 649 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd.rules
-rwxrwxr-x root/root 3353 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbd.sh.rhcs
-rw-rw-r-- root/root 4514 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbdadm.bash_completion
-rwxrwxr-x root/root 2141 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbddisk
-rw-rw-r-- root/root 1117 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbdupper
-rwxrwxr-x root/root 334 2008-11-24 11:43:33 drbd-8.3.4/scripts/get_uts_release.sh
-rwxrwxr-x root/root 3526 2009-08-26 15:27:50 drbd-8.3.4/scripts/notify.sh
-rwxrwxr-x root/root 3015 2008-11-24 11:43:33 drbd-8.3.4/scripts/outdate-peer.sh
-rw-rw-r-- root/root 5455 2009-08-26 15:27:50 drbd-8.3.4/scripts/patch-kernel
-rw-rw-r-- root/root 2732 2009-05-26 14:49:07 drbd-8.3.4/scripts/pretty-proc-drbd.sh
-rwxrwxr-x root/root 2099 2009-05-26 14:49:07 drbd-8.3.4/scripts/snapshot-resync-target-lvm.sh
lrwxrwxrwx root/root 0 2009-12-01 09:19:09 drbd-8.3.4/scripts/unsnapshot-resync-target-lvm.sh -> snapshot-resync-target-lvm.sh
-rw-rw-r-- root/root 3700 2009-09-14 16:04:52 drbd-8.3.4/user/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/user
-rw-rw-r-- root/root 5081 2009-09-14 16:04:52 drbd-8.3.4/user/drbd_endian.h
-rw-rw-r-- root/root 7292 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm.h
-rw-rw-r-- root/root 7548 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_adjust.c
-rw-rw-r-- root/root 79941 2009-09-08 11:34:48 drbd-8.3.4/user/drbdadm_main.c
-rw-rw-r-- root/root 4314 2009-07-27 10:47:43 drbd-8.3.4/user/drbdadm_minor_table.c
-rw-rw-r-- root/root 39131 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_parser.c
-rw-rw-r-- root/root 2621 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_parser.h
-rw-rw-r-- root/root 7565 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_scanner.fl
-rw-rw-r-- root/root 17947 2009-09-14 16:04:52 drbd-8.3.4/user/drbdadm_usage_cnt.c
-rw-rw-r-- root/root 77823 2009-09-14 16:04:52 drbd-8.3.4/user/drbdmeta.c
-rw-rw-r-- root/root 479 2009-09-14 16:04:52 drbd-8.3.4/user/drbdmeta_parser.h
-rw-rw-r-- root/root 2306 2009-06-10 13:36:37 drbd-8.3.4/user/drbdmeta_scanner.fl
-rw-rw-r-- root/root 71860 2009-10-05 14:52:03 drbd-8.3.4/user/drbdsetup.c
-rw-rw-r-- root/root 14171 2009-09-14 16:04:52 drbd-8.3.4/user/drbdtool_common.c
-rw-rw-r-- root/root 2445 2009-09-14 16:04:52 drbd-8.3.4/user/drbdtool_common.h
-rw-rw-r-- root/root 1783 2009-07-27 10:47:43 drbd-8.3.4/user/unaligned.h
-rw-rw-r-- root/root 35357 2009-10-06 14:36:00 drbd-8.3.4/documentation/drbdsetup.8
-rw-rw-r-- root/root 36452 2009-10-06 14:36:01 drbd-8.3.4/documentation/drbd.conf.5
-rw-rw-r-- root/root 1956 2009-10-06 14:36:02 drbd-8.3.4/documentation/drbd.8
-rw-rw-r-- root/root 8152 2009-10-06 14:36:03 drbd-8.3.4/documentation/drbdadm.8
-rw-rw-r-- root/root 1798 2009-10-06 14:36:04 drbd-8.3.4/documentation/drbddisk.8
-rw-rw-r-- root/root 3633 2009-10-06 14:36:05 drbd-8.3.4/documentation/drbdmeta.8
lrwxrwxrwx root/root 0 2009-12-01 09:20:38 drbd-8.3.4/drbd_config.h -> drbd/linux/drbd_config.h
-rw-r--r-- root/root 238 2009-12-01 09:20:38 drbd-8.3.4/drbd/drbd_buildtag.c
-rw-rw-r-- root/root 3171 2009-10-06 14:36:05 drbd-8.3.4/.filelist
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd drbd-8.3.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ test -d /lib/modules/2.6.18-164.2.1.el5.028stab066.7/build/.
++ scripts/get_uts_release.sh
+ test 2.6.18-164.2.1.el5.028stab066.7 = 2.6.18-164.2.1.el5.028stab066.7
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.54854
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ LANG=C
+ export LANG
+ unset DISPLAY
+ echo kernelversion=2.6.18-164.2.1.el5.028stab066.7
kernelversion=2.6.18-164.2.1.el5.028stab066.7
+ echo 'kversion=%{kversion}'
kversion=%{kversion}
+ echo krelver=2.6.18_164.2.1.el5.028stab066.7
krelver=2.6.18_164.2.1.el5.028stab066.7
+ '[' -n /tmp/drbd-8.3.4/dist/install -a /tmp/drbd-8.3.4/dist/install '!=' / ']'
+ rm -rf /tmp/drbd-8.3.4/dist/install
+ mkdir -p /tmp/drbd-8.3.4/dist/install
+ make clean
make[1]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/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[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
rm -f *~
rm -f datadisk
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
To clean the documentation: make doc-clean
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
rm -f *~
rm -rf dist
make[1]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
+ '[' -e /etc/redhat-release ']'
+ make all doc PREFIX=/tmp/drbd-8.3.4/dist/install/ MANDIR=/usr/share/man KDIR=/lib/modules/2.6.18-164.2.1.el5.028stab066.7/build LOCALVERSION=
make[1]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
make -C drbd drbd_buildtag.c
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_scanner.o drbdadm_scanner.c
drbdadm_scanner.fl:24: warning: 'yyunput' declared 'static' but never defined
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_parser.o drbdadm_parser.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdtool_common.o drbdtool_common.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c
cp ../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbd_buildtag.o drbd_buildtag.c
gcc -O1 -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 -O1 -c -W -Wall -I../drbd -c -o drbdmeta.o drbdmeta.c
flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl
gcc -O1 -c -W -Wall -I../drbd -c -o drbdmeta_scanner.o drbdmeta_scanner.c
drbdmeta_scanner.c: In function 'yylex':
drbdmeta_scanner.c:860: warning: label 'find_rule' defined but not used
drbdmeta_scanner.fl: At top level:
drbdmeta_scanner.fl:14: warning: 'yyunput' declared 'static' but never defined
gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o
gcc -O1 -c -W -Wall -I../drbd -c -o drbdsetup.o drbdsetup.c
cp ../drbd/drbd_strings.c drbd_strings.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbd_strings.o drbd_strings.c
gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
To (re)make the documentation: make doc
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
Userland tools build was successful.
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/lib/modules/2.6.18-164.2.1.el5.028stab066.7/build
test -f ../scripts/adjust_drbd_config_h.sh && \
KDIR=/lib/modules/2.6.18-164.2.1.el5.028stab066.7/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.18-164.2.1.el5.028stab066.7/build /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd
Adjusted drbd_config.h:
--- ./linux/drbd_config.h 2009-10-06 14:32:17.000000000 +0200
+++ ./linux/drbd_config.h.new 2009-12-01 09:20:40.000000000 +0100
@@ -67 +67 @@
-//#define DEFINE_KERNEL_SOCK_SHUTDOWN
+#define DEFINE_KERNEL_SOCK_SHUTDOWN
@@ -81 +81 @@
-//#define HAVE_LINUX_BYTEORDER_SWABB_H
+#define HAVE_LINUX_BYTEORDER_SWABB_H
@@ -102 +102 @@
-#define KERNEL_HAS_CN_SKB_PARMS
+//#define KERNEL_HAS_CN_SKB_PARMS
make -C /lib/modules/2.6.18-164.2.1.el5.028stab066.7/build SUBDIRS=/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd modules
make[3]: Entering directory `/usr/src/kernels/2.6.18-164.2.1.el5.028stab066.7-i686'
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_buildtag.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_bitmap.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_proc.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_worker.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.o
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'drbd_crypto_alloc_digest_safe':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c:2 729: warning: passing argument 1 of 'crypto_alloc_hash' discards qualifiers from pointer target type
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'vli_decode_bits':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_vli.h:164: warning: control reaches end of non-void function
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'receive_bitmap':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c:3 300: warning: 'rl' may be used uninitialized in this function
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_req.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_actlog.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/lru_cache.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.o
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:52:24 : error: linux/swab.h: No such file or directory
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c: In function 'drbd_free_sock':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:3389: error: implicit declaration of function 'kernel_sock_shutdown'
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:3389: error: 'SHUT_RDWR' undeclared (first use in this function)
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:3389: error: (Each undeclared identifier is reported only once
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:3389: error: for each function it appears in.)
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c: In function '_drbd_fault_random':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.c:3870: error: implicit declaration of function 'swahw32'
make[4]: *** [/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.o] Error 1
make[3]: *** [_module_/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.18-164.2.1.el5.028stab066.7-i686'
make[2]: *** [kbuild] Error 2
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[1]: *** [module] Error 2
make[1]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
error: Bad exit status from /var/tmp/rpm-tmp.54854 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.54854 (%build)
make: *** [rpm] Error 1
[root@hostname drbd-8.3.4]#
And these are the details about the successful build process:
[root@hostname drbd-8.3.4]# uname -a
Linux hostname.domain.net 2.6.18-164.2.1.el5 #1 SMP Wed Sep 30 12:55:19 EDT 2009 i686 i686 i386 GNU/Linux
[root@hostname drbd-8.3.4]# pwd
/tmp/drbd-8.3.4
[root@hostname drbd-8.3.4]# make rpm
checking for presence of 8\.3\.4 in various changelog files
debian/changelog needs update [ignored]
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/tmp/drbd-8.3.4/drbd'
make[1]: Leaving directory `/tmp/drbd-8.3.4/drbd'
make -C documentation doc
make[1]: Entering directory `/tmp/drbd-8.3.4/documentation'
make[1]: Nothing to be done for `doc'.
make[1]: Leaving directory `/tmp/drbd-8.3.4/documentation'
test -e .filelist
ln -sf drbd/linux/drbd_config.h drbd_config.h
rm -f drbd-8.3.4
ln -s . drbd-8.3.4
for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit 1; done
grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \
tar --owner=0 --group=0 -czf - -T .filelist > drbd-8.3.4$_DEB.tar.gz
rm drbd-8.3.4
mkdir -p dist/BUILD \
dist/RPMS \
dist/SPECS \
dist/SOURCES \
dist/TMP \
dist/install \
dist/SRPMS
[ -h dist/SOURCES/drbd-8.3.4.tar.gz ] || \
ln -s /tmp/drbd-8.3.4/drbd-8.3.4.tar.gz \
/tmp/drbd-8.3.4/dist/SOURCES/drbd-8.3.4.tar.gz
if test drbd.spec.in -nt dist/SPECS/drbd.spec ; then \
sed -e "s/^\(Version:\).*/\1 8.3.4/;" \
-e "s/^\(Packager:\).*/\1 root@hostname.domain.net/;" < drbd.spec.in \
> dist/SPECS/drbd.spec ; \
fi
rpmbuild -bb \
--define "_topdir /tmp/drbd-8.3.4/dist" \
--define "buildroot /tmp/drbd-8.3.4/dist/install" \
--define "kernelversion 2.6.18-164.2.1.el5" \
--define "kdir /lib/modules/2.6.18-164.2.1.el5/build" \
\
/tmp/drbd-8.3.4/dist/SPECS/drbd.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.30476
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ rm -rf drbd-8.3.4
+ /bin/gzip -dc /tmp/drbd-8.3.4/dist/SOURCES/drbd-8.3.4.tar.gz
+ tar -xvvf -
-rw-rw-r-- root/root 875 2008-11-24 11:43:32 drbd-8.3.4/.gitignore
drwxr-xr-x Creating directory: drbd-8.3.4
-rw-rw-r-- root/root 17990 2008-11-24 11:43:32 drbd-8.3.4/COPYING
-rw-rw-r-- root/root 26897 2009-10-06 14:34:41 drbd-8.3.4/ChangeLog
-rw-rw-r-- root/root 7054 2009-05-26 14:49:07 drbd-8.3.4/Makefile
-rw-rw-r-- root/root 425 2009-05-26 14:49:07 drbd-8.3.4/README
-rw-rw-r-- root/root 191 2009-05-26 14:49:07 drbd-8.3.4/benchmark/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/benchmark
-rw-rw-r-- root/root 95 2007-10-22 17:38:27 drbd-8.3.4/benchmark/README
-rw-rw-r-- root/root 10173 2009-07-27 10:47:42 drbd-8.3.4/benchmark/dm.c
-rw-rw-r-- root/root 8639 2009-07-27 10:47:42 drbd-8.3.4/benchmark/io-latency-test.c
-rw-rw-r-- root/root 2293 2009-08-26 15:27:50 drbd-8.3.4/documentation/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/documentation
-rw-rw-r-- root/root 2860 2008-11-24 11:43:32 drbd-8.3.4/documentation/Makefile.lang
-rw-rw-r-- root/root 2018 2009-08-26 15:27:50 drbd-8.3.4/documentation/aspell.en.per
-rw-rw-r-- root/root 68148 2009-09-29 10:03:16 drbd-8.3.4/documentation/drbd.conf.xml
-rw-rw-r-- root/root 3522 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbd.xml
-rw-rw-r-- root/root 18425 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbdadm.xml
-rw-rw-r-- root/root 3176 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbddisk.xml
-rw-rw-r-- root/root 7163 2009-08-26 15:27:50 drbd-8.3.4/documentation/drbdmeta.xml
-rw-rw-r-- root/root 70034 2009-09-29 10:03:19 drbd-8.3.4/documentation/drbdsetup.xml
-rw-rw-r-- root/root 28845 2009-10-06 14:34:36 drbd-8.3.4/drbd.spec.in
-rw-rw-r-- root/root 1734 2009-09-29 10:35:31 drbd-8.3.4/drbd/Kconfig
drwxr-xr-x Creating directory: drbd-8.3.4/drbd
-rw-rw-r-- root/root 7565 2009-09-07 12:21:47 drbd-8.3.4/drbd/Makefile
-rw-rw-r-- root/root 362 2009-08-26 15:27:50 drbd-8.3.4/drbd/Makefile-2.6
-rw-rw-r-- root/root 4932 2009-07-27 10:47:43 drbd-8.3.4/drbd/cn_queue.c
-rw-rw-r-- root/root 12046 2009-10-06 13:32:41 drbd-8.3.4/drbd/connector.c
-rw-rw-r-- root/root 41271 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_actlog.c
-rw-rw-r-- root/root 37380 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_bitmap.c
-rw-rw-r-- root/root 77793 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_int.h
-rw-rw-r-- root/root 106310 2009-09-14 16:44:36 drbd-8.3.4/drbd/drbd_main.c
-rw-rw-r-- root/root 67642 2009-10-05 14:52:03 drbd-8.3.4/drbd/drbd_nl.c
-rw-rw-r-- root/root 7485 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_proc.c
-rw-rw-r-- root/root 124900 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_receiver.c
-rw-rw-r-- root/root 37373 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_req.c
-rw-rw-r-- root/root 10346 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_req.h
-rw-rw-r-- root/root 4243 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_strings.c
-rw-rw-r-- root/root 21430 2009-09-29 09:51:14 drbd-8.3.4/drbd/drbd_tracing.c
-rw-rw-r-- root/root 2655 2009-07-27 10:47:43 drbd-8.3.4/drbd/drbd_tracing.h
-rw-rw-r-- root/root 11513 2009-07-27 10:47:43 drbd-8.3.4/drbd/drbd_vli.h
-rw-rw-r-- root/root 41241 2009-09-14 16:04:52 drbd-8.3.4/drbd/drbd_worker.c
-rw-rw-r-- root/root 16844 2009-08-26 15:27:50 drbd-8.3.4/drbd/drbd_wrappers.h
-rw-rw-r-- root/root 4091 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/connector.h
drwxr-xr-x Creating directory: drbd-8.3.4/drbd/linux
-rw-rw-r-- root/root 9923 2009-10-05 14:52:03 drbd-8.3.4/drbd/linux/drbd.h
-rw-rw-r-- root/root 3059 2009-10-06 14:32:17 drbd-8.3.4/drbd/linux/drbd_config.h
-rw-rw-r-- root/root 3881 2009-09-29 09:51:14 drbd-8.3.4/drbd/linux/drbd_limits.h
-rw-rw-r-- root/root 4068 2009-07-28 16:26:11 drbd-8.3.4/drbd/linux/drbd_nl.h
-rw-rw-r-- root/root 2772 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/drbd_tag_magic.h
-rw-rw-r-- root/root 26 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/hardirq.h
-rw-rw-r-- root/root 12315 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/lru_cache.h
-rw-rw-r-- root/root 133 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/memcontrol.h
-rw-rw-r-- root/root 611 2009-07-27 10:47:42 drbd-8.3.4/drbd/linux/mutex.h
-rw-rw-r-- root/root 19 2009-07-27 10:47:43 drbd-8.3.4/drbd/linux/tracepoint.h
-rw-rw-r-- root/root 14754 2009-08-26 15:27:50 drbd-8.3.4/drbd/lru_cache.c
-rw-rw-r-- root/root 5379 2009-08-26 15:27:50 drbd-8.3.4/scripts/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/scripts
-rw-rw-r-- root/root 755 2009-06-09 13:33:03 drbd-8.3.4/scripts/README
-rwxrwxr-x root/root 5651 2009-10-05 14:52:03 drbd-8.3.4/scripts/adjust_drbd_config_h.sh
-rwxrwxr-x root/root 8047 2009-05-26 14:49:07 drbd-8.3.4/scripts/block-drbd
-rwxrwxr-x root/root 16152 2009-09-07 12:21:47 drbd-8.3.4/scripts/crm-fence-peer.sh
-rwxrwxr-x root/root 5607 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd
-rwxrwxr-x root/root 6250 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd-overview.pl
-rw-rw-r-- root/root 23759 2009-08-26 15:27:50 drbd-8.3.4/scripts/drbd.conf
-rw-rw-r-- root/root 3380 2008-11-24 11:43:33 drbd-8.3.4/scripts/drbd.gentoo
-rw-rw-r-- root/root 1420 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbd.metadata.rhcs
-rw-rw-r-- root/root 24297 2009-10-05 09:42:05 drbd-8.3.4/scripts/drbd.ocf
-rw-rw-r-- root/root 649 2009-06-09 13:33:03 drbd-8.3.4/scripts/drbd.rules
-rwxrwxr-x root/root 3353 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbd.sh.rhcs
-rw-rw-r-- root/root 4514 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbdadm.bash_completion
-rwxrwxr-x root/root 2141 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbddisk
-rw-rw-r-- root/root 1117 2009-05-26 14:49:07 drbd-8.3.4/scripts/drbdupper
-rwxrwxr-x root/root 334 2008-11-24 11:43:33 drbd-8.3.4/scripts/get_uts_release.sh
-rwxrwxr-x root/root 3526 2009-08-26 15:27:50 drbd-8.3.4/scripts/notify.sh
-rwxrwxr-x root/root 3015 2008-11-24 11:43:33 drbd-8.3.4/scripts/outdate-peer.sh
-rw-rw-r-- root/root 5455 2009-08-26 15:27:50 drbd-8.3.4/scripts/patch-kernel
-rw-rw-r-- root/root 2732 2009-05-26 14:49:07 drbd-8.3.4/scripts/pretty-proc-drbd.sh
-rwxrwxr-x root/root 2099 2009-05-26 14:49:07 drbd-8.3.4/scripts/snapshot-resync-target-lvm.sh
lrwxrwxrwx root/root 0 2009-12-01 09:34:44 drbd-8.3.4/scripts/unsnapshot-resync-target-lvm.sh -> snapshot-resync-target-lvm.sh
-rw-rw-r-- root/root 3700 2009-09-14 16:04:52 drbd-8.3.4/user/Makefile
drwxr-xr-x Creating directory: drbd-8.3.4/user
-rw-rw-r-- root/root 5081 2009-09-14 16:04:52 drbd-8.3.4/user/drbd_endian.h
-rw-rw-r-- root/root 7292 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm.h
-rw-rw-r-- root/root 7548 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_adjust.c
-rw-rw-r-- root/root 79941 2009-09-08 11:34:48 drbd-8.3.4/user/drbdadm_main.c
-rw-rw-r-- root/root 4314 2009-07-27 10:47:43 drbd-8.3.4/user/drbdadm_minor_table.c
-rw-rw-r-- root/root 39131 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_parser.c
-rw-rw-r-- root/root 2621 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_parser.h
-rw-rw-r-- root/root 7565 2009-08-26 15:27:50 drbd-8.3.4/user/drbdadm_scanner.fl
-rw-rw-r-- root/root 17947 2009-09-14 16:04:52 drbd-8.3.4/user/drbdadm_usage_cnt.c
-rw-rw-r-- root/root 77823 2009-09-14 16:04:52 drbd-8.3.4/user/drbdmeta.c
-rw-rw-r-- root/root 479 2009-09-14 16:04:52 drbd-8.3.4/user/drbdmeta_parser.h
-rw-rw-r-- root/root 2306 2009-06-10 13:36:37 drbd-8.3.4/user/drbdmeta_scanner.fl
-rw-rw-r-- root/root 71860 2009-10-05 14:52:03 drbd-8.3.4/user/drbdsetup.c
-rw-rw-r-- root/root 14171 2009-09-14 16:04:52 drbd-8.3.4/user/drbdtool_common.c
-rw-rw-r-- root/root 2445 2009-09-14 16:04:52 drbd-8.3.4/user/drbdtool_common.h
-rw-rw-r-- root/root 1783 2009-07-27 10:47:43 drbd-8.3.4/user/unaligned.h
-rw-rw-r-- root/root 35357 2009-10-06 14:36:00 drbd-8.3.4/documentation/drbdsetup.8
-rw-rw-r-- root/root 36452 2009-10-06 14:36:01 drbd-8.3.4/documentation/drbd.conf.5
-rw-rw-r-- root/root 1956 2009-10-06 14:36:02 drbd-8.3.4/documentation/drbd.8
-rw-rw-r-- root/root 8152 2009-10-06 14:36:03 drbd-8.3.4/documentation/drbdadm.8
-rw-rw-r-- root/root 1798 2009-10-06 14:36:04 drbd-8.3.4/documentation/drbddisk.8
-rw-rw-r-- root/root 3633 2009-10-06 14:36:05 drbd-8.3.4/documentation/drbdmeta.8
lrwxrwxrwx root/root 0 2009-12-01 09:39:54 drbd-8.3.4/drbd_config.h -> drbd/linux/drbd_config.h
-rw-r--r-- root/root 238 2009-12-01 09:39:54 drbd-8.3.4/drbd/drbd_buildtag.c
-rw-rw-r-- root/root 3171 2009-10-06 14:36:05 drbd-8.3.4/.filelist
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd drbd-8.3.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ test -d /lib/modules/2.6.18-164.2.1.el5/build/.
++ scripts/get_uts_release.sh
+ test 2.6.18-164.2.1.el5 = 2.6.18-164.2.1.el5
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.30476
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ LANG=C
+ export LANG
+ unset DISPLAY
+ echo kernelversion=2.6.18-164.2.1.el5
kernelversion=2.6.18-164.2.1.el5
+ echo 'kversion=%{kversion}'
kversion=%{kversion}
+ echo krelver=2.6.18_164.2.1.el5
krelver=2.6.18_164.2.1.el5
+ '[' -n /tmp/drbd-8.3.4/dist/install -a /tmp/drbd-8.3.4/dist/install '!=' / ']'
+ rm -rf /tmp/drbd-8.3.4/dist/install
+ mkdir -p /tmp/drbd-8.3.4/dist/install
+ make clean
make[1]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/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[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
rm -f *~
rm -f datadisk
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
To clean the documentation: make doc-clean
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
rm -f *~
rm -rf dist
make[1]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
+ '[' -e /etc/redhat-release ']'
+ make all doc PREFIX=/tmp/drbd-8.3.4/dist/install/ MANDIR=/usr/share/man KDIR=/lib/modules/2.6.18-164.2.1.el5/build LOCALVERSION=
make[1]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
make -C drbd drbd_buildtag.c
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_scanner.o drbdadm_scanner.c
drbdadm_scanner.fl:24: warning: 'yyunput' declared 'static' but never defined
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_parser.o drbdadm_parser.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_main.o drbdadm_main.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdtool_common.o drbdtool_common.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c
cp ../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbd_buildtag.o drbd_buildtag.c
gcc -O1 -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 -O1 -c -W -Wall -I../drbd -c -o drbdmeta.o drbdmeta.c
flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl
gcc -O1 -c -W -Wall -I../drbd -c -o drbdmeta_scanner.o drbdmeta_scanner.c
drbdmeta_scanner.c: In function 'yylex':
drbdmeta_scanner.c:860: warning: label 'find_rule' defined but not used
drbdmeta_scanner.fl: At top level:
drbdmeta_scanner.fl:14: warning: 'yyunput' declared 'static' but never defined
gcc -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o
gcc -O1 -c -W -Wall -I../drbd -c -o drbdsetup.o drbdsetup.c
cp ../drbd/drbd_strings.c drbd_strings.c
gcc -O1 -c -W -Wall -I../drbd -c -o drbd_strings.o drbd_strings.c
gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
To (re)make the documentation: make doc
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
Userland tools build was successful.
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/lib/modules/2.6.18-164.2.1.el5/build
test -f ../scripts/adjust_drbd_config_h.sh && \
KDIR=/lib/modules/2.6.18-164.2.1.el5/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh
/lib/modules/2.6.18-164.2.1.el5/build /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd
Adjusted drbd_config.h:
--- ./linux/drbd_config.h 2009-10-06 14:32:17.000000000 +0200
+++ ./linux/drbd_config.h.new 2009-12-01 09:39:58.000000000 +0100
@@ -67 +67 @@
-//#define DEFINE_KERNEL_SOCK_SHUTDOWN
+#define DEFINE_KERNEL_SOCK_SHUTDOWN
@@ -81 +81 @@
-//#define HAVE_LINUX_BYTEORDER_SWABB_H
+#define HAVE_LINUX_BYTEORDER_SWABB_H
@@ -102 +102 @@
-#define KERNEL_HAS_CN_SKB_PARMS
+//#define KERNEL_HAS_CN_SKB_PARMS
make -C /lib/modules/2.6.18-164.2.1.el5/build SUBDIRS=/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd modules
make[3]: Entering directory `/usr/src/kernels/2.6.18-164.2.1.el5-i686'
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_buildtag.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_bitmap.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_proc.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_worker.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.o
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'drbd_crypto_alloc_digest_safe':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c:2 729: warning: passing argument 1 of 'crypto_alloc_hash' discards qualifiers from pointer target type
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'vli_decode_bits':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_vli.h:164: warning: control reaches end of non-void function
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c: In function 'receive_bitmap':
/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_receiver.c:3 300: warning: 'rl' may be used uninitialized in this function
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_req.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_actlog.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/lru_cache.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_main.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_strings.o
CC [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd_nl.o
LD [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd.o
Building modules, stage 2.
MODPOST
CC /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd.mod.o
LD [M] /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd/drbd.ko
make[3]: Leaving directory `/usr/src/kernels/2.6.18-164.2.1.el5-i686'
mv .drbd_kernelrelease.new .drbd_kernelrelease
Memorizing module configuration ... done.
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
Module build was successful.
make -C documentation doc
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
make[2]: Nothing to be done for `doc'.
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
make[1]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.22027
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make install PREFIX=/tmp/drbd-8.3.4/dist/install/ MANDIR=/usr/share/man
make[1]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
install -d /tmp/drbd-8.3.4/dist/install//sbin/
if getent group haclient > /dev/null 2> /dev/null ; then \
install -g haclient -m 4750 drbdsetup /tmp/drbd-8.3.4/dist/install//sbin/ ; \
install -g haclient -m 4750 drbdmeta /tmp/drbd-8.3.4/dist/install//sbin/ ; \
install -m 755 drbdadm /tmp/drbd-8.3.4/dist/install//sbin/ ; \
else \
install -m 755 drbdsetup /tmp/drbd-8.3.4/dist/install//sbin/ ; \
install -m 755 drbdmeta /tmp/drbd-8.3.4/dist/install//sbin/ ; \
install -m 755 drbdadm /tmp/drbd-8.3.4/dist/install//sbin/ ; \
fi
mkdir -p /tmp/drbd-8.3.4/dist/install//var/lib/drbd
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/user'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
mkdir -p /tmp/drbd-8.3.4/dist/install//etc/ha.d/resource.d
install -d /tmp/drbd-8.3.4/dist/install//etc/rc.d/init.d/
install -m 755 drbd /tmp/drbd-8.3.4/dist/install//etc/rc.d/init.d/drbd
install -m 755 drbddisk /tmp/drbd-8.3.4/dist/install//etc/ha.d/resource.d
install -m 755 drbdupper /tmp/drbd-8.3.4/dist/install//etc/ha.d/resource.d
mkdir -p /tmp/drbd-8.3.4/dist/install//usr/lib/ocf/resource.d/linbit
install -m 755 drbd.ocf /tmp/drbd-8.3.4/dist/install//usr/lib/ocf/resource.d/linbit/ drbd
install -d /tmp/drbd-8.3.4/dist/install//usr/lib/drbd
install -m 755 outdate-peer.sh /tmp/drbd-8.3.4/dist/install//usr/lib/drbd
install -m 755 crm-fence-peer.sh /tmp/drbd-8.3.4/dist/install//usr/lib/drbd
install -m 755 snapshot-resync-target-lvm.sh /tmp/drbd-8.3.4/dist/install//usr/lib/drbd
install -m 755 notify.sh /tmp/drbd-8.3.4/dist/install//usr/lib/drbd
( set -e ; cd /tmp/drbd-8.3.4/dist/install//usr/lib/drbd ;\
ln -sf crm-fence-peer.sh crm-unfence-peer.sh ;\
ln -sf snapshot-resync-target-lvm.sh unsnapshot-resync-target-lvm.sh ;\
ln -sf notify.sh notify-split-brain.sh ;\
ln -sf notify.sh notify-io-error.sh ;\
ln -sf notify.sh notify-pri-on-incon-degr.sh ;\
ln -sf notify.sh notify-pri-lost.sh ;\
ln -sf notify.sh notify-pri-lost-after-sb.sh ;\
ln -sf notify.sh notify-emergency-reboot.sh ;\
ln -sf notify.sh notify-emergency-shutdown.sh ;\
ln -sf notify.sh notify-out-of-sync.sh; )
mkdir -p /tmp/drbd-8.3.4/dist/install//etc/xen/scripts
install -m 755 block-drbd /tmp/drbd-8.3.4/dist/install//etc/xen/scripts
mkdir -p /tmp/drbd-8.3.4/dist/install//etc/udev/rules.d
install -d /tmp/drbd-8.3.4/dist/install//usr/sbin
# strip .pl on install,
# at some point we might reimplement similar functionality in non-perl
install -m 755 drbd-overview.pl /tmp/drbd-8.3.4/dist/install//usr/sbin/drbd-overview
mkdir -p /tmp/drbd-8.3.4/dist/install//usr/share/cluster
install -m 755 drbd.sh.rhcs /tmp/drbd-8.3.4/dist/install//usr/share/cluster/drbd.sh
install -m 644 drbd.metadata.rhcs /tmp/drbd-8.3.4/dist/install//usr/share/cluster/drbd.metadat a
Don't forget to run update-rc.d or chkconfig
disable=.disabled ; \
v=$(udevadm version 2>/dev/null) || \
v=$(rpm -q --qf '%{VERSION}' udev 2>/dev/null) || \
v=$(dpkg-query -W -f '${Version}' udev 2>/dev/null); \
v=${v##*.} ; v=${v%%-*} ; v=${v#0} ; \
if [ -n "$DRBD_ENABLE_UDEV" ] ; then \
disable="" ; \
else case "$v" in \
"") :;; *[!0-9]*) :;; *) \
if [ "$v" -ge 85 ]; then \
disable=""; \
fi ;; \
esac; fi ; \
install -m 644 drbd.rules /tmp/drbd-8.3.4/dist/install//etc/udev/rules.d/65-drbd.rules $disable
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/scripts'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
set -e; for f in drbdsetup.8 drbd.conf.5 drbd.8 drbdadm.8 drbddisk.8 drbdmeta.8 ; do \
s=${f##*.}; \
install -v -D -m 644 $f /tmp/drbd-8.3.4/dist/install//usr/share/man/man$s/$f ; \
done
install: creating directory `/tmp/drbd-8.3.4/dist/install//usr/share/man'
install: creating directory `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8'
`drbdsetup.8' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8/drbdsetup. 8'
install: creating directory `/tmp/drbd-8.3.4/dist/install//usr/share/man/man5'
`drbd.conf.5' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man5/drbd.conf. 5'
`drbd.8' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8/drbd.8'
`drbdadm.8' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8/drbdadm.8'
`drbddisk.8' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8/drbddisk.8 '
`drbdmeta.8' -> `/tmp/drbd-8.3.4/dist/install//usr/share/man/man8/drbdmeta.8 '
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/documentation'
make[2]: Entering directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
install -d /tmp/drbd-8.3.4/dist/install//lib/modules/2.6.18-164.2.1.el5 /kernel/drivers/block
install -m 644 drbd.ko /tmp/drbd-8.3.4/dist/install//lib/modules/2.6.18-164.2.1.el5 /kernel/drivers/block
make[2]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/drbd'
make[1]: Leaving directory `/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4'
+ cd drbd
+ mv .kernel.config.gz k-config-2.6.18-164.2.1.el5.gz
+ FILELIST=/tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4/file.list
+ cd /tmp/drbd-8.3.4/dist/install
+ find etc/ -name drbd -printf '/%p\n'
+ test -e sbin/rcdrbd
+ test -e etc/bash_completion.d/drbdadm
+ test -e etc/bash_completion.d/drbdadm.sh
+ test -e usr/share/cluster/drbd.sh
+ echo /usr/share/cluster/drbd.sh
+ test -e usr/share/cluster/drbd.metadata
+ echo /usr/share/cluster/drbd.metadata
+ cat
+ /usr/lib/rpm/find-debuginfo.sh /tmp/drbd-8.3.4/dist/BUILD/drbd-8.3.4
extracting debug info from /tmp/drbd-8.3.4/dist/install/sbin/drbdadm
extracting debug info from /tmp/drbd-8.3.4/dist/install/sbin/drbdmeta
extracting debug info from /tmp/drbd-8.3.4/dist/install/sbin/drbdsetup
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: drbd-8.3.4-3
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.40688
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ DOCDIR=/tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ export DOCDIR
+ rm -rf /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ /bin/mkdir -p /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ cp -pr scripts/drbd.conf /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ cp -pr COPYING /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ cp -pr README /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ cp -pr file.list /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-8.3.4
+ exit 0
Provides: config(drbd) = 8.3.4-3
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /usr/bin/perl config(drbd) = 8.3.4-3 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) perl(strict) perl(warnings) rtld(GNU_HASH)
Processing files: drbd-km-2.6.18_164.2.1.el5-8.3.4-3
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.40688
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ DOCDIR=/tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-km-2. 6.18_164.2.1.el5-8.3.4
+ export DOCDIR
+ rm -rf /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-km-2.6.18_16 4.2.1.el5-8.3.4
+ /bin/mkdir -p /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-km-2.6.18_16 4.2.1.el5-8.3.4
+ cp -pr drbd/k-config-2.6.18-164.2.1.el5.gz /tmp/drbd-8.3.4/dist/install/usr/share/doc/drbd-km-2.6.18_16 4.2.1.el5-8.3.4
+ exit 0
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Requires: /sbin/depmod drbd = 8.3.4 kernel
Conflicts: km_drbd drbd-kmp <= 8.3.4_3 drbd-kmod <= 8.3.4_3
Processing files: drbd-debuginfo-8.3.4-3
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/drbd-8.3.4/dist/install
Wrote: /tmp/drbd-8.3.4/dist/RPMS/i386/drbd-8.3.4-3.i386.rpm
Wrote: /tmp/drbd-8.3.4/dist/RPMS/i386/drbd-km-2.6.18_164.2.1.el5-8. 3.4-3.i386.rpm
Wrote: /tmp/drbd-8.3.4/dist/RPMS/i386/drbd-debuginfo-8.3.4-3.i386.r pm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.14423
+ umask 022
+ cd /tmp/drbd-8.3.4/dist/BUILD
+ cd drbd-8.3.4
+ '[' -n /tmp/drbd-8.3.4/dist/install -a /tmp/drbd-8.3.4/dist/install '!=' / ']'
+ rm -rf /tmp/drbd-8.3.4/dist/install
+ exit 0
You have now:
-rw-r--r-- 1 root root 200642 Dec 1 09:40 dist/RPMS/i386/drbd-8.3.4-3.i386.rpm
-rw-r--r-- 1 root root 36745 Dec 1 09:40 dist/RPMS/i386/drbd-debuginfo-8.3.4-3.i386.rpm
-rw-r--r-- 1 root root 1036894 Dec 1 09:40 dist/RPMS/i386/drbd-km-2.6.18_164.2.1.el5-8.3.4-3.i386.rpm
[root@hostname drbd-8.3.4]#
|
|
|