[DRBD-user] drbd-9.0.8-1 build on RHEL 8 error

Gao, X (Nokia - CN/Beijing) x.gao at nokia.com
Thu Jun 27 09:22:32 CEST 2019

Hi drbd users,
We are using the make kmp-rpm to build the drbd kernel 9.0.8-0rc1 based on RHEL 8kernel drbd, and during the prep step, build exists with abnormal status.
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lfqAW0
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf drbd-9.0.18-0rc1
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/drbd-9.0.18-0rc1.tar.gz
+ /usr/bin/tar -xof -
+ '[' 0 -ne 0 ']'
+ cd drbd-9.0.18-0rc1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ %kernel_module_package -v 9.0.18_4.18.0_80.4.2.el8_0.x86_64 -n drbd -f filelist-redhat
/var/tmp/rpm-tmp.lfqAW0: line 51: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.lfqAW0 (%prep)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.lfqAW0 (%prep)
make: *** [Makefile:244: kmp-rpm] Error 1
Build of drbd package failed.

Seems the macro kernel_module_package is not defined in RHEL 8. I'm confused is there another macro to replace the kernel_module_package, or I have to define this macro by myself?
Anybody build the drbd-9.0.8 successfully on RHEL 8?

Best Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20190627/3b6ff3b2/attachment.htm>

More information about the drbd-user mailing list