[OpenAFS] openafs-1.4.7pre3 src/aklog compile error

Rainer Laatsch Laatsch@uni-koeln.de
Fri, 11 Apr 2008 14:28:18 +0200 (CEST)


To get a successful compilation in src/aklog, I had to reorder
the krb5 libs in src/aklog/Makefile like this

sed -e "/AKLIBS/s/-lkrb5support -lcom_err/-lcom_err -lkrb5support/" \
  < Makefile.orig > Makefile

Compiled it under  RedHat EL5 , kernel 2.6.18-53.1.13.el5  and
krb5-config using MIT krb5-1.4.3 .

Without that fix, I get these errors:
gcc -pipe -o aklog  -I/opt/krb5/include -DALLOW_REGISTER 
-I/service/a0049/openafs-1.4.7pre3/src/config -I. -I. 
-I/service/a0049/openafs-1.4.7pre3/include 
-I/service/a0049/openafs-1.4.7pre3/include/afs 
-I/service/a0049/openafs-1.4.7pre3/include/rx 
-I/service/a0049/openafs-1.4.7pre3 -I/service/a0049/openafs-1.4.7pre3/src 
-I/service/a0049/openafs-1.4.7pre3/src -g -O2 -D_LARGEFILE64_SOURCE 
aklog.o aklog_main.o krb_util.o linked_list.o  -L/opt/krb5/lib -lkrb5 
-lk5crypto -lkrb5support -lcom_err -lresolv
                        ####
/service/a0049/openafs-1.4.7pre3/lib/libprot.a 
/service/a0049/openafs-1.4.7pre3/lib/libubik.a 
/service/a0049/openafs-1.4.7pre3/lib/libauth.a 
/service/a0049/openafs-1.4.7pre3/lib/librxkad.a 
/service/a0049/openafs-1.4.7pre3/lib/librx.a 
/service/a0049/openafs-1.4.7pre3/lib/liblwp.a 
/service/a0049/openafs-1.4.7pre3/lib/libsys.a 
/service/a0049/openafs-1.4.7pre3/lib/libdes.a 
/service/a0049/openafs-1.4.7pre3/lib/libcom_err.a 
/service/a0049/openafs-1.4.7pre3/lib/libafsutil.a -lresolv
/opt/krb5/lib/libkrb5.a(cc_memory.o): In function `krb5_mcc_generate_new':
/Data/krb5-1.4.3/src/lib/krb5/ccache/cc_memory.c:473: warning: the use of 
`mktemp' is dangerous, better use `mkstemp'

/opt/krb5/lib/libcom_err.a(error_message.o): In function `error_message':
/Data/krb5-1.4.3/src/util/et/error_message.c:250: undefined reference to 
`krb5int_getspecific'
/Data/krb5-1.4.3/src/util/et/error_message.c:257: undefined reference to 
`krb5int_setspecific'
/opt/krb5/lib/libcom_err.a(error_message.o): In function 
`com_err_terminate':
/Data/krb5-1.4.3/src/util/et/error_message.c:66: undefined reference to 
`krb5int_key_delete'
/opt/krb5/lib/libcom_err.a(error_message.o): In function 
`com_err_initialize':
/Data/krb5-1.4.3/src/util/et/error_message.c:55: undefined reference to 
`krb5int_key_register'
collect2: ld returned 1 exit status
make: *** [aklog] Error 1

Best regards 
Rainer Laatsch
____________________________
E-mail: Laatsch@Uni-Koeln.DE