[OpenAFS] reauth

Renato Arruda rla9216@osfmail.rit.edu
Mon, 30 Sep 2002 18:24:43 -0400


I'm trying to compile reauth version 0.0.6 (from freshmeat) and after doi=
ng a=20
couple of tweaks with source (the patch to reauth.c is down below) it=20
produces the result shown below when trying to make it.

The configure command was './configure --with-afs=3D/usr=20
--with-krb4=3D/usr/kerbeberos' (i did do 'ln -s libkrb4.so=20
/usr/kerberos/lib/libkrb.so' as well) I'm trying to compile it under RH L=
7.3 with the standard tools (gcc, gnu make, etc).

I probably patched things wrong, but any pointers to what i did i do wron=
g? ;)

I'm trying to get reauth to work so i can drop /var/spool/mail in afs... =
this sane or is there some consideration i did not take into account? (of=
course giving 'rlwk' permissions to system:authuser)

Thanks for the help,

[rarruda@samba reauth-0.0.6]$ make
gcc -g -O2  -DHAVE_CONFIG_H -I/usr/kerberos/include -I/usr/include  -c -o=
reauth.o reauth.c
gcc -g -O2  -DHAVE_CONFIG_H -o reauth reauth.o -L/usr/kerberos/lib=20
-L/usr/lib/afs -L/usr/lib -lkauth -lprot -lcmd -lubik -lauth=20
/usr/lib/afs/util.a -lrxkad -laudit  -lsys -lrx -llwp -lcom_err -lkrb -ld=
-lcom_err -lkrb   -lresolv
/usr/lib/afs/libkauth.a(kaerrors.o): In function `initialize_KA_error_tab=
kaerrors.o(.text+0xc): undefined reference to `add_to_error_table'
/usr/lib/libubik.a(uerrors.o): In function `initialize_U_error_table':
uerrors.o(.text+0xc): undefined reference to `add_to_error_table'
/usr/lib/afs/libauth.a(acfg_errors.o): In function=20
/usr/src/redhat/BUILD/openafs-1.2.7/src/auth/acfg_errors.c:23: undefined=20
reference to `add_to_error_table'
/usr/lib/afs/libauth.a(ktc_errors.o): In function=20
/usr/src/redhat/BUILD/openafs-1.2.7/src/auth/ktc_errors.c:26: undefined=20
reference to `add_to_error_table'
/usr/lib/librxkad.a(rxkad_errs.o): In function `initialize_RXK_error_tabl=
rxkad_errs.o(.text+0xc): undefined reference to `add_to_error_table'
collect2: ld returned 1 exit status
make: *** [reauth] Error 1

diff reauth.c-ori reauth.c
< #include <krb.h>
> #include <kerberosIV/krb.h>
<   key_proc_t authfunc =3D NULL;
>   key_proc_type authfunc =3D NULL;

Renato Arruda <rla9216@rit.edu> http://www.rarruda.org/