Re: krb5 not found



Jim Maas wrote:
Come'on all you wizards ... I've thrown down the gauntlet here !! :-)

Give me a couple of clues to see if I can trace my way back through this.  Is this the program 'autoconf" or 'make' that is making the statement "checking for Kerberos 5 ...no "

What specific file(s) or directory is it looking for to determine if Kerberos is present ?? 

Thanks


Jim,

 

This is how I see it...

Lets look at config.in from my build.

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="")


1>--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

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

So this is where the error comes from.
The relevant files are in "$ac_cv_lib_kerberos5" this is inititialised in two steps.

1> mitlabs is set up with the file names
2> this string is used to test for the exitance of the packages
   these are ( in the mit case )
    krb5
   k5crypto
   com_err
   gssapi_krb5

3> if the mit test files are not found then the heimdal ones are also tested for.

gnu linker options get expanded and so in my case the files are found as follows

Lot of this but it should help. The relevant files are in italics and red ( hope your mailer copes )



[mikep amd mikep]$ ls /usr/ker* -lR
/usr/kerberos:
total 24
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 bin
drwxr-xr-x    5 root     root         4096 Jul 26 14:25 include
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 lib
drwxr-xr-x    5 root     root         4096 Apr  1  2003 man
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 sbin
drwxr-xr-x    3 root     root         4096 Apr  1  2003 share

/usr/kerberos/bin:
total 16
-rwxr-xr-x    1 root     root         5278 Apr  1  2003 krb5-config
-rwxr-xr-x    1 root     root         6784 Apr  1  2003 sclient

/usr/kerberos/include:
total 160
drwxr-xr-x    2 root     root         4096 Apr  1  2003 asn.1
-rw-r--r--    1 root     root         2638 Apr  1  2003 com_err.h
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 gssapi
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 kerberosIV
-rw-r--r--    1 root     root       112782 Apr  1  2003 krb5.h
-rw-r--r--    1 root     root         6463 Jan 25  2003 krbafs.h
-rw-r--r--    1 root     root         1854 Apr  1  2003 libpty.h
-rw-r--r--    1 root     root          960 Apr  1  2003 mit-sipb-copyright.h
-rw-r--r--    1 root     root         2128 Apr  1  2003 port-sockets.h
-rw-r--r--    1 root     root         6816 Apr  1  2003 profile.h

/usr/kerberos/include/asn.1:
total 0

/usr/kerberos/include/gssapi:
total 40
-rw-r--r--    1 root     root         2192 Apr  1  2003 gssapi_generic.h
-rw-r--r--    1 root     root        28143 Apr  1  2003 gssapi.h
-rw-r--r--    1 root     root         5081 Apr  1  2003 gssapi_krb5.h

/usr/kerberos/include/kerberosIV:
total 48
-rw-r--r--    1 root     root         3764 Apr  1  2003 des.h
-rw-r--r--    1 root     root         4940 Apr  1  2003 kadm.h
-rw-r--r--    1 root     root         5667 Apr  1  2003 krb_err.h
-rw-r--r--    1 root     root        23416 Apr  1  2003 krb.h
-rw-r--r--    1 root     root         1149 Apr  1  2003 mit-copyright.h

