Openvas-smb compile error on kali

Hi,

How to fix this compile error:

/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c: In function ‘cli_credentials_set_from_ccache’:
/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c:102:9: warning: ‘krb5_princ_realm’ is deprecated: Use X instead [-Wdeprecated-declarations]
  102 |         realm = krb5_princ_realm(cred->ccache->smb_krb5_context->krb5_context, princ);
      |         ^~~~~
In file included from /usr/include/heimdal/krb5.h:967,
                 from /root/source/openvas-smb-22.5.7/samba/lib/replace/system/kerberos.h:133,
                 from /root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c:33:
/usr/include/heimdal/krb5-protos.h:6397:1: note: declared here
 6397 | krb5_princ_realm (
      | ^~~~~~~~~~~~~~~~
/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c: In function ‘cli_credentials_get_client_gss_creds’:
/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c:316:20: error: implicit declaration of function ‘gss_krb5_import_cred’; did you mean ‘gss_import_cred’? [-Wimplicit-function-declaration]
  316 |         maj_stat = gss_krb5_import_cred(&min_stat, ccache->ccache, NULL, NULL,
      |                    ^~~~~~~~~~~~~~~~~~~~
      |                    gss_import_cred
/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c: In function ‘cli_credentials_set_client_gss_creds’:
/root/source/openvas-smb-22.5.7/samba/auth/credentials/credentials_krb5.c:367:20: error: implicit declaration of function ‘gss_krb5_copy_ccache’ [-Wimplicit-function-declaration]
  367 |         maj_stat = gss_krb5_copy_ccache(&min_stat,
      |                    ^~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [samba/CMakeFiles/samba-static.dir/build.make:1473: samba/CMakeFiles/samba-static.dir/auth/credentials/credentials_krb5.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:155: samba/CMakeFiles/samba-static.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
2025-04-27 07:03:25 [ERROR] Command 'cmake --build /root/build/openvas-smb -j2' failed with status 2.