Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
/ 2006-10-17 08:35:15 +0200 \ Francis SOUYRI: > Hello, > > When I try to compile the drbd 0.7.21 with the latest fc5 kernel 2.6.18-1.2200 I have these > messages. > > ++ echo -e '#include <linux/version.h>\ndrbd_kernel_release UTS_RELEASE' > ++ gcc -nostdinc -E -P -I/lib/modules/2.6.18-1.2200.fc5/source/include - > ++ sed -ne 's/^drbd_kernel_release "\(.*\)".*/\1/p' > + test = 2.6.18-1.2200.fc5smp > /var/tmp/rpm-tmp.3564: line 40: test: =: unary operator expected > error: Bad exit status from /var/tmp/rpm-tmp.3564 (%prep) > > > RPM build errors: > Macro %kernelversion has empty body > Macro %kernelversion has empty body > Bad exit status from /var/tmp/rpm-tmp.3564 (%prep) > make: *** [rpm] Error 1 it works for me. it does not for you. so please make sure you did install your kernel headers correctly, or prepared your kernel source appropriately. yes, I could patch that line (missing quotes), but the error would then be: + test '' = 2.6.18-1.2200.fc5smp error: Bad exit status from ... (%prep) so get your preparation right. follow what is outlined in INSTALL first, try to just make it. if that works out ok, try to make an rpm of it. if some part of what is written in INSTALL is no longer true, you'll find out that way. cheers. -- : Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com : __ please use the "List-Reply" function of your email client.