Repository navigation
Added #ifdef CURLDEBUG into curl_mem_undef.h - #18501
andrewkirillov-ibm wants to merge 3 commits into
Conversation
|
This fixes a non-debug build, but still makes a debug-build fail, right? |
|
Non debug build is fixed indeed. Debug build, I would imaging, is in the same state as it used to be on AIX (not sure how often it is done on this platform), as even before |
|
non-CURLDEBUG builds should keep undef-ing these symbols, to reset them after a |
vszakats
left a comment
There was a problem hiding this comment.
This header is meant to undo the system symbol overrides done via curl_memory.h and memdebug.h.
|
Yes, debug build gets broken on AIX, but on a different file: |
|
Maybe introducing It's called 3-4 times in total in the core codebase. (some more in servers) |
|
I did update the pull request. @bagder Thinking more about the original question, I seem to remember debug build on AIX was broken about this time a year ago too. But I did not have time to get to the bottom of it at that time. Definitely it would be nice to have non-debug build back again. |
|
|
||
| #ifdef _WIN32 | ||
| #undef _tcsdup | ||
| #endif |
There was a problem hiding this comment.
The symbols above should always be undefined for a "clean slate".
They are overridden for both CURLDEBUG and non-CURLDEBUG builds.
There was a problem hiding this comment.
Did another round of reshuffling.
|
@andrewkirillov-ibm Does this patch work for you?: #18502 |
|
Merging your branch, testing ... |
|
@vszakats I cloned your branch and gave it a go - non-debug build is fine on AIX. Will check debug one too, but I can imagine it should be fine. |
|
@andrewkirillov-ibm Would you mind running the tests with a fix reduced to I think that mod is not necessary to fix this. it'd be nice to keep the patch minimal so close to the release. |
|
@vszakats Just did AIX build with the patch applied - works good. |
|
@andrewkirillov-ibm: Thanks for your report and tests. I merged #18502. |
Fixes #18500