Skip to content

libgssapi-0.9.1 doesn't build against libgssapi-sys when using heimdal 7.8 as a distribution #35

@ocdlroux

Description

@ocdlroux

Hi there,

It seems like the types gss_name_struct and gss_cred_id_struct do not exist in the bindgen output of libgssapi-sys when built against heimdal v7.8 (specifically heimdal-7.8.0-unstable-2024-09-10, but I confirmed the symbols didn't exist in 7.8.0 either).

I guess they could just be replaced with their _t counterparts, but having no clues on what really goes on behind the FFIs boundaries, I'll wait for your expertise on that.

I can provide a PR if you want to.

Cheers 🎉

Edit: here are the logs.

error[E0432]: unresolved import `libgssapi_sys::gss_name_struct`
 --> /home/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libgssapi-0.9.1/src/name.rs:8:22
  |
8 |     gss_import_name, gss_name_struct, gss_name_t, gss_release_name, gss_export_name,
  |                      ^^^^^^^^^^^^^^^
  |                      |
  |                      no `gss_name_struct` in the root
  |                      help: a similar name exists in the module: `gss_name_t`

error[E0432]: unresolved imports `libgssapi_sys::gss_cred_id_struct`, `libgssapi_sys::gss_name_struct`
  --> /home/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libgssapi-0.9.1/src/credential.rs:13:68
   |
13 |     gss_OID_set, gss_acquire_cred, gss_acquire_cred_with_password, gss_cred_id_struct,
   |                                                                    ^^^^^^^^^^^^^^^^^^ no `gss_cred_id_struct` in the root
14 |     gss_cred_id_t, gss_cred_usage_t, gss_inquire_cred, gss_name_struct, gss_name_t,
   |                                                        ^^^^^^^^^^^^^^^ no `gss_name_struct` in the root
   |
help: a similar name exists in the module
   |
13 -     gss_OID_set, gss_acquire_cred, gss_acquire_cred_with_password, gss_cred_id_struct,
13 +     gss_OID_set, gss_acquire_cred, gss_acquire_cred_with_password, gss_cred_id_t,
   |
help: a similar name exists in the module
   |
14 -     gss_cred_id_t, gss_cred_usage_t, gss_inquire_cred, gss_name_struct, gss_name_t,
14 +     gss_cred_id_t, gss_cred_usage_t, gss_inquire_cred, gss_name_t, gss_name_t,
   |

error[E0432]: unresolved import `libgssapi_sys::gss_cred_id_struct`
  --> /home/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libgssapi-0.9.1/src/context.rs:12:29
   |
12 |     gss_channel_bindings_t, gss_cred_id_struct, gss_cred_id_t, gss_ctx_id_t,
   |                             ^^^^^^^^^^^^^^^^^^
   |                             |
   |                             no `gss_cred_id_struct` in the root
   |                             help: a similar name exists in the module: `gss_cred_id_t`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `libgssapi` (lib) due to 3 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions