NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
328 stars 66 forks source link

Build failure on el9.3 (redhat/alma/rocky/etc) #417

Closed Chaz6 closed 1 year ago

Chaz6 commented 1 year ago

AlmaLinux 9.3 was recently released and I am unable to build Jool:-

# dkms install jool/4.1.8.git.v4.1.8.11.g6dfa2f69 -k 5.14.0-362.8.1.el9_3.x86_64

Sign command: /lib/modules/5.14.0-362.8.1.el9_3.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=5.14.0-362.8.1.el9_3.x86_64 -C /lib/modules/5.14.0-362.8.1.el9_3.x86_64/build M=/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common modules && make -C /lib/modules/5.14.0-362.8.1.el9_3.x86_64/build M=/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/nat64 modules && make -C /lib/modules/5.14.0-362.8.1.el9_3.x86_64/build M=/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/siit modules.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.14.0-362.8.1.el9_3.x86_64 (x86_64)
Consult /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/make.log for more information.

The file /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/make.log contains the following:-

  CC [M]  /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/atomic_config.o
  CC [M]  /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/attribute.o
  CC [M]  /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.o
  CC [M]  /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_core.o
/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.c:207:21: error: initialization of ‘int (*)(const struct genl_split_ops *, struct sk_buff *, struct genl_info *)’ from incompatible pointer type ‘int (*)(const struct genl_ops *, struct sk_buff *, struct genl_info *)’ [-Werror=incompatible-pointer-types]
  207 |         .pre_doit = pre_handle_request,
      |                     ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.c:207:21: note: (near initialization for ‘jool_family.pre_doit’)
/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.c:208:22: error: initialization of ‘void (*)(const struct genl_split_ops *, struct sk_buff *, struct genl_info *)’ from incompatible pointer type ‘void (*)(const struct genl_ops *, struct sk_buff *, struct genl_info *)’ [-Werror=incompatible-pointer-types]
  208 |         .post_doit = post_handle_request,
      |                      ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.c:208:22: note: (near initialization for ‘jool_family.post_doit’)
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:299: /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common/nl/nl_handler.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1928: /var/lib/dkms/jool/4.1.8.git.v4.1.8.11.g6dfa2f69/build/src/mod/common] Error 2
make: Leaving directory '/usr/src/kernels/5.14.0-362.8.1.el9_3.x86_64'
Chaz6 commented 1 year ago

Thank you @ydahhrk