[Hackage] #876: Build fails for zlib 0.5

Hackage cvs-ghc at haskell.org
Wed Sep 14 20:01:38 CEST 2011


#876: Build fails for zlib 0.5
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:                     
      Type:  defect         |       Status:  reopened           
  Priority:  low            |    Milestone:                     
 Component:  Cabal library  |      Version:  HEAD               
  Severity:  minor          |   Resolution:                     
  Keywords:                 |   Difficulty:  very easy (<1 hour)
Ghcversion:                 |     Platform:                     
----------------------------+-----------------------------------------------
Changes (by benmachine):

  * status:  closed => reopened
  * resolution:  invalid =>


Comment:

 It's not a bug in `zlib` — `cabal-install` claims it can build with
 `zlib-0.5.0.0` but we get this error:

 {{{
 [ 6 of 44] Compiling Distribution.Client.GZipUtils (
 Distribution/Client/GZipUtils.hs, dist/build/cabal/cabal-
 tmp/Distribution/Client/GZipUtils.o )

 Distribution/Client/GZipUtils.hs:33:38:
     Not in scope: `decompressWithErrors'

 Distribution/Client/GZipUtils.hs:33:59:
     Not in scope: `gzipOrZlibFormat'

 Distribution/Client/GZipUtils.hs:39:17:
     Not in scope: data constructor `StreamError'

 Distribution/Client/GZipUtils.hs:39:29:
     Not in scope: data constructor `DataError'

 Distribution/Client/GZipUtils.hs:42:12:
     Not in scope: data constructor `StreamEnd'

 Distribution/Client/GZipUtils.hs:43:13:
     Not in scope: data constructor `StreamChunk'

 Distribution/Client/GZipUtils.hs:44:13:
     Not in scope: data constructor `StreamError'
 }}}

 I can't find a ChangeLog for `zlib` but I assume the fix is to specify the
 dep as `zlib >= 0.5.2 && < 0.6`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/876#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list