-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
(MSYS2/MinGW/GCC 14) nonblock.c: In function 'curlx_nonblock': no non-blocking method was found/used/set #13579
Comments
How do you build curl? |
I start the media-autobuild_suite.bat and wait... Details are in the attached logs.zip file (several logs and configurations collected by M-AB-S). Head of the make log:
Configuration: |
Normally for mingw-w64, |
Yesterday and the day before it still compiled... |
Our tests are silent about this. It's the line Is there any clue in your |
https://github.com/curl/curl/files/15273796/logs.zip contains all the log files.
|
Thanks. It's a legit complaint from the compiler, but this check has been like this since forever. Would this be explained by a compiler upgrade? gcc 14 just happened. |
Indeed possible...
|
``` conftest.c:152:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types] 152 | if(0 != ioctlsocket(0, FIONBIO, &flags)) | ^~~~~~ | | | int * ``` Reported-by: LigH Fixes curl#13579 Closes #xxxxx
Would this patch fix the build for you?: |
I have only little experience in editing the shell scripts used by the suite. |
This link gives you the raw .diff: |
Yes, I discovered how to add this patch and curl builds again. |
@LigH-de Thanks for testing, and reporting! The fix is merged now. |
Sorry for reviving this. I just wanted to point this line out. I think a similar issue might happen at some point, as the wrong pointer type is passed (long instead of int though) |
@mickmack1213 Can you paste which line do you mean or give a permalink? |
This actually is a permalink, it highlights the matching line 3253 in the source view in a reasonably modern webbrowser.
But I believe it refers to the following two lines, not the one with the double square brackets. |
Ah okay, thanks for the snippet. (In my browser, your link points to |
Do you have a documentation link for |
The official Microsoft Winsock2 documentation specifies the |
Are you sure this snippet is for Windows? the casing of the function looks different. |
No, I only remembered that ioctlsocket is one of the functions in Winsock[2]. But now I noticed that the presence of But I confess, I do not know where exactly the M4 script looks for it. |
I did this
Compiling in media-autobuild suite for Win32 target
logs.zip
HAVE_IOCTLSOCKET_FIONBIO should be defined as 1 in lib/config-win32.h
I expected the following
successful compilation
curl/libcurl version
HEAD
operating system
MSYS2/MinGW
The text was updated successfully, but these errors were encountered: