Fix ./configure gssapi and spnego checks under heimdal#2336
Fix ./configure gssapi and spnego checks under heimdal#2336timp87 wants to merge 1 commit intosquid-cache:masterfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Remove gssapi/gssapi_krb5.h header include for gssapi and spnego checks which makes them fail under heimdal. In squid 6 this header inclusion was avoided for heimdal, i. e. hidden under "if USE_HEIMDAL_KRB5" condition. In squid 7 this condition no longer exist. Once it's not included the checks work for heimdal. NOTE: I remove it completely because even under MIT krb5 the checks work fine with this header removed. Please correct me if I miss something.
68fc7dc to
8bd0427
Compare
|
The error message was: |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
yadij
left a comment
There was a problem hiding this comment.
It looks to me like these tests have correctly identified a problem with the gssapi/gssapi_krb5.h files. They are included in the same manner by Squid code (i.e. without a Heimdal conditional).
IMO, correct fix would be to add #include <ctime> to these tests.
I agree that
If I adjusted PR title and description, primarily to quote the corresponding error messages. |
|
@yadij BTW I just tested adding |
That makes sense because In my tests, |
|
@rousskov right! Including |
It feels odd to me that |
|
This PR has |
Based on the discussion so far, including the failed attempt to add |
Remove gssapi/gssapi_krb5.h header for gssapi and spnego checks.
Including that header makes checks fail under heimdal.
In Squid v6, this header inclusion was avoided for heimdal. It was
hidden under
if USE_HEIMDAL_KRB5condition. In Squid v7, thatcondition no longer exists.
Without the header, the checks work OK for heimdal. Even under MIT krb5,
the checks work fine without this header.
Discovered while porting Squid v7 to FreeBSD.