-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Error when building on Mac OS X #128
Comments
Lwan is unfortunately not compatible with OS X. I don't own a Mac, so I can't support it myself. |
Help is appreciated to make it work on OS X, though. Could you please try changing the call to Lwan should build -- although it isn't working -- on FreeBSD, which OS X is quite similar to. So it shouldn't be too much work to at least get it building on a Mac. |
@lpereira I've tried to replace
Doing some further research it seems OSX doesn't have POSIX As I have a very basic knowledge on C development I can't argue about further solutions for this issue. But on an overlook it seems the errors happening on OSX are just due to different API implementations and thus should not be a big deal to fix in the future (hopefully). |
I am working on this, except the coro_swapcontext() routine. |
That's a lot of work to do. I can build lwan on OSX now. But I got a segment fault when I run lwan without lwan.conf and access 127.0.0.1:8080. Even it can't be debug with lldb. |
Pretty nice, @lampmanyao! That looks like where I am while trying to run it under FreeBSD: it runs, but segfaults after a few requests. Sometimes it's the first request, sometimes it takes a few dozen requests. Sometimes prints requests with an "UNKNOWN" method are printed, which is quite unexpected; are you seeing this as well? |
@lpereira It is not the same problem. The segfaults i have fixed, but now, i got a Bus error (10) and all thread are stopped by signal SIGSTOP. |
I haven't had time to investigate any further, unfortunately. Please make a PR with the patch to build it on OS X, maybe someone will be able to take a shot at debugging this as well. Thanks again! |
I'm closing this issue as Lwan is building on OS X now. It also has a OS X build bot so I'm notified in case something breaks. Feel free to reopen the issue or create a new one. |
When I run the
make
command from readme.md tutorial, I get this message:Cmake v 3.4.1
Python v 2.7.10
The commands I used to run LWAN were:
Did I miss any step?
The text was updated successfully, but these errors were encountered: