cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3561305 ] CURL_DISABLE_PROXY and USE_WINDOWS_SSPI: compile error

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 06 Sep 2012 11:54:22 -0700

Bugs item #3561305, was opened at 2012-08-24 07:37
Message generated for change (Comment added) made by bagder
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: Closed
>Resolution: Fixed
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: Daniel Stenberg (bagder)
Date: 2012-09-06 11:54

Message:
Thanks for the report, this problem is now fixed in the git repository.

To try it out, you either checkout/update your git clone:
http://curl.haxx.se/source.html

or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/

----------------------------------------------------------------------

Comment By: Marcel Raad (marcelraad)
Date: 2012-09-06 06:49

Message:
I have attached a patch that fixes the problem.

----------------------------------------------------------------------

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-09-06

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET