Menu

#1 configure fails with MIT krb5 on Solaris

closed-accepted
nobody
None
5
2003-08-02
2003-07-18
Tim Mooney
No

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.

Discussion

  • Tim Mooney

    Tim Mooney - 2003-07-18

    patch for acinclude.m4 to fix MIT krb5_init_context configure test

     
  • Balazs GAL

    Balazs GAL - 2003-08-02

    Logged In: YES
    user_id=319845

    Thanks For Your nice bug report!

    The patch is accepted.

    balsa

     
  • Balazs GAL

    Balazs GAL - 2003-08-02
    • status: open --> closed-accepted
     

Log in to post a comment.