[Pkg-haskell-maintainers] Bug#662835: haskell-sendfile: FTBFS on 32-bit Linux (wants 64-bit off_t)

Aaron M. Ucko ucko at debian.org
Tue Mar 6 18:09:55 UTC 2012

Source: haskell-sendfile
Version: 0.7.4-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Builds of haskell-sendfile 0.7.4 on 32-bit Linux have been failing,
holding up builds of haskell-happstack-server and thus gitit:

    Couldn't match expected type `Int32' with actual type `Int64'
    Expected type: Ptr Int32
      Actual type: Ptr Int64
    In the third argument of `c_sendfile', namely `poff'
    In a stmt of a 'do' block:
      sbytes <- (c_sendfile out_fd in_fd poff (fromIntegral bytes))

Could you please ensure that haskell-sendfile sees a 64-bit off_t by
compiling it with `getconf LFS_CFLAGS` (or -D_LARGEFILE_SOURCE


More information about the Pkg-haskell-maintainers mailing list