Skip to content
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

Davix "master" branch fails to compile on macOS (caused by DMC-1394) #115

Closed
chrisburr opened this issue Mar 21, 2024 · 1 comment
Closed

Comments

@chrisburr
Copy link
Contributor

This commit 364d440 conflicts with a macro defined in the macOS SDK which results in errors like:

[ 16%] Building CXX object src/CMakeFiles/libdavix.dir/curl/StandaloneCurlRequest.cpp.o
/Users/cburr/Development/conda-forge/davix-feedstock/miniforge3/conda-bld/davix_1711060355645/work/src/curl/StandaloneCurlRequest.cpp:208:23: error: no matching function for call to '__tolower'
  auto header_lower = _tolower(header_name);
                      ^~~~~~~~~~~~~~~~~~~~~
/Users/cburr/Development/conda-forge/davix-feedstock/SDKs/MacOSX11.0.sdk/usr/include/_ctype.h:208:21: note: expanded from macro '_tolower'
#define _tolower(c)     __tolower(c)
                        ^~~~~~~~~
/Users/cburr/Development/conda-forge/davix-feedstock/SDKs/MacOSX11.0.sdk/usr/include/_ctype.h:189:20: note: candidate function not viable: no known conversion from 'const std::string' (aka 'const basic_string<char>') to '__darwin_ct_rune_t' (aka 'int') for 1st argument
__darwin_ct_rune_t      __tolower(__darwin_ct_rune_t);
                        ^
/Users/cburr/Development/conda-forge/davix-feedstock/miniforge3/conda-bld/davix_1711060355645/work/src/curl/StandaloneCurlRequest.cpp:211:25: error: no matching function for call to '__tolower'
    if (header_lower == _tolower(it.first)) {
                        ^~~~~~~~~~~~~~~~~~
    return 0;
/Users/cburr/Development/conda-forge/davix-feedstock/SDKs/MacOSX11.0.sdk/usr/include/_ctype.h:208:21: note: expanded from macro '_tolower'
#define _tolower(c)     __tolower(c)
                        ^~~~~~~~~
/Users/cburr/Development/conda-forge/davix-feedstock/SDKs/MacOSX11.0.sdk/usr/include/_ctype.h:189:20: note: candidate function not viable: no known conversion from 'const std::string' to '__darwin_ct_rune_t' (aka 'int') for 1st argument
__darwin_ct_rune_t      __tolower(__darwin_ct_rune_t);
                        ^
In file included from /Users/cburr/Development/conda-forge/davix-feedstock/miniforge3/conda-bld/davix_1711060355645/work/src/curl/StandaloneCurlRequest.cpp:22:
/Users/cburr/Development/conda-forge/davix-feedstock/miniforge3/conda-bld/davix_1711060355645/work/src/curl/StandaloneCurlRequest.hpp:127:8: warning: private field '_reuse_session' is not used [-Wunused-private-field]
  bool _reuse_session;
       ^
1 warning and 2 errors generated.

Renaming _tolower fixes the issue.

@mpatrascoiu
Copy link
Contributor

Hello Chris,

Thanks for reporting this! Unfortunately, we don't have a macOS build job anymore in the pipeline. It would have spotted something like this.

I'll take care of it.

Cheers,
Mihai

@mpatrascoiu mpatrascoiu changed the title Master fails to compile on macOS Davix v0.8.5 fails to compile on macOS Mar 22, 2024
@mpatrascoiu mpatrascoiu changed the title Davix v0.8.5 fails to compile on macOS Davix "master" branch fails to compile on macOS (caused by DMC-1394) Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants