cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl build with -enable-sspi on MinGW/MSYS

From: Brecht Sanders <brecht_at_sanders.org>
Date: Sat, 07 Mar 2009 13:57:28 +0100

Gisle Vanem wrote:
> "Brecht Sanders" <brecht_at_sanders.org> wrote:
>
>>> What MingW version do you have? With v.3.14 here there's no problem.
>>> Excactly what errors do you get?
>>
>> $ gcc --version
>> gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
>
> Not the gcc version, the MingW version. Look in
> <MingW-base>/include/_mingw.h to check.
3.15.1
>
>> In file included from C:/Prog/MinGW-mSys/include/security.h:38,
>> from curl_sspi.h:40,
>> from urldata.h:272,
>> from file.c:75:
>> C:/Prog/MinGW-mSys/include/sspi.h:60: error: syntax error before
>> "SECURITY_STRING"
>
> I cannot find "SECURITY_STRING" in my MingW headers (and I have the
> latest).
> So my advice to you is to upgrade MingW-runtime.
>
> BTW.
> I tried your patch. I doesn't work well with the OpenSSL headers:
>
> g:/MingW32/include/subauth.h:83: error: conflicting types for 'STRING'
> ../../OpenSSL-0.9.9/outinc/openssl/safestack.h:105: error: previous
> declaration of 'STRING' was here
>
> We had a similar problem some time ago:
> http://curl.haxx.se/mail/lib-2009-01/0358.html
Looks similar to my SECURITY_STRING problem where it was defined in
mutliple headers depending on whether or not certain <LIBRARY>_H defines
were set er not, making the order of inclusion of the correct headers
essential.

Regards
    Brecht
Received on 2009-03-07