arla + KfM + cmu's krbafs = no joy :-(

Sandor W. Sklar ssklar at stanford.edu
Fri Oct 12 19:30:53 CEST 2001


At 1:48 AM +0200 10/11/01, Magnus Ahltorp wrote:

>It should work if you install krbafs from cmu (URL in the README). The
>MIT Kerberos does not have the kafs library, which is needed for arla.

Magnus (and other "drinkers") ...

Can anyone give me a hint on getting the krbafs library compiled on 
10.1?  Here are the steps I've tried, and their results ...

nooshka:~/Stuff/krbafs-0.9.8 $ ./configure
creating cache ./config.cache
checking host system type... configure: error: can not guess host 
type; you must specify one
nooshka:~/Stuff/krbafs-0.9.8 $ cp /usr/libexec/config.* .
nooshka:~/Stuff/krbafs-0.9.8 $ ./configure

[configure worked now, properly detecting the host type as 
"powerpc-apple-darwin1.4", and completing without error]

nooshka:~/Stuff/krbafs-0.9.8 $ make
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 -I. 
-I/usr/local/include -g -O2  afssys.c
krbafs_locl.h:99: header file 'krb.h' not found
krbafs_locl.h:111: undefined type, found `CREDENTIALS'
krbafs_locl.h:125: undefined type, found `CREDENTIALS'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [afssys.o] Error 1

[I don't understand why ./configure didn't locate the KfM kerberos 
include files in "/usr/include/Kerberos", so I edit the Makefile, 
changing the lines ...

.c.o:
         $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I$(KRBDIR)/include 
$(CFLAGS) $(PICFLAGS) $<

... to ...

.c.o:
         $(CC) -c $(CPPFLAGS) $(DEFS) -I/usr/include/Kerberos 
-I$(srcdir) -I$(KRBDIR)/include $(CFLAGS) $(PICFLAGS) $<

... and again running "make" ...

nooshka:~/Stuff/krbafs-0.9.8 $ make
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos -I. -I/usr/local/include -g -O2  afssys.c
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos -I. -I/usr/local/include -g -O2  afskrb.c
afskrb.c: In function `get_realm':
afskrb.c:89: warning: passing arg 1 of `krb_realmofhost' discards 
qualifiers from pointer target type
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos -I. -I/usr/local/include -g -O2  common.c
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos -I. -I/usr/local/include -g -O2 
afs_string_to_key.c
afs_string_to_key.c: In function `afs_cmu_StringToKey':
afs_string_to_key.c:56: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c: In function `afs_transarc_StringToKey':
afs_string_to_key.c:78: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c:79: warning: passing arg 1 of `des_key_sched' 
from incompatible pointer type
afs_string_to_key.c:83: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c:84: warning: passing arg 1 of `des_key_sched' 
from incompatible pointer type
afs_string_to_key.c:87: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c: At top level:
afs_string_to_key.c:92: conflicting types for `afs_string_to_key'
/usr/include/Kerberos/des.h:187: previous declaration of `afs_string_to_key'
make: *** [afs_string_to_key.o] Error 1

Then I tried ...

.c.o:
         $(CC) -c $(CPPFLAGS) $(DEFS) 
-I/usr/include/Kerberos/kerberosIV -I/usr/include/Kerberos 
-I$(srcdir) -I$(KRBDIR)/include $(CFLAGS) $(PICFLAGS) $<

... did a "make clean", and ...

nooshka:~/Stuff/krbafs-0.9.8 $ make
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos/kerberosIV -I/usr/include/Kerberos -I. 
-I/usr/local/include -g -O2  afssys.c
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos/kerberosIV -I/usr/include/Kerberos -I. 
-I/usr/local/include -g -O2  afskrb.c
afskrb.c: In function `get_realm':
afskrb.c:89: warning: passing arg 1 of `krb_realmofhost' discards 
qualifiers from pointer target type
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos/kerberosIV -I/usr/include/Kerberos -I. 
-I/usr/local/include -g -O2  common.c
gcc -c  -DHAVE_CONFIG_H -DLIBDIR='"/usr/local/lib"' -DKRB4 
-I/usr/include/Kerberos/kerberosIV -I/usr/include/Kerberos -I. 
-I/usr/local/include -g -O2  afs_string_to_key.c
afs_string_to_key.c: In function `afs_cmu_StringToKey':
afs_string_to_key.c:56: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c: In function `afs_transarc_StringToKey':
afs_string_to_key.c:78: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c:79: warning: passing arg 1 of `des_key_sched' 
from incompatible pointer type
afs_string_to_key.c:83: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c:84: warning: passing arg 1 of `des_key_sched' 
from incompatible pointer type
afs_string_to_key.c:87: warning: passing arg 1 of 
`des_fixup_key_parity' from incompatible pointer type
afs_string_to_key.c: At top level:
afs_string_to_key.c:92: conflicting types for `afs_string_to_key'
/usr/include/Kerberos/kerberosIV/des.h:187: previous declaration of 
`afs_string_to_key'
make: *** [afs_string_to_key.o] Error 1

(I also then tried leaving out "-I/usr/include/Kerberos", adding just 
"-I/usr/include/Kerberos/kerberosIV", and that failed also, but with 
different errors.)

At this point, I'm exeeded my ability ... can someone push me in the 
right direction, please?

Thanks!  --Sandy

-- 
------------------------------------------------
sandor w. sklar                |    Non impediti
unix systems administrator     |         ratione
stanford university itss-css   |    cogitationis
     -------------------------------------------------





More information about the Arla-drinkers mailing list