[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Openssh build complains about undefined krb_life_to_time



Love <lha@stacken.kth.se> writes:

> Lars Albertsson <lalle@sics.se> writes:
> 
> > I built and installed heimdal-0.6.1rc3, and when trying to build
> > openssh-3.8p1, the symbol krb_life_to_time, referenced from
> > libkafs.a(common.o), is undefined. 
> >
> > It is defined in hdc/hprop.c, so I guess the implementation should
> > move to lib/kafs.
> 
> If you have compiled with libkrb, krb_life_to_time is in libkrb.
> 
> If you only have krb5 support, krb_life_to_time should be rewritten to
> _krb5_krb_life_to_time (that is in libkrb5) by krb5-v4compat.h.

I looked closer at openssh's configure.ac, and they check for
krb5-config, and if it is found, they simply use the output from
krb5-config --libs, which makes sense. On my system, however, the
output is:

-L/usr/heimdal/lib -lkrb5 -lasn1 -L/usr/athena/lib -lcrypto -lroken \
 -lcrypt -lresolv

Heimdal was configured with --with-krb4=/usr/athena. If libkrb should
be linked in to resolve symbols in libkrb5, I think krb5-config --libs
should also contain print -lkrb.

/Lalle