-
Notifications
You must be signed in to change notification settings - Fork 67
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
snap linking failure on Solaris due to missing timegm function #136
Comments
You can install snap with -fportable which should turn off any C extensions. The offending code is here: |
Thanks for the hint! I've already hacked there my_timegm as recommended by timegm(3). Anyway:
is also working well. So feel free to close it or do not if you like to have this open and on eyes. Hmm, perhaps edit and addition of currently supported flags to https://hackage.haskell.org/package/snap -- should be enough? I've quickly scanned over faq and some doc and have not been able to find -fportable there nor on the hackage page. |
For performance reasons it would be preferable if the C code were CPP'd to work correctly; portable mode chooses slower alternatives for many common operations. The "portable" flag is for snap-core and snap-server, which is why you didn't see it at the snap package; probably we should mention it there as well. |
I'll see if I may provide some timegm for Solaris. Anyway, you should note all the flags on snap package page too since you recommend it as quick install way on http://snapframework.com/download -- and I used that "cabal install snap" in a hope this will solve all the dependency too. Thanks! |
Hello,
an atempt to cabal install snap on Solaris 11 with GHC 7.8.3 fails with:
It looks like timegm is Linux-specific time function which is not implemented on Solaris, from timegm(3):
Just reporting for the record. If Snap is applicable to my project I will surely attempt to submit proper fix.
The text was updated successfully, but these errors were encountered: