Skip to content

cmake linker error on MacOS #413

@llothar

Description

@llothar

A simple "cmake -DCMAKE_BUILD_TYPE=Release .." on MacOS system (14.5) does not build the library because of linker error.

Looks like the cmake script misses to link against libkrb5 and libgssapi (both suggested library names i got from ChatGPT).

Also the released zip file "libsmb2-6.2" on github does include a toplevel garbage __MACOSX directory.

  "_gss_release_cred", referenced from:
      _smb2_destroy_context in init.c.o
  "_krb5_free_auth_data", referenced from:
      _free_c_data in libsmb2.c.o
  "_krb5_get_output_token_buffer", referenced from:
      _send_session_setup_request in libsmb2.c.o
  "_krb5_get_output_token_length", referenced from:
      _send_session_setup_request in libsmb2.c.o
  "_krb5_negotiate_reply", referenced from:
      _negotiate_cb in libsmb2.c.o
  "_krb5_session_get_session_key", referenced from:
      _session_setup_cb in libsmb2.c.o
  "_krb5_session_request", referenced from:
      _send_session_setup_request in libsmb2.c.o
      _session_setup_cb in libsmb2.c.o

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