Skip to content

issue with smb compiling #11

Open
Open

Description

@netseevol

It looks like this no longer works with the latest version of Debian.

/root/source/openvas-smb-22.5.8/samba/auth/credentials/credentials_krb5.c: In fu nction ‘cli_credentials_set_from_ccache’:
/root/source/openvas-smb-22.5.8/samba/auth/credentials/credentials_krb5.c:102:9: warning: ‘krb5_princ_realm’ is deprecated: Use X instead [-Wdeprecated-declarat ions]
102 | realm = krb5_princ_realm(cred->ccache->smb_krb5_context->krb5_co ntext, princ);
| ^~~~~
In file included from /usr/include/heimdal/krb5.h:967,
from /root/source/openvas-smb-22.5.8/samba/lib/replace/system/k erberos.h:133,
from /root/source/openvas-smb-22.5.8/samba/auth/credentials/cre dentials_krb5.c:33:
/usr/include/heimdal/krb5-protos.h:6397:1: note: declared here
6397 | krb5_princ_realm (
| ^~~~~~~~~~~~~~~~
[ 5%] Building C object samba/CMakeFiles/samba-static.dir/auth/gensec/gensec_gs sapi.c.o
/root/source/openvas-smb-22.5.8/samba/auth/credentials/credentials_krb5.c: In fu nction ‘cli_credentials_get_client_gss_creds’:
/root/source/openvas-smb-22.5.8/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.8/samba/auth/credentials/credentials_krb5.c: In fu nction ‘cli_credentials_set_client_gss_creds’:
/root/source/openvas-smb-22.5.8/samba/auth/credentials/credentials_krb5.c:367:20 : error: implicit declaration of function ‘gss_krb5_copy_ccache’ [-Wimplicit-fun ction-declaration]
367 | maj_stat = gss_krb5_copy_ccache(&min_stat,
| ^~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [samba/CMakeFiles/samba-static.dir/build.make:1473: samba/CMakeFil es/samba-static.dir/auth/credentials/credentials_krb5.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_gssapi.c: In function ‘ gssapi_error_string’:
/root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_gssapi.c:104:28: warnin g: passing argument 4 of ‘gss_display_status’ discards ‘const’ qualifier from po inter target type [-Wdiscarded-qualifiers]
104 | mech, &msg_ctx, &maj_error_message);
| ^~~~
In file included from /usr/include/heimdal/gssapi.h:39,
from /usr/include/heimdal/gssapi/gssapi_krb5.h:39,
from /root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_g ssapi.c:32:
/usr/include/heimdal/gssapi/gssapi.h:574:13: note: expected ‘gss_OID’ {aka ‘stru ct gss_OID_desc_struct * const’} but argument is of type ‘const gss_OID_desc *’ {aka ‘const struct gss_OID_desc_struct *’}
574 | const gss_OID /mech_type/,
| ^~~~~~~~~~~~~
/root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_gssapi.c:106:28: warnin g: passing argument 4 of ‘gss_display_status’ discards ‘const’ qualifier from po inter target type [-Wdiscarded-qualifiers]
106 | mech, &msg_ctx, &min_error_message);
| ^~~~
/usr/include/heimdal/gssapi/gssapi.h:574:13: note: expected ‘gss_OID’ {aka ‘stru ct gss_OID_desc_struct * const’} but argument is of type ‘const gss_OID_desc *’ {aka ‘const struct gss_OID_desc_struct *’}
574 | const gss_OID /mech_type/,
| ^~~~~~~~~~~~~
/root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_gssapi.c: In function ‘ gensec_gssapi_start’:
/root/source/openvas-smb-22.5.8/samba/auth/gensec/gensec_gssapi.c:205:9: warning : ‘gsskrb5_set_send_to_kdc’ is deprecated [-Wdeprecated-declarations]
205 | ret = gsskrb5_set_send_to_kdc(&send_to_kdc);
| ^~~
/usr/include/heimdal/gssapi/gssapi_krb5.h:121:1: note: declared here
121 | gsskrb5_set_send_to_kdc(struct gsskrb5_send_to_kdc *)
| ^~~~~~~~~~~~~~~~~~~~~~~
gmake[1]: *** [CMakeFiles/Makefile2:155: samba/CMakeFiles/samba-static.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
2025-06-02 05:31:05 [ERROR] Command 'cmake --build /root/build/openvas-smb -j4' failed with status 2.
2025-06-02 05:31:05 [INFO] Cleaning up temporary directories...
2025-06-02 05:31:05 [INFO] Cleanup completed.

Activity

  1. EeroV commented on Jul 31, 2025

    @EeroV

    this was fixed by openvas developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions