Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

krb5support linkage issue #814

Open
kevincai opened this issue Oct 16, 2023 · 4 comments
Open

krb5support linkage issue #814

kevincai opened this issue Oct 16, 2023 · 4 comments
Assignees
Milestone

Comments

@kevincai
Copy link

kevincai commented Oct 16, 2023

looks like the -lkrb5support is necessary now for a static link. maybe a revert of #440 is necessary?

config.log gives the following error.

configure:16267: /opt/rh/gcc-toolset-10/root/usr/bin/gcc -o conftest -Wall -W  -I /root/installed/include -DOBSOLETE_CRAM_ATTR=1 -I/root/installed/include -DOBSOLETE_DIGEST_ATTR=1 -L/root/installed/lib64 -Wl,-rpath,/root/installed/lib64 -L/root/installed/lib -pthread -ldl conftest.c -lgssapi_krb5  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err   >&5
/root/installed/lib/libgssapi_krb5.a(util_errmap.o): In function `k5_mutex_lock':
util_errmap.c:(.text+0x23): undefined reference to `k5_os_mutex_lock'
/root/installed/lib/libgssapi_krb5.a(util_errmap.o): In function `k5_mutex_unlock':
util_errmap.c:(.text+0x8f): undefined reference to `k5_os_mutex_unlock'
/root/installed/lib/libgssapi_krb5.a(util_errmap.o): In function `gssint_mecherrmap_destroy':
util_errmap.c:(.text+0x97f): undefined reference to `k5_os_mutex_destroy'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `k5_mutex_lock':
g_initialize.c:(.text+0x23): undefined reference to `k5_os_mutex_lock'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `k5_mutex_unlock':
g_initialize.c:(.text+0x8f): undefined reference to `k5_os_mutex_unlock'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `gssint_mechglue_fini':
g_initialize.c:(.text+0x223): undefined reference to `k5_os_mutex_destroy'
g_initialize.c:(.text+0x22d): undefined reference to `k5_os_mutex_destroy'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `gssint_mechglue_initialize_library':
g_initialize.c:(.text+0x272): undefined reference to `k5_once'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `releaseMechInfo':
g_initialize.c:(.text+0xc90): undefined reference to `krb5int_close_plugin'
/root/installed/lib/libgssapi_krb5.a(g_initialize.o): In function `build_dynamicMech': 
...

configure prints following info to console

configure:16276: result: no
configure:16480: WARNING: Disabling GSSAPI - specified library not found
configure:16640: checking GSSAPI
configure:16892: result: disabled
@SolaTian
Copy link

I also encountered the same problem,Did you solve it later?

@kevincai
Copy link
Author

@SolaTian
Copy link

Thanks for your help, I've solved the question

@quanah quanah self-assigned this Jul 22, 2024
@quanah quanah added this to the 2.2.0 milestone Jul 22, 2024
@quanah
Copy link
Contributor

quanah commented Aug 20, 2024

It should only be added for static builds if detected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants