Sv: Issue regarding SFD_CLOEXEC. error: "''O_CLOEXEC' undeclared here (not in a function); did you mean 'FD_CLOEXEC'?"

christianon39@outlook.com christianon39@outlook.com
Tue Jun 18 22:15:40 GMT 2024


This is a test file I ran so that I didnt need to run the build every time for wlroots. Compiled to exe file with "gcc -o checko test.c". Needs to have a file just called testfile to work
________________________________
Fra: christianon39@outlook.com <christianon39@outlook.com>
Sendt: tirsdag 18. juni 2024 17:07
Til: cygwin@cygwin.com <cygwin@cygwin.com>
Emne: Issue regarding SFD_CLOEXEC. error: "''O_CLOEXEC' undeclared here (not in a function); did you mean 'FD_CLOEXEC'?"

Hi, I am trying to build wlroots, but get this error in meson logs:
Command line: `cc /home/Chris/wlroots/build/meson-private/tmprxphcsub/testfile.c -o /home/Chris/wlroots/build/meson-private/tmprxphcsub/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -std=c11` -> 1
stderr:
In file included from /home/Chris/wlroots/build/meson-private/tmprxphcsub/testfile.c:2:
/usr/include/sys/signalfd.h:17:17: error: 'O_CLOEXEC' undeclared here (not in a function); did you mean 'FD_CLOEXEC'?
   17 |   SFD_CLOEXEC = O_CLOEXEC,
      |                              ^~~~~~~~~
      |                              FD_CLOEXEC
-----------
Header "sys/signalfd.h" has symbol "SFD_CLOEXEC" : NO

subprojects/wayland-1.20.0/meson.build:83:3: ERROR: Problem encountered: SFD_CLOEXEC is needed to compile Wayland libraries

 Is there any solution for this? Or is it a bug that needs to be fixed?
I am using Windows 10 Version 22H2 Build: 19045.3448.
CPU: Ryzen 5 2600
GPU: Nvidia RTX 2070
RAM: 32GB
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.c
URL: <https://cygwin.com/pipermail/cygwin/attachments/20240618/ed460aad/attachment.c>


More information about the Cygwin mailing list