Bugs item #3561305, was opened at 2012-08-24 07:37
Message generated for change (Comment added) made by marcelraad
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3561305&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcel Raad (marcelraad)
Assigned to: Daniel Stenberg (bagder)
Summary: CURL_DISABLE_PROXY and USE_WINDOWS_SSPI: compile error
Initial Comment:
I don't need proxy authentication, but SSL and I want to use the new SChannelAPI support, so I have defined both CURL_DISABLE_PROXY and USE_WINDOWS_SSPI. This results in a compile error in socks.c.
The line '#if !defined(CURL_DISABLE_PROXY) || defined(USE_WINDOWS_SSPI)' in socks.c should be changed to only '#if !defined(CURL_DISABLE_PROXY)' to resolve the error.
----------------------------------------------------------------------
>Comment By: Marcel Raad (marcelraad)
Date: 2012-08-28 00:19
Message:
The error is double definition of Curl_SOCKS4 and Curl_SOCKS5 (as
CURLE_NOT_BUILT_IN in the header file and as a function in the .c file).
socks_sspi.c compiles without errors when I compile libcurl as a static
library as Curl_SOCKS5_gssapi_negotiate is never called in my application.
But you're right, the #ifdef line in socks_sspi.c should also be changed to
'#if (defined(USE_WINDOWS_SSPI) && !defined(CURL_DISABLE_PROXY))'.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2012-08-27 15:07
Message:
What compiler error?
And if you switch off the compiling of these functions, how can the
socks_sspi.c source compile error free? It uses Curl_blockread_all() so I
figure that file needs an adjusted #ifdef line as well?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3561305&group_id=976
Received on 2012-08-28