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. |
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: