-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Configure test broken for --with-winidn on mingw32 #1669
Comments
So as mentioned in Alexpux/MINGW-packages#2677, it's actually because The fix would posibly be:
|
Not supported by whom? We still support building XP afaik, we have a not insignificant amount of users on XP and earlier Windows versions. |
curl officially supports XP and even older than that? :( IMO, I'd say that while it's nice if it did support said platforms, you shouldn't have to go out of your way to support what is essentially a very old, and unmaintained OS. And just to reiterate, I think it's fair to assume that if |
Right, and we don't go out of our way to support it. But we also don't purposely break what we already have working there. (As for the exact fix for this issue, I don't build/run on windows so I won't write the fix since I can't really test it.) |
Best approach would be to skip the configure test if the user configures explicitly |
Right, which then will make the build fail on windows versions before Vista, but we can of course just document that fact. I'm curious though, as I was under the impression that some builds have actually been done in the past that had support for winidn while you're saying that it can't detect Possibly more important: is there other functions that configure tries to detect that it fails to detect due to this weirdness? (I marked this PR-welcome as I personally will not patch this problem as I don't have a build system myself to test/verify such a change on.) |
Probably 64-bit builds only, for reasons as mentioned here: https://github.com/Alexpux/MINGW-packages/issues/2677#issuecomment-313884699 |
The thing is that this problem only appears on 32 bit windows. There have been previous builds with BTW I was able to build a 32bit libcurl with winidn using the hack below so I can confirm that it does work, if you can only bypass the configure test.
|
I hope @jtanx can maybe help us construct a PR because I don't understand autotool well enough :) |
I am building a version of
mingw-w64-curl
with--with-winidn
(PKGBUILD). It works great on mingw64 however when building in mingw32 I see:And the resulting binary then does:
The problem is that on 32bit
IdnToUnicode
is only available on Windows Vista and higher. Therefore it is only exposed if we compile with:However the configure test seems to conflict with this macro. The
config.log
file shows:I tried running exactly the same command on a simple
test.c
file which has a call toIdnToUnicode()
and there it works fine. So theconftest.c
as generated by autotools does not work with-DWINVER=0x0600
:Is a way to improve this test so that it works in conjunction with -
D_WIN32_WINNT=0x0600
?The text was updated successfully, but these errors were encountered: