Skip to content
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

Compilation error on Mac OS: TimerFD #183

Closed
4x10m opened this issue Jan 24, 2018 · 6 comments
Closed

Compilation error on Mac OS: TimerFD #183

4x10m opened this issue Jan 24, 2018 · 6 comments

Comments

@4x10m
Copy link

4x10m commented Jan 24, 2018

Hi there,

Just to tell you that i stop to try to make pistache working on Mac OS.
After a lot of problems, i have the following error that i can't solve:

evan@MacBook-Pro-de-****
  ~/Documents/GitHub/pistache/build   master ●  cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
-- RapidJSON found. Headers: /usr/local/Cellar/rapidjson/1.1.0/include
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/evan/Documents/GitHub/pistache/build
[  2%] Building CXX object src/CMakeFiles/pistache.dir/common/description.cc.o
In file included from /Users/evan/Documents/GitHub/pistache/src/common/description.cc:10:
In file included from /Users/evan/Documents/GitHub/pistache/include/pistache/description.h:19:
In file included from /Users/evan/Documents/GitHub/pistache/include/pistache/router.h:12:
/Users/evan/Documents/GitHub/pistache/include/pistache/http.h:14:10: fatal error: 'sys/timerfd.h' file not
      found
#include <sys/timerfd.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/pistache.dir/common/description.cc.o] Error 1
make[1]: *** [src/CMakeFiles/pistache.dir/all] Error 2
make: *** [all] Error 2

I can give you more log if you want.
Regards

@xoac
Copy link

xoac commented Jan 24, 2018

Pistache don't work on Mac OS see #1 And from some time there is no update to this repo, even from PR. If u resolved evnet pool problem u can fork and link to your repo this will make easier to help.

@4x10m
Copy link
Author

4x10m commented Jan 25, 2018

OK sorry for duplicating.

I don't know if I solved evnet pool problem. How do i know that ? Do you mean that you believe I have solve this problem ?

By the way, i will fork.

EDIT: I think I didn't solved anything haha.
The only change I have is :

cpu_set_t toPosix() const;
//cpu_set_t toPosix() const;

@xoac
Copy link

xoac commented Jan 25, 2018

If you don't know that, look for other lib @oktal (author) is inactive :( for a long time.

@oktal
Copy link
Collaborator

oktal commented Feb 15, 2018

Hello,

As discussed in #1 Pistache does not yet compile on Mac OS. This is due to the fact that it's internally using constructs such as epoll or timerfd that are linux-specific to power its event-loop.

To support Mac OS, we need an abstraction other the Reactor and Poller mechanism that supports other constructs like kqueue on Mac OS. Since more and more users are requesting it, I'll prioritize it first.

@dtsmith2001
Copy link

@oktal Is support for Mac OS scheduled for the next release?

@dennisjenkins75
Copy link
Collaborator

oktal has taken a leave of absence. I'm handling general project maintenance for the time being.

There is no official MacOS support planned. Pistcahe uses the Linux eventfs. IDK if that is available on Mac. I don't have a Mac to test on. If someone wants to submit a PR that properly abstracts the code such that it will work on Linux and Mac, that would be awesome. I will do my best to get a friend with a Mac to double check the PR and then I'll merge it.

Tachi107 added a commit to Tachi107/pistache that referenced this issue Sep 27, 2021
related to pistacheio#41
related to pistacheio#183
related to pistacheio#760
closes     pistacheio#960
related to pistacheio#985

related to pistacheio#6
related to pistacheio#538
related to pistacheio#649
related to pistacheio#741
related to pistacheio#874

closes     pistacheio#525
Tachi107 added a commit to Tachi107/pistache that referenced this issue Sep 27, 2021
related to pistacheio#41
related to pistacheio#183
related to pistacheio#760
closes     pistacheio#960
related to pistacheio#985

related to pistacheio#6
related to pistacheio#538
related to pistacheio#649
related to pistacheio#741
related to pistacheio#874

closes     pistacheio#525
dennisjenkins75 pushed a commit that referenced this issue Sep 27, 2021
related to #41
related to #183
related to #760
closes     #960
related to #985

related to #6
related to #538
related to #649
related to #741
related to #874

closes     #525
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants