You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile and link libCurl 7.78.0 on OS400 V7R4M0 (with or without GSKit)
CZM1002: cfilters.c.819, 84.32: CZM0215(20) Too many arguments specified for macro close.
CZM1003: cfilters.c.819, 84.18: CZM0022(30) "close_a" is not a member of "const struct Curl_cftype".
CZM1002: cfilters.c.819, 156.22: CZM0215(20) Too many arguments specified for macro close.
CZM1003: cfilters.c.819, 156.14: CZM0022(30) "close_a" is not a member of "const struct Curl_cftype".
CZS0601: Module CFILTERS is not created because statement errors occurred.
CZM0613: The compilation failed.
CZM1002: socks.c.819, 1199.32: CZM0215(20) Too many arguments specified for macro close.
CZM1003: socks.c.819, 1199.18: CZM0022(30) "close_a" is not a member of "const struct Curl_cftype".
CZS0601: Module SOCKS is not created because statement errors occurred.
CZM0613: The compilation failed.
CZM1002: vtls/vtls.c.819, 1192.21: CZM0215(20) Too many arguments specified for macro close.
CZM1003: vtls/vtls.c.819, 1192.13: CZM0022(30) "close_a" is not a member of "const struct Curl_ssl".
CZM1002: vtls/vtls.c.819, 1445.23: CZM0215(20) Too many arguments specified for macro close.
CZM1003: vtls/vtls.c.819, 1445.15: CZM0022(30) "close_a" is not a member of "const struct Curl_ssl".
CZM1002: vtls/vtls.c.819, 1495.32: CZM0215(20) Too many arguments specified for macro close.
CZM1003: vtls/vtls.c.819, 1495.18: CZM0022(30) "close_a" is not a member of "const struct Curl_cftype".
CZS0601: Module VTLS is not created because statement errors occurred.
CZM0613: The compilation failed.
These compile errors are because there is now a function pointer called close which takes two arguments and the preprocessor macro expansion can't distinguish... by default including the ASCII runtime header unistd.h #define close(a) as close_a(a)
This can be avoided by defining 'qadrt_use_inline' which avoids the define and instead inlines the redirection.
There is also a link error where the list of exported routines is generated by scraping the header files for routines that are declared as CURL_EXTERN but routines qualified with CURL_DEPRECATED(...) now fail to be correctly identified by the regex matching in the sed script.
I expected the following
Clean build
curl/libcurl version
libCurl 7.78.0
operating system
OS400 V7R4M0
The text was updated successfully, but these errors were encountered:
Adjust how exports list is generated from header files to account for
declarations across multiple lines and CURL_DEPRECATED(...) tags.
Update initscript.sh
Specify qadrt_use_inline to prevent unistd.h in ASCII runtime defining
close(a) -> close_a(a)
Fixescurl#10266Closescurl#10267
I did this
Compile and link libCurl 7.78.0 on OS400 V7R4M0 (with or without GSKit)
These compile errors are because there is now a function pointer called close which takes two arguments and the preprocessor macro expansion can't distinguish... by default including the ASCII runtime header unistd.h
#define close(a) as close_a(a)
This can be avoided by defining 'qadrt_use_inline' which avoids the define and instead inlines the redirection.
There is also a link error where the list of exported routines is generated by scraping the header files for routines that are declared as
CURL_EXTERN
but routines qualified withCURL_DEPRECATED(...)
now fail to be correctly identified by the regex matching in the sed script.I expected the following
Clean build
curl/libcurl version
libCurl 7.78.0
operating system
OS400 V7R4M0
The text was updated successfully, but these errors were encountered: