[krbdev.mit.edu #3838] 1.5 alpha: cannot compile static only...

Ezra Peisach via RT rt-comment at krbdev.mit.edu
Sat Jun 3 17:51:02 EDT 2006


Now that libkrb5 depends on the plugin interface, one cannot configure
--disable-shared --enable-static and get it to compile - there is a link
dependency on libdl (dlopen, etc).

Why would I want this... On occasion, I have wanted to copy a staticly
linked executable to another machine - for which I then only need a
krb5.conf. 

We are "winning" because when linking shared libraries - we "win" - as
the support library will drag in libdl. Probably KRB5_BASE_LIBS should
be modified to include DL_LIB.

Currently, the build tree Makefile.in only specifies DL_LIB when
KDB5_LIBS are used - so for the kdc kadmind, etc.

Also - krb5-config should be modified as well...

Ezra






More information about the krb5-bugs mailing list