Description of problem: Cannot build drbd packages from the source rpm. Make fails with the following message "won't compile with this kernel version". Based on drbd/Makefile it does not support build for the current kernel version. Version-Release number of selected component (if applicable): drbd-8.3.11-4.fc16 kernel-3.3.0-4.fc16.x86_64 How reproducible: Steps to Reproduce: 1. Try to build rpm -ivh drbd-8.3.11-4.fc16.src.rpm cd rpmbuild/SPECS rpmbuild -bb drbd-8.3.11.spec Actual results: ... + make -j3 make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/mur/rpmbuild/BUILD/drbd-8.3.11/drbd' Makefile:95: *** "won't compile with this kernel version". Stop. make[1]: Leaving directory `/home/mur/rpmbuild/BUILD/drbd-8.3.11/drbd' make: *** [drbd/drbd_buildtag.c] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.VGNFNK (%build) Expected results: Sucessfull build Additional info: I have modified drbd/Makefile to print more information just to be sure that it extracts patchlevel correctly. [drbd-8.3.11]$ make make -C drbd drbd_buildtag.c make[1]: Entering directory `/home/mur/rpmbuild/BUILD/drbd-8.3.11/drbd' Makefile:98: *** "won't compile with this kernel version - ======== KDIR_Makefile_PATCHLEVEL 3 ======== KDIR_Makefile /lib/modules/3.3.0-4.fc16.x86_64/source/Makefile ". Stop. # uname -r 3.3.0-4.fc16.x86_64 ---- /lib/modules/3.3.0-4.fc16.x86_64/source/Makefile --- VERSION = 3 PATCHLEVEL = 3 SUBLEVEL = 0 EXTRAVERSION = -4.fc16.x86_64 NAME = Saber-toothed Squirrel ...
I gave this a try tonight, but I couldn't reproduce what you found. Here's what I tried: 1) Downloaded DRBD source from LINBIT directly and configured/compiled it on Fedora 16 with 3.3.0-8.fc16.x86_64 (3.3.0-4 wasn't available). 2) Built binary RPM's from the DRBD spec file on the same Fedora 16 box. 3) Ran Koji builds for both rawhide and Fedora 17 (both on 3.3.0+). All three of those succeeded without issue. It might be worth trying a kernel upgrade on your F16 box to 3.3.0-8 to see if that corrects the problem.
drbd-8.3.11-5.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/drbd-8.3.11-5.fc17
Ignore that previous update comment -- attached the wrong ticket in the bodhi update.