./configure'ing arla cvs checkout...

Daniel Veillard Daniel.Veillard at w3.org
Sun Aug 20 21:32:17 CEST 2000


On Sun, Aug 20, 2000 at 06:11:56PM +0200, Magnus Ahltorp wrote:
> > I configured with:
> >   ./configure --enable-smp --with-krb5=/usr/kerberos --with-krb5-include=/usr/kerberos/include/krb5 --with-krb5-lib=/usr/kerberos/lib
> > 
> >   which seems to pass the right info within the configure script:
> > 
> >   checking for kernel stuff... Linux
> >   checking for smp... yes
> >   checking for kerberos5 libraries in /usr/kerberos/lib... found
> >   checking for kerberos5 headers in /usr/kerberos/include/krb5... not found
> 
> Why does this fail? Look in the config.log for error messages.

using
  -with-krb5-include=/usr/kerberos/include
instead of 
  -with-krb5-include=/usr/kerberos/include/krb5

 seems to fix this specific problem

> >   checking checking for libkafs/libkrbafs... no
> 
> Don't you also want libkafs/libkrbafs?

  Okay I installed 
     krbafs-1.0-3.i386.rpm
and  krbafs-utils-1.0-3.i386.rpm

checking for kerberos5 libraries in /usr/kerberos/lib... found
checking for kerberos5 headers in /usr/kerberos/include... found
checking for kerberos4 libraries in ... not found
checking for kerberos4 libraries in /usr/athena/lib... not found
checking for kerberos4 libraries in /usr/kerberos/lib... found
checking for kerberos4 headers in /usr/kerberos/include... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberos... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberosIV... not found
checking checking for libkafs/libkrbafs... yes

  So i think it's okay library/include wise now. But I was till having
the same problem. Searching a bit more:

[root at orchis arla]# find /usr/include /usr/kerberos -name krb.h
/usr/kerberos/include/kerberosIV/krb.h
[root at orchis arla]# rpm -qf /usr/kerberos/include/kerberosIV/krb.h
krb5-devel-1.1.1-9
[root at orchis arla]# 

   ah ah, after a bit more searching, it seems teh following should work:

./configure --enable-smp --with-krb5=/usr/kerberos --with-krb4=/usr/kerberos

---------------------
checking for smp... yes
checking for kerberos5 libraries in /usr/kerberos/lib... found
checking for kerberos5 headers in /usr/kerberos/include... found
checking for kerberos4 libraries in /usr/kerberos/lib... found
checking for kerberos4 headers in /usr/kerberos/include... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberos... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberosIV... not found
checking checking for libkafs/libkrbafs... yes
---------------------

  the remaining problem seems related to kerberos4 headers, and it's
more a problem of how they should be used:

-------------------
configure:3797: checking for kerberos4 headers in /usr/kerberos/include/kerberosIVconfigure:3811: gcc -c -g  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs  -I/usr/kerberos/include/kerberosIV conftest.c 1>&5
In file included from configure:3805:
/usr/kerberos/include/kerberosIV/krb.h:34: kerberosIV/des.h: No such file or directory
/usr/kerberos/include/kerberosIV/krb.h:41: port-sockets.h: No such file or directory
configure: failed program was:
#line 3804 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
-------------------

  It seems arla expects to have directly krb.h in the include path,

  and then use 
  #include <krb.h>

however the /usr/kerberos/include/kerberosIV include expects to be
prefixed:

--------- /usr/kerberos/include/kerberosIV/krb.h ---------
....
#include <kerberosIV/des.h>
....
#include <port-sockets.h>
....
-----------------------------------------------------------

  Unless starting to do a lot of mess with symlinks in the include
directories, I'm afraid this version really requires to use

  #include <kerberosIV/krb.h>

  and I understand how much of a pain it is

  Well I tried anyway I put a couple of symlinks in
/usr/kerberos/include/kerberosIV:

ln -s . kerberosIV
ln -s ../port-sockets.h

 but it's ugly

---------------------------------------------
[root at orchis arla]# ./configure --enable-smp --with-krb5=/usr/kerberos --with-krb4=/usr/kerberos
[...]
checking for smp... yes
checking for kerberos5 libraries in /usr/kerberos/lib... found
checking for kerberos5 headers in /usr/kerberos/include... found
checking for kerberos4 libraries in /usr/kerberos/lib... found
checking for kerberos4 headers in /usr/kerberos/include... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberos... not found
checking for kerberos4 headers in /usr/kerberos/include/kerberosIV... found
checking checking for libkafs/libkrbafs... yes
---------------------------------------------

  then it compiled up to teh end without problems, so it seems it's
just a limitation in the configuration script.
 I didn't tried to load it yet :-)

Daniel

-- 
Daniel.Veillard at w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe





More information about the Arla-drinkers mailing list