/usr/kerberos/lib:
total 2704
-rw-r--r--    1 root     root         5962 Apr  1  2003 libcom_err.a
lrwxrwxrwx    1 root     root           17 Jul 26 14:25 libcom_err.so -> libcom_err.so.3.0
lrwxrwxrwx    1 root     root           17 Jul 26 14:24 libcom_err.so.3 -> libcom_err.so.3.0
-rwxr-xr-x    1 root     root         5572 Apr  1  2003 libcom_err.so.3.0
-rw-r--r--    1 root     root        22514 Apr  1  2003 libdes425.a
lrwxrwxrwx    1 root     root           16 Jul 26 14:25 libdes425.so -> libdes425.so.3.0
lrwxrwxrwx    1 root     root           16 Jul 26 14:24 libdes425.so.3 -> libdes425.so.3.0
-rwxr-xr-x    1 root     root        11844 Apr  1  2003 libdes425.so.3.0
-rw-r--r--    1 root     root        17714 Apr  1  2003 libdyn.a
lrwxrwxrwx    1 root     root           13 Jul 26 14:25 libdyn.so -> libdyn.so.1.0
lrwxrwxrwx    1 root     root           13 Jul 26 14:24 libdyn.so.1 -> libdyn.so.1.0
-rwxr-xr-x    1 root     root         9064 Apr  1  2003 libdyn.so.1.0
-rw-r--r--    1 root     root       145474 Apr  1  2003 libgssapi_krb5.a
lrwxrwxrwx    1 root     root           21 Jul 26 14:25 libgssapi_krb5.so -> libgssapi_krb5.so.2.2
lrwxrwxrwx    1 root     root           21 Jul 26 14:24 libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2
-rwxr-xr-x    1 root     root        73724 Apr  1  2003 libgssapi_krb5.so.2.2
-rw-r--r--    1 root     root       145550 Apr  1  2003 libgssrpc.a
lrwxrwxrwx    1 root     root           16 Jul 26 14:25 libgssrpc.so -> libgssrpc.so.3.0
lrwxrwxrwx    1 root     root           16 Jul 26 14:24 libgssrpc.so.3 -> libgssrpc.so.3.0
-rwxr-xr-x    1 root     root        78336 Apr  1  2003 libgssrpc.so.3.0
-rw-r--r--    1 root     root       129950 Apr  1  2003 libk5crypto.a
lrwxrwxrwx    1 root     root           18 Jul 26 14:25 libk5crypto.so -> libk5crypto.so.3.0
lrwxrwxrwx    1 root     root           18 Jul 26 14:24 libk5crypto.so.3 -> libk5crypto.so.3.0
-rwxr-xr-x    1 root     root        63880 Apr  1  2003 libk5crypto.so.3.0
-rw-r--r--    1 root     root        99576 Apr  1  2003 libkadm5clnt.a
lrwxrwxrwx    1 root     root           19 Jul 26 14:25 libkadm5clnt.so -> libkadm5clnt.so.5.0
lrwxrwxrwx    1 root     root           19 Jul 26 14:24 libkadm5clnt.so.5 -> libkadm5clnt.so.5.0
-rwxr-xr-x    1 root     root        68744 Apr  1  2003 libkadm5clnt.so.5.0
-rw-r--r--    1 root     root       139774 Apr  1  2003 libkadm5srv.a
lrwxrwxrwx    1 root     root           18 Jul 26 14:25 libkadm5srv.so -> libkadm5srv.so.5.0
lrwxrwxrwx    1 root     root           18 Jul 26 14:24 libkadm5srv.so.5 -> libkadm5srv.so.5.0
-rwxr-xr-x    1 root     root        97544 Apr  1  2003 libkadm5srv.so.5.0
-rw-r--r--    1 root     root        40486 Apr  1  2003 libkdb5.a
lrwxrwxrwx    1 root     root           14 Jul 26 14:25 libkdb5.so -> libkdb5.so.3.2
lrwxrwxrwx    1 root     root           14 Jul 26 14:24 libkdb5.so.3 -> libkdb5.so.3.2
-rwxr-xr-x    1 root     root        89376 Apr  1  2003 libkdb5.so.3.2
-rw-r--r--    1 root     root       138480 Apr  1  2003 libkrb4.a
lrwxrwxrwx    1 root     root           14 Jul 26 14:25 libkrb4.so -> libkrb4.so.2.0
lrwxrwxrwx    1 root     root           14 Jul 26 14:24 libkrb4.so.2 -> libkrb4.so.2.0
-rwxr-xr-x    1 root     root        65860 Apr  1  2003 libkrb4.so.2.0
-rw-r--r--    1 root     root        15334 Apr  1  2003 libkrb524.a
-rw-r--r--    1 root     root       720110 Apr  1  2003 libkrb5.a
lrwxrwxrwx    1 root     root           14 Jul 26 14:25 libkrb5.so -> libkrb5.so.3.1
lrwxrwxrwx    1 root     root           14 Jul 26 14:24 libkrb5.so.3 -> libkrb5.so.3.1
-rwxr-xr-x    1 root     root       385220 Apr  1  2003 libkrb5.so.3.1
lrwxrwxrwx    1 root     root           18 Jul 26 12:30 libkrbafs.so -> libkrbafs.so.0.0.0
lrwxrwxrwx    1 root     root           18 Jul 26 12:19 libkrbafs.so.0 -> libkrbafs.so.0.0.0
-rwxr-xr-x    1 root     root        22408 Jan 25  2003 libkrbafs.so.0.0.0
-rw-r--r--    1 root     root        20998 Apr  1  2003 libpty.a
lrwxrwxrwx    1 root     root           13 Jul 26 14:25 libpty.so -> libpty.so.1.2
lrwxrwxrwx    1 root     root           13 Jul 26 14:24 libpty.so.1 -> libpty.so.1.2
-rwxr-xr-x    1 root     root        11932 Apr  1  2003 libpty.so.1.2
-rw-r--r--    1 root     root        29504 Apr  1  2003 libss.a

/usr/kerberos/man:
total 12
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 man1
drwxr-xr-x    2 root     root         4096 Jul 26 12:30 man3
drwxr-xr-x    2 root     root         4096 Jul 26 14:25 man8

/usr/kerberos/man/man1:
total 4
-rw-r--r--    1 root     root          821 Apr  1  2003 sclient.1.gz

/usr/kerberos/man/man3:
total 32
-rw-r--r--    8 root     root         1774 Jan 25  2003 k_afs_cell_of_file.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 k_hasafs.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 k_pioctl.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 krbafs.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 krb_afslog.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 krb_afslog_uid.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 k_setpag.3.gz
-rw-r--r--    8 root     root         1774 Jan 25  2003 k_unlog.3.gz

/usr/kerberos/man/man8:
total 4
-rw-r--r--    1 root     root         1891 Apr  1  2003 sserver.8.gz

/usr/kerberos/sbin:
total 8
-rwxr-xr-x    1 root     root         6752 Apr  1  2003 sserver

/usr/kerberos/share:
total 4
drwxr-xr-x    2 root     root         4096 Jul 26 14:24 gnats

/usr/kerberos/share/gnats:
total 4
-rw-r--r--    1 root     root           99 Apr  1  2003 mit
[mikep amd mikep]$

 

Jim


checking for ldap_ntlm_bind... no
checking for Kerberos 5... no
configure: error: Could not find krb5. Install krb5 or heimdal packages.
make[2]: *** [configure-work/main.d/ximian-connector-2.0.0/configure] Error 1
make[2]: Leaving directory `/home/jamaas/Downloads/garnome-2.8.0/desktop/ximian-connector'
make[1]: *** [paranoid-install] Error 2
make[1]: Leaving directory `/home/jamaas/Downloads/garnome-2.8.0/desktop'
make: *** [paranoid-install] Error 2

-- 


==============================================
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]