Re: krb5 missing?



Jim,

Best i can come up with is this extract from config.in ---->

dnl ********
AC_ARG_WITH(krb5, [  --with-krb5=DIR      Location of Kerberos 5 installation], with_krb5="$withval", with_krb5="/usr")
AC_ARG_WITH(krb5-libs, [  --with-krb5-libs=DIR Location of Kerberos 5 libraries], with_krb5_libs="$withval", with_krb5_libs="$with_krb5/lib")
AC_ARG_WITH(krb5-includes, [  --with-krb5-includes=DIR Location of Kerberos 5 headers], with_krb5_includes="$withval", with_krb5_includes="")


mitlibs="-lkrb5 -lk5crypto -lcom_err -lgssapi_krb5"
heimlibs="-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi"
AC_CACHE_CHECK([for Kerberos 5], ac_cv_lib_kerberos5,
[
    LDFLAGS_save="$LDFLAGS"
    LDFLAGS="$LDFLAGS -L$with_krb5_libs $mitlibs"
    AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$mitlibs",
    [
        LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $heimlibs"
        AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs", ac_cv_lib_kerberos5="no")
    ])
    LDFLAGS="$LDFLAGS_save"
])
if test "$ac_cv_lib_kerberos5" = "no"; then
    AC_MSG_ERROR(Could not find krb5. Install krb5 or heimdal packages.)
fi

<-----------------


Goog luck

Mike

Jim Maas wrote:
Thanks Mike,

Do you know what file(s) it is looking for?  I'm just reading now and this kerberos thing looks huge, lots of setup with MIT?

Thanks

Jim

Michael Parlett wrote:
Jim Maas wrote:
Jim,

Not sure what your target system is but this is what I have used on a fully patched RH9 box-->

1. Same errors as you when compiling ximian-onnector

2. added fix as per faq my Makefile is now
             CONFIGURE_ARGS = $(DIRPATHS) --with-krb5=/usr/kerberos

3. My kerberos stufff is in this dir and installed from the standard RH9 rpm's
        krb5-devel-1.2.7-14
        krb5-libs-1.2.7-14

4. Compiles no problem

I would remove all current KRB5 stuff and start anew from the relevant rpm's for your box. I am not sure if there is a standard  location for KRB but multiple ones will throw the build for sure

Mike


Can anyone please tell me what file the compiler is looking for here?

I've read the FAQ, tried the instructions, didn't work so went and installed krb5 from source and
tried all manner of
--with-krb5=/usr/kerberos
pointing to different directories in the Makefile for ximian-
onnector but still no luck.  I followed the faq posting from RH that suggested that it was krb5.h that the compiler was looking for.  Is that correct?  On my new krb5 installation it is located in /usr/local/include

however setting the --with-krb5 to that directory has not worked either. 

Suggestions with thanks?!

Jim


checking for Kerberos 5... no
configure: error: Could not find krb5. Install krb5 or heimdal packages.

-- 


==============================================
Jim Maas   jamaas at btinternet dot com


-- 


==============================================
Jim Maas Ph.D.
29 Amber Close
Earley, Reading, UK
RG6 7ED

0118-935-3283
0771-985-8698
jamaas at btinternet dot com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]