Amos,
I think you have to add also
## Kerberos headers require their include path...
INCLUDES += @KRB5INCS@
to all Makefile.am s as configure uses krb5-config --cflags krb5 before
testing for com_err.h.
Markus
"Amos Jeffries" <squid3_at_treenet.co.nz> wrote in message
news:4AAE2C01.5090907_at_treenet.co.nz...
> Alex Rousskov wrote:
>> On Sun, 13 Sep 2009, Henrik Nordstrom wrote:
>>
>>> s?n 2009-09-13 klockan 21:30 +0200 skrev Henrik Nordstrom:
>>>> seems to build fine for me on CentOS 5.2.. but maybe something in the
>>>> test builds are triggering it..
>>>>
>>>> A full test is running..
>>>
>>> Found.. it fails when used in combination with --enable-ssl. This due to
>>> OpenSSL (or actually krb5.h I think, included by openssl) ending up
>>> including com_err.h without the extern "C" wrapper, or if you prefer due
>>> to the com_err.h include not shielding itself from C++ parsing...
>>>
>>> Proposed fix: Have src/ssl_support.h include et/com_err.h in an extern
>>> "C" wrapping before OpenSSL includes...
>>
>> Have been bitten by this as well. The proposed fix sounds good to me.
>>
>> Thank you,
>>
>> Alex.
>
> Okay, and in light that it's a nasty hack around some brokenness. I
> suggest the include should go in the compat library.
>
> compat/compat_shared.h is the file for non-OS-specific bits.
> Simply wrapping an include of com_err.h inside there with a documentation
> note quoting Henriks analysis above. Should fix it for all the main Squid
> code and some helpers.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE6 or 3.0.STABLE19
> Current Beta Squid 3.1.0.13
>
Received on Sun Sep 20 2009 - 11:37:37 MDT
This archive was generated by hypermail 2.2.0 : Sun Sep 20 2009 - 12:00:04 MDT