<div dir="ltr"><div dir="ltr"><div dir="ltr"><p class="MsoNormal">I am trying to build DRBD 9 on RHEL 8. But I am getting errors related to kernel_module_package.</p><p class="MsoNormal"><br></p><p class="MsoNormal"><i><font color="#0b5394"> GENPATCHNAMES 4.18.0-425.3.1.el8.x86_64</font></i></p><p class="MsoNormal"><i><font color="#0b5394"> SPATCH eefa15f87ca6481caa94489fb6dcb74e 4.18.0-425.3.1.el8.x86_64</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file ./drbd_int.h</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_dax_pmem.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_bitmap.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_sender.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_transport.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_transport_tcp.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_receiver.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_transport_rdma.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_main.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_nla.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_interval.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_kref_debug.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_actlog.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file kref_debug.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_nl.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_req.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_proc.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_state.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_transport_template.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">patching file drbd_debugfs.c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">At main.c:160:</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:69</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:76</font></i></p><p class="MsoNormal"><i><font color="#0b5394">sign-file: certs/signing_key.pem: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">At main.c:160:</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:69</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:76</font></i></p><p class="MsoNormal"><i><font color="#0b5394">sign-file: certs/signing_key.pem: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">At main.c:160:</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:69</font></i></p><p class="MsoNormal"><i><font color="#0b5394">- SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:76</font></i></p><p class="MsoNormal"><i><font color="#0b5394">sign-file: certs/signing_key.pem: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: could not open /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/modules.order: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol __ib_alloc_pd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_resolve_addr</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_reject</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_disconnect</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol __rdma_create_kernel_id</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_resolve_route</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_bind_addr</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_create_qp</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_listen</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_destroy_qp</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol __ib_create_cq</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol ib_destroy_cq_user</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_connect</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol ib_modify_qp</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_destroy_id</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol rdma_accept</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd_transport_rdma.ko needs unknown symbol ib_dealloc_pd_user</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/extra/drbd/drbd.ko needs unknown symbol crc32c</font></i></p><p class="MsoNormal"><i><font color="#0b5394">depmod: WARNING: could not open /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/lib/modules/4.18.0-425.3.1.el8.x86_64/modules.builtin: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ '[' '!' -z '' ']'</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ :</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ popd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">/scratchpad/workdirs/rapraja/build/RPM/BUILD/drbd-9.23.1</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/redhat/brp-ldconfig</font></i></p><p class="MsoNormal"><i><font color="#0b5394">/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-compress</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-strip /usr/bin/strip</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-python-bytecompile '' 1</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/brp-python-hardlink</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ PYTHON3=/usr/libexec/platform-python</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/lib/rpm/redhat/brp-mangle-shebangs</font></i></p><p class="MsoNormal"><i><font color="#0b5394">Processing files: drbd-9.23.1-1prerel0.69450.x86_64</font></i></p><p class="MsoNormal"><i><font color="#0b5394">error: File must begin with "/": %kernel_module_package</font></i></p><p class="MsoNormal"><i><font color="#0b5394">error: File must begin with "/": %kernel_module_package</font></i></p><p class="MsoNormal"><i><font color="#0b5394">Executing(%doc): /bin/sh -e /scratchpad/workdirs/rapraja/tmp/rpm-tmp.N8Jl3X</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ umask 022</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ cd /scratchpad/workdirs/rapraja/build/RPM/BUILD</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ cd drbd-9.23.1</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ DOCDIR=/scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/usr/share/doc/drbd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ export LC_ALL=C</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ LC_ALL=C</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ export DOCDIR</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ /usr/bin/mkdir -p /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/usr/share/doc/drbd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ cp -pr drbd-9.23.1/COPYING /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/usr/share/doc/drbd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ cp -pr drbd-9.23.1/ChangeLog /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/usr/share/doc/drbd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ cp -pr drbd-9.23.1/README.md /scratchpad/workdirs/rapraja/build/RPM/BUILDROOT/drbd-9.23.1-1prerel0.69450.x86_64/usr/share/doc/drbd</font></i></p><p class="MsoNormal"><i><font color="#0b5394">+ exit 0</font></i></p><p class="MsoNormal"><i><font color="#0b5394"><br></font></i></p><p class="MsoNormal"><i><font color="#0b5394"><br></font></i></p><p class="MsoNormal"><i><font color="#0b5394">RPM build errors:</font></i></p><p class="MsoNormal"><i><font color="#0b5394"> Macro expanded in comment on line 36: %{?lb_flavors}</font></i></p><p class="MsoNormal"><i><font color="#0b5394"><br></font></i></p><p class="MsoNormal"><i><font color="#0b5394"> Macro expanded in comment on line 65: %{?lb_flavors}</font></i></p><p class="MsoNormal"><i><font color="#0b5394"><br></font></i></p><p class="MsoNormal"><i><font color="#0b5394"> File must begin with "/": %kernel_module_package</font></i></p><p class="MsoNormal"><i><font color="#0b5394"> File must begin with "/": %kernel_module_package</font></i></p><p class="MsoNormal"><i><font color="#0b5394">make[1]: *** [/usr/TKLC/build/make/rpm.core.make:198: build_rpm] Error 1</font></i></p><p class="MsoNormal"><i><font color="#0b5394">make: *** [/usr/TKLC/build/make/rpm.core.make:154: rpm] Error 2</font></i></p><p class="MsoNormal"><i><font color="#0b5394">ERROR: Make failed!</font></i></p><p class="MsoNormal"><i><font color="#0b5394">ERROR: RC: 2</font></i></p><p class="MsoNormal"><i><font color="#0b5394">ERROR: CMD: /usr/bin/make -s -f pkg-Linux.make rpm</font></i></p><p class="MsoNormal"><i><font color="#0b5394">ERROR: MAKEFILE: pkg-Linux.make</font></i></p><p class="MsoNormal"><i><font color="#0b5394">[root@hostname7bbd38e47520 drbd(x86_64)]$</font></i></p><div><br></div>
<p class="MsoNormal">I couldn't find any solution for this issue. Could you please provide your inputs on how to proceed from here as we are stuck. <span></span></p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks & Regards</p><p class="MsoNormal">Shriya</p>
<p class="MsoNormal"><span> </span></p></div></div></div>