-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cUrl compilation failure in telnet.c and tftp.c #1688
Comments
I think a fix should make the code not use these return codes anymore, and probably make sure that libcurl always gets built with |
Thank you @bagder for the confirmation. Will submit a pull request. |
The fix that just landed replaces the codes, thanks to @ydnath. If you want to build it with no oldies by default how about something like this in curl_setup diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index fc597d7..4a3b85c 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -22,6 +22,10 @@
*
***************************************************************************/
+#if defined(BUILDING_LIBCURL) && !defined(CURL_NO_OLDIES)
+#define CURL_NO_OLDIES
+#endif
+
/*
* Define WIN32 when build target is Win32 API
*/ |
@jay, I'd 👍 such a PR! =) |
.. to catch accidental use of deprecated error codes. Ref: #1688 (comment)
I did this
When I built the 7.54.0 version with CURL_NO_OLDIES, there is a compilation error for
https://github.com/curl/curl/blob/master/lib/telnet.c#L902
CURLE_UNKNOWN_TELNET_OPTION is defined at https://github.com/curl/curl/blob/master/include/curl/curl.h#L576 but under #ifndef CURL_NO_OLDIES
https://github.com/curl/curl/blob/master/lib/tftp.c#L1348
CURLE_BAD_CALLING_ORDER is defined at
https://github.com/curl/curl/blob/master/include/curl/curl.h#L586 but under #ifndef CURL_NO_OLDIES
I expected the following
Define CURLE_UNKNOWN_TELNET_OPTION and CURLE_BAD_CALLING_ORDER under the new enum set or reuse one of the enums defined. [I did reuse and it fixed the compilation issues]
curl/libcurl version
7.54.0
[curl -V output]
operating system
FreeBSD
The text was updated successfully, but these errors were encountered: