Kernel make build failed updating to 5.14.0-503: Error! snapapi26/0.8.18 is broken! Missing the source directory or the symbolic link pointing to it

DNF update/reinstall log:

dnf reinstall kernel kernel-core kernel-devel kernel-modules kernel-modules-core kernel-devel-matched kernel-headers kernel-tools kernel-tools-libs
Last metadata expiration check: 0:17:21 ago on Tue 11 Mar 2025 16:27:20 GMT.
Dependencies resolved.
=====================================================================================================================================================================================================================================================
 Package                                                          Architecture                                       Version                                                             Repository                                             Size
=====================================================================================================================================================================================================================================================
Reinstalling:
 kernel                                                           x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                2.0 M
 kernel-core                                                      x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                 18 M
 kernel-devel                                                     x86_64                                             5.14.0-503.29.1.el9_5                                               appstream                                              18 M
 kernel-devel-matched                                             x86_64                                             5.14.0-503.29.1.el9_5                                               appstream                                             2.0 M
 kernel-headers                                                   x86_64                                             5.14.0-503.29.1.el9_5                                               appstream                                             3.5 M
 kernel-modules                                                   x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                 36 M
 kernel-modules-core                                              x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                 30 M
 kernel-tools                                                     x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                2.3 M
 kernel-tools-libs                                                x86_64                                             5.14.0-503.29.1.el9_5                                               baseos                                                2.0 M

Transaction Summary
=====================================================================================================================================================================================================================================================

Total download size: 114 M
Installed size: 201 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): kernel-tools-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                                 5.3 MB/s | 2.3 MB     00:00
(2/9): kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                            4.2 MB/s | 2.0 MB     00:00
(3/9): kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                           13 MB/s |  30 MB     00:02
(4/9): kernel-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                                       4.1 MB/s | 2.0 MB     00:00
(5/9): kernel-core-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                                  5.7 MB/s |  18 MB     00:03
(6/9): kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                         5.1 MB/s | 2.0 MB     00:00
(7/9): kernel-modules-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                               8.8 MB/s |  36 MB     00:04
(8/9): kernel-headers-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                               1.4 MB/s | 3.5 MB     00:02
(9/9): kernel-devel-5.14.0-503.29.1.el9_5.x86_64.rpm                                                                                                                                                                 8.1 MB/s |  18 MB     00:02
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                 17 MB/s | 114 MB     00:06
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                             1/1
  Reinstalling     : kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                   1/18
  Running scriptlet: kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                   1/18
  Reinstalling     : kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                           2/18
  Reinstalling     : kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                3/18
  Running scriptlet: kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                3/18
  Reinstalling     : kernel-devel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  4/18
  Running scriptlet: kernel-devel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  4/18
  Reinstalling     : kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                             5/18
  Running scriptlet: kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                             5/18
  Reinstalling     : kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  6/18
  Running scriptlet: kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  6/18
  Reinstalling     : kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                          7/18
  Reinstalling     : kernel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                        8/18
  Reinstalling     : kernel-headers-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                9/18
  Cleanup          : kernel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                       10/18
  Running scriptlet: kernel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                       10/18
  Cleanup          : kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               11/18
  Running scriptlet: kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               11/18
  Cleanup          : kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                         12/18
  Running scriptlet: kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 13/18
  Cleanup          : kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 13/18
  Running scriptlet: kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 13/18
  Running scriptlet: kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  14/18
  Cleanup          : kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  14/18
  Running scriptlet: kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  14/18
  Cleanup          : kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                          15/18
  Cleanup          : kernel-devel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 16/18
  Cleanup          : kernel-headers-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               17/18
  Cleanup          : kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                            18/18
  Running scriptlet: kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                            18/18
  Running scriptlet: kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  18/18

Error! snapapi26/0.8.18 is broken! Missing the source directory or the symbolic link pointing to it.
Manual intervention is required!
Sign command: /lib/modules/5.14.0-503.29.1.el9_5.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module file_protector/1.1-1509 for kernel 5.14.0-503.29.1.el9_5.x86_64 (x86_64)
Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j48 KERNELRELEASE=5.14.0-503.29.1.el9_5.x86_64 -C /lib/modules/5.14.0-503.29.1.el9_5.x86_64/build M=/var/lib/dkms/file_protector/1.1-1509/build

Error! Bad return status for module build on kernel: 5.14.0-503.29.1.el9_5.x86_64 (x86_64)
Consult /var/lib/dkms/file_protector/1.1-1509/build/make.log for more information.

