-
-
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
IBMi build is broken for 8.11.0 release #15566
Labels
Comments
The fix which solved the build for me may looks some like this: @@ -1070,10 +1070,11 @@ curl_easy_setopt_ccsid(CURL *easy, CURLoption tag, ...)
va_list arg;
char *s;
char *cp = NULL;
unsigned int ccsid;
curl_off_t pfsize;
+ struct Curl_easy *data = easy;
va_start(arg, tag);
switch(tag) {
@@ -1193,11 +1194,11 @@ curl_easy_setopt_ccsid(CURL *easy, CURLoption tag, ...)
prior to this call. In this case, convert the given byte count and
replace the length according to the conversion result. */
s = va_arg(arg, char *);
ccsid = va_arg(arg, unsigned int);
- pfsize = easy->set.postfieldsize;
+ pfsize = data->set.postfieldsize;
if(!s || !pfsize || ccsid == NOCONV_CCSID || ccsid == ASCII_CCSID) {
result = curl_easy_setopt(easy, CURLOPT_COPYPOSTFIELDS, s);
break;
}
@@ -1238,16 +1239,16 @@ curl_easy_setopt_ccsid(CURL *easy, CURLoption tag, ...)
if(pfsize < 0) {
result = CURLE_OUT_OF_MEMORY;
break;
}
- easy->set.postfieldsize = pfsize; /* Replace data size. */
+ data->set.postfieldsize = pfsize; /* Replace data size. */
s = cp;
}
result = curl_easy_setopt(easy, CURLOPT_POSTFIELDS, s);
- easy->set.str[STRING_COPYPOSTFIELDS] = s; /* Give to library. */
+ data->set.str[STRING_COPYPOSTFIELDS] = s; /* Give to library. */
break;
default:
if(tag / 10000 == CURLOPTTYPE_BLOB) {
struct curl_blob *bp = va_arg(arg, struct curl_blob *);
|
Any chance you can provide this patch as a full fledged PR? |
Will work on it. |
Any chance I could get write access so I could create branch and raise PRs? |
@andrewkirillov-ibm a typical workflow looks like this:
|
andrewkirillov-ibm
added a commit
to andrewkirillov-ibm/curl
that referenced
this issue
Nov 13, 2024
Fixing issue curl#15566, where IBMi build got broken after recent change to CURL type definition.
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
Compile 8.11.0 on IBM i V7R4M0 system.
The issue seem to be introduced by fixing #15289, which defines CURL as void now. As such, curl_easy_setopt_ccsid(CURL *easy, CURLoption tag, ...) gets broken dereferencing void pointer to access struct Curl_easy fields.
I expected the following
Clean build
curl/libcurl version
8.11.0
operating system
OS400 V7R4M0
The text was updated successfully, but these errors were encountered: