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
cmake: set HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID on Windows #9726
Conversation
310733f
to
89718ca
Compare
AppVeyor CI, CMake debug builds (both MSVC and MinGW) are consistently failing test 1056: Seems related. I rarely do debug builds, so any help is appreciated. |
It doesn't happen in release builds only because they're not running tests at all. Test 1056 is also failing for the autotools builds on AppVeyor, it's just disabled there. So it probably can be safely disabled for CMake too. I don't know the reason why it fails though. |
It might be because it should not be enabled without IPv6. Committed a fix. Let's see how it runs. |
Couldn't find any place in the code where this flag had an effect with IPv6 disabled. It's also always-on in Going with ignoring results for this test with CMake as well. Thank you @MarcelRaad for the suggestion! |
This configuration option is enabled unconditionally in `lib/config-win32.h`. Make it apply to CMake builds as well. While here, delete a broken check for `HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID` from `CMakeLists.txt`. This came with the initial commit [1], but did not include the actual verification code inside `CMake/CurlTests.c`, so it always failed. A later commit [2] added a second test, for non-Windows platforms. Enabling this flag causes test 1056 to fail with CMake builds, just like they do with autotools builds. Let's apply the same solution and ignore the results here as well. [1] 4c5307b [2] aec7c5a Reviewed-by: Daniel Stenberg Assisted-by: Marcel Raad Closes #xxxx
@mback2k: Strangely, today these (8) failures reappeared under a different PR, that did not have this patch. Rebasing to this one "fixed it". Something indeed feels off with these tests. |
So, do I understand it correctly that fa62a26 makes test 1056 work again? |
Nope, sorry, I had to rebase it to this patch, which disabled those tests (CI run here). What I didn't understand is why did they (re)appear there in the first place. |
Ah, understood. Maybe because your PR enabled the IPv6 feature for those builds? |
That's the interesting bit, that PR is not supposed to change things around IPv6. It adds an additional safeguard to |
This configuration option is enabled unconditionally in
lib/config-win32.h
. Make it apply to CMake builds as well.While here, delete a broken check for
HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
fromCMakeLists.txt
. This came with the initial commit [1], but did not include the actual verification code insideCMake/CurlTests.c
, so it always failed. A later commit [2] added a second test, for non-Windows platforms.Enabling this flag causes test 1056 to fail with CMake builds, just like they do with autotools builds. Let's apply the same solution and ignore the results here as well.
[1] 4c5307b
[2] aec7c5a
Closes #xxxx