On Solaris with MIT krb5 1.2.x installed in
/local/krb5, when you configure
pam_krb5 (rc7 or 2003.06.01 snapshot) like so:
./configure --with-krb5=/local/krb5
it cannot find krb5_init_context.
This happens because the m4 macro PKRB5_CHECK_KRB5 in
acinclude.m4 first defaults to Heimdal-style libraries
(e.g. -lcrypto -lasn1 -lroken) by adding them to LIBS.
It then looks for the __heimdal_version function, to
determine which flavor of krb5 you have. If that's
not found, it assumes MIT.
The problem is, the next check, for krb5_init_context,
is still trying to link with the Heimdal-style libs,
even though it might have determined that you don't
have Heimdal krb5.
The correct thing to do is to reset LIBS to what was
saved before + the MIT krb5 libraries in the event that
the flavor is MIT.
patch is attached.
patch for acinclude.m4 to fix MIT krb5_init_context configure test
Logged In: YES
user_id=319845
Thanks For Your nice bug report!
The patch is accepted.
balsa