undefined reference krb5_c_fx_cf2_simple

Greg Hudson ghudson at mit.edu
Sun Dec 23 12:24:06 EST 2018


On 12/23/18 3:11 AM, r l wrote:
>     undefined reference to `krb5_c_fx_cf2_simple'

> I searched the whole source for it using   find ... | grep

It is defined in src/lib/crypto/krb/cf2.c.

> gcc  -o gssklog gssklog.o gssklog_afs.o \
>          gssklog_gss.o gssklog_comm.o \
>          -Wl,--noinhibit-exec,-rpath,:/usr/lib:/lib -L/usr/afsws/lib 
> -L/usr/afsws/lib/afs -lprot -lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp 
> /usr/afsws/lib/libdes.a /usr/afsws/lib/afs/util.a 
> /usr/afsws/lib/afs/libafscom_err.a \
>           \
>          -L/opt/krb5/lib -lgssapi_krb5 -l gssrpc -lcom_err -lk5crypto 
> -lkrb5 -lkrb5support -ldl strlcat.o -lresolv -lnsl

I notice this link line is putting -lk5crypto before -lkrb5, which is
backwards.  I'm not sure it should matter, but depending on the platform
it might, especially if there's a very old (1.6 or earlier) version of
libk5crypto somewhere on the system.


More information about the Kerberos mailing list