Closed kgardas closed 9 years ago
I think I fixed this with commit snapframework/snap-core@11059047445c12545dda44e2a2f371a5053055ec. Can you try it and see if it's fixed for you before I upload to hackage?
This works for me. Thanks for the patch. Now, on Solaris 11 we still do have issue with undefined timegm function, but that's another story:
[2 of 2] Compiling Main ( src/Snap/Starter.hs, dist/dist-sandbox-8d2340e/build/snap/snap-tmp/Main.o )
Linking dist/dist-sandbox-8d2340e/build/snap/snap ...
Undefined first referenced
symbol in file
timegm /export/home/karel/git/snap-core-test/snap-core/.cabal-sandbox/lib/i386-solaris-ghc-7.10.1/snapc_HI0RgBFAcuM7tWnqWe3yQO/libHSsnap-core-0.9.7.1-HI0RgBFAcuM7tWnqWe3yQO.a(timefuncs.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
Failed to install snap-0.14.0.4
cabal: Error: some packages failed to install:
snap-0.14.0.4 failed during the building phase. The exception was:
ExitFailure 1
timegm is used in snap-core. Why don't you open another issue on the snap-core package with more details?
I think I was wrong and this fix is not the correct one. You have basically removed -DPORTABLE for GHC 7.10.1 and this causes timegm linking issue. The problem is that -fportable was working fine on Solaris 11 in the past, see #136
I've found that similar issue is already reported and hopefully fixed in HEAD, it's snap-core#228 https://github.com/snapframework/snap-core/issues/228
I've tested HEAD (1.0.0.0 version) and this is working fine on Solaris 11 with -fportable.
Thanks for following up with this. I reverted my commit and applied the patch from the master branch.
Hello, an attempt to cabal install -fportable snap -- on Solaris 11 with GHC 7.10.1 fails with:
Thanks! Karel