ravynsoft / ravynos

A BSD-based OS project that aims to provide source and binary compatibility with macOS® and a similar user experience.
https://www.ravynos.com
Other
5.68k stars 192 forks source link

Compilation Error: libepoll-shim Header File Not Found #441

Closed chris-romanov closed 3 months ago

chris-romanov commented 3 months ago

Description:

While trying to compile libinput as part of the WindowServer component, I encountered a fatal error related to the libepoll-shim library.

Steps to Reproduce:

1.  Run the make command in the directory /usr/src/CoreServices/WindowServer/libinput.
2.  The compilation process fails with the following error:

/usr/src/CoreServices/WindowServer/libinput/src/libinput.c -o libinput.o In file included from /usr/src/CoreServices/WindowServer/libinput/src/libinput.c:33: /usr/obj/usr/src/amd64.amd64/tmp/usr/include/libepoll-shim/sys/epoll.h:64:10: fatal error: 'epoll-shim/detail/common.h' file not found 64 | #include <epoll-shim/detail/common.h> | ^~~~~~~~ 1 error generated. *** Error code 1

chris-romanov commented 3 months ago

TEMP FIX

Comment this:

SRC lib/libepoll-shim/include/sys/epoll.h

//#ifndef EPOLL_SHIM_DISABLE_WRAPPER_MACROS
//#include <detail/common.h>
//#endif

SRC lib/libepoll-shim/include/sys/timerfd.h

//#ifndef EPOLL_SHIM_DISABLE_WRAPPER_MACROS
//#include <detail/common.h>
//#include <detail/poll.h>
//#include <detail/read.h>
//#endif
mszoek commented 3 months ago

Can you retry this without your patch on the latest source tree and let me know if it is fixed for you?

chris-romanov commented 3 months ago

Hello:) Issue has been resolved.