Autoinstall on 5.14.0-503.29.1.el9_5.x86_64 failed for module(s) file_protector(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.

  Running scriptlet: kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                          18/18
  Running scriptlet: kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               18/18
  Running scriptlet: kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                            18/18
  Verifying        : kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                             1/18
  Verifying        : kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                             2/18
  Verifying        : kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  3/18
  Verifying        : kernel-tools-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  4/18
  Verifying        : kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                           5/18
  Verifying        : kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                           6/18
  Verifying        : kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                7/18
  Verifying        : kernel-modules-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                8/18
  Verifying        : kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                   9/18
  Verifying        : kernel-core-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                  10/18
  Verifying        : kernel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                       11/18
  Verifying        : kernel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                       12/18
  Verifying        : kernel-headers-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               13/18
  Verifying        : kernel-headers-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                               14/18
  Verifying        : kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                         15/18
  Verifying        : kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                         16/18
  Verifying        : kernel-devel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 17/18
  Verifying        : kernel-devel-5.14.0-503.29.1.el9_5.x86_64                                                                                                                                                                                 18/18

Reinstalled:
  kernel-5.14.0-503.29.1.el9_5.x86_64            kernel-core-5.14.0-503.29.1.el9_5.x86_64            kernel-devel-5.14.0-503.29.1.el9_5.x86_64    kernel-devel-matched-5.14.0-503.29.1.el9_5.x86_64    kernel-headers-5.14.0-503.29.1.el9_5.x86_64
  kernel-modules-5.14.0-503.29.1.el9_5.x86_64    kernel-modules-core-5.14.0-503.29.1.el9_5.x86_64    kernel-tools-5.14.0-503.29.1.el9_5.x86_64    kernel-tools-libs-5.14.0-503.29.1.el9_5.x86_64

Complete!

and /var/lib/dkms/file_protector/1.1-1509/build/make.log:

KMS (dkms-3.1.5) make.log for file_protector/1.1-1509 for kernel 5.14.0-503.29.1.el9_5.x86_64 (x86_64)
Tue 11 Mar 16:48:07 GMT 2025
Cleaning build area
# command: make -C /lib/modules/5.14.0-503.29.1.el9_5.x86_64/build M=/var/lib/dkms/file_protector/1.1-1509/build clean
make: Entering directory '/usr/src/kernels/5.14.0-503.29.1.el9_5.x86_64'
make: Leaving directory '/usr/src/kernels/5.14.0-503.29.1.el9_5.x86_64'

# exit code: 0
# elapsed time: 00:00:00
Building module(s)
# command: make -j48 KERNELRELEASE=5.14.0-503.29.1.el9_5.x86_64 -C /lib/modules/5.14.0-503.29.1.el9_5.x86_64/build M=/var/lib/dkms/file_protector/1.1-1509/build
make: Entering directory '/usr/src/kernels/5.14.0-503.29.1.el9_5.x86_64'
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/compat.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/module.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/module_rundown_protection.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/rundown_protection.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/syscall_common.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/tracepoints.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/task_info_map.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/device.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/exit_event.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/fork_event.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/fs_event.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/message.o
  CC [M]  /var/lib/dkms/file_protector/1.1-1509/build/transport/transport.o
/var/lib/dkms/file_protector/1.1-1509/build/compat.c: In function ‘kallsyms_on_each_symbol_compat’:
/var/lib/dkms/file_protector/1.1-1509/build/compat.c:145:44: error: passing argument 1 of ‘kallsyms_on_each_symbol_ptr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  145 |         return kallsyms_on_each_symbol_ptr(fn, data);
      |                                            ^~
      |                                            |
      |                                            int (*)(void *, const char *, struct module *, long unsigned int)
/var/lib/dkms/file_protector/1.1-1509/build/compat.c:145:44: note: expected ‘int (*)(void *, const char *, long unsigned int)’ but argument is of type ‘int (*)(void *, const char *, struct module *, long unsigned int)’
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:249: /var/lib/dkms/file_protector/1.1-1509/build/compat.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c: In function ‘sc_read_handler’:
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c:803:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
  803 |                 offset = pos_from_hilo(pos_h, pos_l);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c:804:9: note: here
  804 |         case COMPAT_READV_HOOK_TYPE:
      |         ^~~~
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c: In function ‘sc_write_handler’:
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c:1061:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1061 |                 offset = pos_from_hilo(pos_h, pos_l);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/file_protector/1.1-1509/build/syscall_hooks/fs_syscall_hooks.c:1062:9: note: here
 1062 |         case COMPAT_WRITEV_HOOK_TYPE:
      |         ^~~~
make: *** [Makefile:1944: /var/lib/dkms/file_protector/1.1-1509/build] Error 2
make: Leaving directory '/usr/src/kernels/5.14.0-503.29.1.el9_5.x86_64'

# exit code: 2