[PATCH] Make krb5-config suppress CFLAGS output and omit extra libraries when called with --libs

Ken Hornstein kenh at cmf.nrl.navy.mil
Mon Sep 26 12:51:27 EDT 2011

>> My point is that to me as someone who has worked on this for a while
>> it's unclear whether "Kerberos 5 bindings" in a GSS application implies
>> krb5 symbols available or not.
>It never would have occurred to me to read it that way.

FWIW, I always assumed that Kerberos functions _were_ available when you ran
krb5-config --libs gssapi (why?  Well, because they were).  I'm not saying
that my assumption is necessarily valid, but in looking at krb5-config I
see that it only says what Sam has noted ("GSSAPI application with
Kerberos 5 bindings"), and I find that spetacularly vague.  I guess if
I was starting cold I'd look at the list of libraries it output, see
that "-lkrb5" was included, and figure that it would be safe to assume
that you'd get krb5 symbols as well (I guess when it comes to Kerberos
programming, I'm more de facto than de jure).


More information about the krbdev mailing list