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 did a new install of CentOS 5.4 on an HP DL360 G5 server and updated all packages to the newest versions. The kernel is 2.6.18-164.6.1.el5PAE. I successfully built and installed DRBD 8.3.6 from source using these commands: wget http://oss.linbit.com/drbd/8.3/drbd-8.3.6.tar.gz tar zxvf drbd-8.3.6.tar.gz cd drbd-8.3.6 ./configure --with-km make sudo make install depmod -a mobprobe drbd I prefer using rpms for installing though, so I tried building one but I got the error messages below. Any help would be appreciated, thanks. -sh-3.2$ cd drbd-8.3.6 -sh-3.2$ ll total 240 drwxr-xr-x 2 tyler iders 4096 Nov 18 10:10 benchmark -rw-r--r-- 1 tyler iders 27486 Nov 8 03:38 ChangeLog -rwxr-xr-x 1 tyler iders 130139 Nov 8 03:40 configure -rw-r--r-- 1 tyler iders 7456 Nov 8 03:38 configure.ac -rw-r--r-- 1 tyler iders 17990 Nov 1 2007 COPYING drwxr-xr-x 2 tyler iders 4096 Nov 18 10:10 documentation drwxr-xr-x 3 tyler iders 4096 Nov 18 10:10 drbd lrwxrwxrwx 1 tyler iders 24 Nov 18 10:10 drbd_config.h -> drbd/linux/drbd_config.h -rw-r--r-- 1 tyler iders 4889 Nov 8 02:01 drbd-km.spec.in -rw-r--r-- 1 tyler iders 9072 Nov 8 03:38 drbd.spec.in -rw-r--r-- 1 tyler iders 7046 Nov 8 03:38 Makefile.in -rw-r--r-- 1 tyler iders 425 Nov 27 2008 README drwxr-xr-x 2 tyler iders 4096 Nov 18 10:10 scripts drwxr-xr-x 2 tyler iders 4096 Nov 18 10:10 user -sh-3.2$ ./configure --with-km checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether ln -s works... yes checking for sed... /bin/sed checking for grep... /bin/grep checking for flex... /usr/bin/flex checking for rpmbuild... /usr/bin/rpmbuild checking for xsltproc... /usr/bin/xsltproc checking for tar... /bin/tar checking for git... no checking for dpkg-buildpackage... no checking for udevadm... no checking for udevinfo... /usr/bin/udevinfo configure: WARNING: No dpkg-buildpackage found, building Debian packages is disabled. configure: WARNING: Cannot update buildtag without git. You may safely ignore this warning when building from a tarball. checking for /Makefile... no configure: WARNING: Unable to find a kernel Makefile in . You will have to set KDIR correctly when invoking make. checking for /etc/gentoo-release... no checking for /etc/redhat-release... yes checking for /etc/slackware-version... no checking for /etc/debian_version... no checking for /etc/SuSErelease... no configure: configured for Red Hat (includes Fedora, RHEL, CentOS). configure: creating ./config.status config.status: creating Makefile config.status: creating user/Makefile config.status: creating scripts/Makefile config.status: creating documentation/Makefile -sh-3.2$ make rpm checking for presence of 8\.3\.6 in various changelog files debian/changelog needs update [ignored] make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/users/tyler/drbd/drbd-8.3.6/drbd' make[1]: Leaving directory `/home/users/tyler/drbd/drbd-8.3.6/drbd' make -C documentation doc make[1]: Entering directory `/home/users/tyler/drbd/drbd-8.3.6/documentation' make[1]: Nothing to be done for `doc'. make[1]: Leaving directory `/home/users/tyler/drbd/drbd-8.3.6/documentation' test -e .filelist ln -s -f drbd/linux/drbd_config.h drbd_config.h rm -f drbd-8.3.6 ln -s . drbd-8.3.6 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.6$_DEB.tar.gz rm drbd-8.3.6 /usr/bin/rpmbuild -tb \ --define "kernelversion 2.6.18-164.6.1.el5PAE" \ --define "kdir /lib/modules/2.6.18-164.6.1.el5PAE/build" \ \ drbd-8.3.6.tar.gz gunzip: stdout: Broken pipe error: Failed to rename /usr/src/redhat/SPECS/rpm-spec.dDocWn to /usr/src/redhat/SPECS/rpm-spec.dDocWn: Permission denied: No such file or directory make: *** [rpm] Error 1 -sh-3.2$ sudo make rpm checking for presence of 8\.3\.6 in various changelog files debian/changelog needs update [ignored] make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/users/tyler/drbd/drbd-8.3.6/drbd' make[1]: Leaving directory `/home/users/tyler/drbd/drbd-8.3.6/drbd' make -C documentation doc make[1]: Entering directory `/home/users/tyler/drbd/drbd-8.3.6/documentation' make[1]: Nothing to be done for `doc'. make[1]: Leaving directory `/home/users/tyler/drbd/drbd-8.3.6/documentation' test -e .filelist ln -s -f drbd/linux/drbd_config.h drbd_config.h rm -f drbd-8.3.6 ln -s . drbd-8.3.6 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.6$_DEB.tar.gz rm drbd-8.3.6 /usr/bin/rpmbuild -tb \ --define "kernelversion 2.6.18-164.6.1.el5PAE" \ --define "kdir /lib/modules/2.6.18-164.6.1.el5PAE/build" \ \ drbd-8.3.6.tar.gz error: Name field must be present in package: (main package) error: Version field must be present in package: (main package) error: Release field must be present in package: (main package) error: Summary field must be present in package: (main package) error: Group field must be present in package: (main package) error: License field must be present in package: (main package) make: *** [rpm] Error 1 -sh-3.2$ uname -a Linux emma2.iders.ca 2.6.18-164.6.1.el5PAE #1 SMP Tue Nov 3 16:55:59 EST 2009 i686 i686 i386 GNU/Linux -sh-3.2$ Tyler -- -------------------------------- Software Engineering Iders Incorporated 27047 Oakwood Road Oakbank, Manitoba Canada R0E 1J2 [p] 204-444-5200 ext 241 [f] 204-444-5900 [e] tsutherland at iders.ca -------------------------------- NOTE: This message is intended solely for the use of the designated recipient(s) and their appointed delegates, and may contain confidential information. Any unauthorized disclosure, copying or distribution of its contents is strictly prohibited. If you have received this message in error, please destroy it and advise the sender immediately by phone, Email or facsimile.