
I'm getting the following error message trying to compile the latest version of GHC on Mac OS 10.2.1, using GHC 5.04.2 installed from binaries: ../../ghc/compiler/ghc-inplace -H16m -O -Iinclude -package-name unix -O -Rghc-timing -p\ ackage base -split-objs -c System/Sendfile.hs -o System/Sendfile.o -ohi System/Sendf\ ile.hi Sendfile.hsc:94: Couldn't match `IO ()' against `Fd -> Fd -> Int -> Int -> IO ()' Expected type: IO () Inferred type: Fd -> Fd -> Int -> Int -> IO () In a right-hand side of function `sendfile': squirt In the definition of `sendfile': sendfile inFd outFd startpos count = squirt make[2]: *** [System/Sendfile.o] Error 1 make[1]: *** [all] Error 1 make: *** [build] Error 1 -- Kirsten Chevalier * krc@uclink.berkeley.edu * Often in error, never in doubt

In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94: Couldn't match `IO ()' against `Fd -> Fd -> Int -> Int -> IO ()'
Should be fixed in CVS now, thanks! -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine

On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote:
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94: Couldn't match `IO ()' against `Fd -> Fd -> Int -> Int -> IO ()'
Should be fixed in CVS now, thanks!
Now I'm getting the following error instead: ../../ghc/compiler/ghc-inplace -H16m -O -Iinclude -package-name unix -O -Rghc-timing -package base -split-objs -c System/Sendfile.hs -o System/Sendfile.o -ohi System/Sendfile.hi Sendfile.hsc:19: Variable not in scope: `c_sendfile' -- Kirsten Chevalier * krc@uclink.berkeley.edu * Often in error, never in doubt

Am 17. Mar 2003 um 02:04 CET schrieb Kirsten Chevalier:
On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote:
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94: Couldn't match `IO ()' against `Fd -> Fd -> Int -> Int -> IO ()'
Should be fixed in CVS now, thanks!
*sigh*. I used fptools/mk/config.h for trying to test compilation of the fallback case. Unfortunately, there's anoher config.h around, so in fact the test run wasn't compiled with the correct #ifdefs. Apologies, Volker -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME

On Mon, Mar 17, 2003 at 11:18:21AM +0100, Volker Stolz wrote:
Am 17. Mar 2003 um 02:04 CET schrieb Kirsten Chevalier:
On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote:
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94: Couldn't match `IO ()' against `Fd -> Fd -> Int -> Int -> IO ()'
Should be fixed in CVS now, thanks!
*sigh*. I used fptools/mk/config.h for trying to test compilation of the fallback case. Unfortunately, there's anoher config.h around, so in fact the test run wasn't compiled with the correct #ifdefs.
I just did a cvs update and ran configure again, and I'm still getting the same error message ("Sendfile.hsc:19: Variable not in scope: `c_sendfile'"). -- Kirsten Chevalier * krc@uclink.berkeley.edu * Often in error, never in doubt

As far as I can tell right now, "sendfile" is not supported on Mac OS X. There's no manual page, and it doesn't seem to be in any sytem library. There is a prototype in sys/socket.h, but it's wrapped in an #ifdef that's never #defined. When I last build the HEAD here, I didn't have any problems - ./configure found out that sendfile is not supported, and everything is fine until I try to use it (there wasn't yet a fallback implementation then). What did configure say on the subject of sendfile? Cheers, Wolfgang

On Mon, Mar 17, 2003 at 11:40:58AM +0100, Wolfgang Thaller wrote:
As far as I can tell right now, "sendfile" is not supported on Mac OS X. There's no manual page, and it doesn't seem to be in any sytem library. There is a prototype in sys/socket.h, but it's wrapped in an #ifdef that's never #defined. When I last build the HEAD here, I didn't have any problems - ./configure found out that sendfile is not supported, and everything is fine until I try to use it (there wasn't yet a fallback implementation then). What did configure say on the subject of sendfile?
configure says: checking for sendfile in sys/sendfile.h... no checking for sendfile in sys/socket.h... no I tried building again just now, just to be sure, and still got the same error message ("Sendfile.hsc:19: Variable not in scope: `c_sendfile'"). Thanks, Kirsten -- Kirsten Chevalier * krc@uclink.berkeley.edu * Often in error, never in doubt

* Kirsten Chevalier
configure says:
checking for sendfile in sys/sendfile.h... no checking for sendfile in sys/socket.h... no
I tried building again just now, just to be sure, and still got the same error message ("Sendfile.hsc:19: Variable not in scope: `c_sendfile'").
Try removing c_sendfile from the export list. Cheers, Michael
participants (5)
-
Kirsten Chevalier
-
Michael Weber
-
Volker Stolz
-
Volker Stolz
-
Wolfgang Thaller