[OpenAFS] build reauth problem with 'krb.h'

Hongliang Gai hgai@ecs.syr.edu
Wed, 3 Mar 2004 11:13:55 -0500 (EST)


Hi All,
  I have been trying to build reauth for Redhat 8.0 but failed. I need
help. I have downloaded reauth from ftp://ftp.andrew.cmu.edu/pub/AFS-Tools/reauth-0.0.6.tar.gz and
openafs-devel-1.2.11-rh8.0.1.i386.rpm from openafs.org for the included afs lib headers.
And krb4 headers exist in the dir:
------------------------------------------------
%ls /usr/kerberos/include/kerberosIV/
des.h  kadm.h  krb_err.h  krb.h  mit-copyright.h
------------------------------------------------

How can I correctly include krb.h in the build process? I have tried some
different ways shown as below, they all failed...

Thanks,
Hongliang


I did follows according to help messeges in the archive mails:
    1  change <krb.h> to <kerberosIV/krb.h> in reauth.c
    2. configure --with-afs=/usr --with-krb4=/usr/kerberos
And the following error message:
--------------------------------------------------------------
./configure --with-afs=/usr --with-krb4=/usr/kerberos
loading cache ./config.cache
checking for mkdirhier... (cached) /usr/bin/X11/mkdirhier
using /usr/bin/X11/mkdirhier
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for malloc.h... (cached) yes
checking for unistd.h... (cached) yes
checking for connect... (cached) yes
checking for gethostbyname... (cached) yes
checking for system network libs... using
checking for krb_mk_req in -lkrb... no
configure: error: Kerberos library not found
----------------------------------------------------------------
Then I changed to configure without krb4 option and use <krb.h> in
reauth.c, 'configure' seems ok. But when I 'make', it say krb.h:no such
file.
the error message:
----------------------------------------------------------------
# make
gcc -g -O2  -DHAVE_CONFIG_H -I/usr/include  -c -o reauth.o reauth.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
reauth.c:19:17: krb.h: No such file or directory
reauth.c: In function `key_to_key':
reauth.c:54: parse error before "C_Block"
reauth.c:56: `des_cblock' undeclared (first use in this function)
reauth.c:56: (Each undeclared identifier is reported only once
reauth.c:56: for each function it appears in.)
reauth.c:56: warning: passing arg 1 of `memcpy' makes pointer from integer
without a cast
reauth.c: In function `logme':
reauth.c:73: `REALM_SZ' undeclared (first use in this function)
reauth.c:75: `CREDENTIALS' undeclared (first use in this function)
reauth.c:75: parse error before "c"
reauth.c:76: `C_Block' undeclared (first use in this function)
reauth.c:85: `key_proc_t' undeclared (first use in this function)
reauth.c:85: parse error before "authfunc"
reauth.c:112: `afskey' undeclared (first use in this function)
reauth.c:113: `mitkey' undeclared (first use in this function)
reauth.c:121: `DEFAULT_TKT_LIFE' undeclared (first use in this function)
reauth.c:129: `krb_err_txt' undeclared (first use in this function)
reauth.c:142: `c' undeclared (first use in this function)
reauth.c: In function `main':
reauth.c:221: `REALM_SZ' undeclared (first use in this function)
make: *** [reauth.o] Error 1
-----------------------------------------------------------------

If I copy all the krb header files to /usr/include/kerberosIV/, and
configure and make, it has the same error message as above.