make check error: t_locate_kdc.c:118:undefined reference to `krb5_locate_srv_dns_1'

Huiya Zhu huiya.zhu at gmail.com
Sun Oct 10 02:43:33 EDT 2010


I'm trying to set up kerberos in my Ubuntu 10.4 ,now all are ok for "make"
and "make install" but i got the following errors after the "make check":
----------------------------------------------------------------------------------------------------------------------------------------
t_locate_kdc.c: At top level:
t_locate_kdc.c:22: warning: no previous prototype for ‘kfatal’
t_locate_kdc.c:28: warning: no previous prototype for ‘stypename’
t_locate_kdc.c:44: warning: no previous prototype for ‘print_addrs’
t_locate_kdc.c: In function ‘main’:
t_locate_kdc.c:114: warning: conversion to ‘short unsigned int’ from ‘int’
may alter its value
t_locate_kdc.c:114: warning: conversion to ‘short unsigned int’ from ‘int’
may alter its value
t_locate_kdc.c: At top level:
locate_kdc.c:724: warning: ‘dns_locate_server’ defined but not used
gcc -L../../../lib -Wl,-rpath -Wl,/usr/local/lib -g -O2 -Wall
-Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow
-DLIBDIR=\"/usr/local/lib\" -I../../../include -I./../../../include
-I./../../../util/profile -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1  -g -O2 -Wall
-Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow
-pthread -o t_locate_kdc t_locate_kdc.o \
        -lkrb5 -lk5crypto -lcom_err -lkrb5support   -ldl
t_locate_kdc.o: In function `main':
/root/krb5-1.6.2/src/lib/krb5/os/t_locate_kdc.c:118: undefined reference to
`krb5_locate_srv_dns_1'
collect2: ld returned 1 exit status
make[3]: *** [t_locate_kdc] Error 1
make[3]: Leaving directory `/root/krb5-1.6.2/src/lib/krb5/os'
make[2]: *** [check-recurse] Error 1
make[2]: Leaving directory `/root/krb5-1.6.2/src/lib/krb5'
make[1]: *** [check-recurse] Error 1
make[1]: Leaving directory `/root/krb5-1.6.2/src/lib'
make: *** [check-recurse] Error 1

-----------------------------------------------------------------------------------------------------------------
i've been confused by this error for two days, can anyone help me? thanks!



More information about the Kerberos mailing list