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 7.85 can not be built with musl-libc #9560
Comments
It is not a define virtually anywhere (the undef is but a precaution for some edge case we ran into decades ago) and in C, undef'ing a symbol that isn't defined is just a no-op. |
7.84.0 is buildable with musl, so it is the minor update that caused the issie. |
The mentioned "last 3 includes" order should be respected. easy_lock.h should be included before those three. Reported-by: Yuriy Chernyshov Fixes #9560
Yes, but it is not the undef causing it... |
Try #9561, I think it fixes the issue! |
Thanks, this worked. |
Compilation is broken with the following output:
Upon brief research it looks like curl by default (i. e. when no CURLDEBUG is defined) goes through double definition chain (i. e. defining
#define free(ptr) Curl_cfree(ptr)
and invokefree()
fromCurl_cfree
.In musl it is impossible to
#undef free
, as free is not a macro in musl.By studying the diff I was unable to find a changeset causing the problem.
Could you, please, take a look?
The text was updated successfully, but these errors were encountered: