snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Cabal Install Failure #89

Closed alaudidaelark closed 11 years ago

alaudidaelark commented 11 years ago

Is it just me?

cabal install snap
Resolving dependencies...
Configuring securemem-0.1.2...
Building securemem-0.1.2...
Preprocessing library securemem-0.1.2...
[1 of 1] Compiling Data.SecureMem   ( Data/SecureMem.hs, dist/build/Data/SecureMem.o )

Data/SecureMem.hs:33:40:
    Module `GHC.ForeignPtr' does not export `ForeignPtrContents(..)'
Failed to install securemem-0.1.2
cabal: Error: some packages failed to install:
cipher-aes-0.2.3 depends on securemem-0.1.2 which failed to install.
clientsession-0.9.0.2 depends on securemem-0.1.2 which failed to install.
cprng-aes-0.4.0 depends on securemem-0.1.2 which failed to install.
crypto-cipher-types-0.0.3 depends on securemem-0.1.2 which failed to install.
securemem-0.1.2 failed during the building phase. The exception was:
ExitFailure 1
snap-0.12.1 depends on securemem-0.1.2 which failed to install.
mightybyte commented 11 years ago

This looks like an issue with the securemem package. You should talk to the maintainer of that package.

gregorycollins commented 11 years ago

Which version of GHC are you using? On which platform?

If you can find a version of "securemem" that builds on your machine then you could try to constrain dependency resolution to that version.

alaudidaelark commented 11 years ago

GHC version 7.4.2 on Fedora 19 3.10.7-200.fc19.x86_64

I can't find any version of securemem to compile on my machine :S. I guess I will have to raise the issue there at securemem

Fristi commented 11 years ago

I have kinda the same issue.. different dependency though.

C:\Users\Mark>cabal install snap
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: snap-0.12.1
trying: snap-0.12.1:-old-base
trying: lens-3.9.0.2
trying: tagged-0.7
trying: clientsession-0.9.0.2
rejecting: skein-1.0.3, 1.0.2, 1.0.1 (conflict: tagged==0.7, skein =>
tagged>=0.2 && <0.7)
rejecting: skein-1.0.0 (conflict: tagged==0.7, skein => tagged>=0.2 && <0.5)
rejecting: skein-0.1.0.12, 0.1.0.11, 0.1.0.10, 0.1.0.9, 0.1.0.8, 0.1.0.7,
0.1.0.6, 0.1.0.5, 0.1.0.4, 0.1.0.3, 0.1.0.2, 0.1.0.1, 0.1 (conflict:
clientsession => skein==1.0.*)

GHC version: 7.6.3 on Windows 8

mightybyte commented 11 years ago

@Fristi See https://github.com/snapframework/snap-core/issues/180

mightybyte commented 11 years ago

@alaudidaelark In the interim, try building snap with cabal install snap --constraint='cipher-aes<0.2'.

alaudidaelark commented 11 years ago

@mightybyte your fix works for now, thanks.

alaudidaelark commented 11 years ago

problem fixed in securmem 0.1.3