Order of library search for gss_init_sec_context

"Peter C. Norton" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
In-house, we're using heimdal kerberos libraries for freetds, since
MIT Kerberos 1.8 isn't working correctly for the delegation that we
need for BULK INSERT, FROM OPENROWSET, etc. with MS SQL Server.

There's an interesting detail, though.  Since configure defines its
tests for the requisite libraries as being in this order:

gssapi_krb5 gssapi

the heimdal libraries will never be found because they only provide
gssapi.

This diff fixes the behavior for me:

--- configure   17 Sep 2010 17:11:02 -0000      1.1.1.7
+++ configure   4 Oct 2010 20:40:06 -0000       1.2
@@ -13035,7 +13035,7 @@
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 if test "$ac_cv_search_gss_init_sec_context" = no; then
-  for ac_lib in gssapi_krb5 gssapi; do
+  for ac_lib in gssapi gssapi_krb5; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */


but I'm wondering if this would break kerberos for anyone else?  If
not, can it make its way into the configure script provided at
release?

Thanks,

-Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.