[OpenAFS] fakeka and krb425

Russ Allbery rra@stanford.edu
Tue, 03 May 2005 10:42:03 -0700


Michael Norwick <ctx37888@centurytel.net> writes:

> I took out afs2k5db.c from the Makefile  because I really just want
> asetkey and aklog. I get this when compiling:

> [michael@blacky src]# make
> gcc -g -O2 -I/usr/include -I/usr/include -DPACKAGE_NAME=\"afs-krb5\"
> -DPACKAGE_TARNAME=\"afs-krb5\" -DPACKAGE_VERSION=\"1.4\"
> -DPACKAGE_STRING=\"afs-krb5\ 1.4\"
> -DPACKAGE_BUGREPORT=\"kenh@cmf.nrl.navy.mil\" -DAFS=1 -DAFS_INT32=1
> -DAFS_TRY_FULL_PRINC=1 -DHAVE_DAEMON=1 -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRERROR=1
> -DRETSIGTYPE=void  -DALLOW_REGISTER   -c -o asetkey.o asetkey.c
> asetkey.c: In function `main':
> asetkey.c:80: error: too few arguments to function `afsconf_AddKey'
> make: *** [asetkey.o] Error 1

You need this patch:

--- src/asetkey.c      2000-11-07 07:52:57.000000000 -0800
+++ src/asetkey.c        2005-05-01 10:50:41.000000000 -0700
@@ -77,7 +77,7 @@
                exit(1);
        }
 
-       code = afsconf_AddKey(tdir, kvno, key->contents);
+       code = afsconf_AddKey(tdir, kvno, key->contents, 1);
        if (code) {
            printf("setkey: failed to set key, code %d.\n", code);
            exit(1);

to get the migration toolkit to work with OpenAFS 1.3.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>