Someone on IRC pointed out the library order was the problem, which I
think is due to c2hs not declaring a dependency on HShaskell98. Patch
attached (without autoconf rerun as that just creates noise).
Thanks
Ian
diff -ur c2hs-0.10.17.orig/base/sysdep/SysDepPosixAVAIL.hs
c2hs-0.10.17/base/sysdep/SysDepPosixAVAIL.hs
--- c2hs-0.10.17.orig/base/sysdep/SysDepPosixAVAIL.hs Fri Aug 18 06:41:06 2000
+++ c2hs-0.10.17/base/sysdep/SysDepPosixAVAIL.hs Tue Feb 11 20:31:29 2003
@@ -55,8 +55,7 @@
import Posix (forkProcess, executeFile,
Fd, createPipe, dupTo, fdClose,
- intToFd, fdToHandle)
-import PosixUtil (ProcessID)
+ intToFd, fdToHandle, ProcessID)
-- Process management
diff -ur c2hs-0.10.17.orig/configure.in c2hs-0.10.17/configure.in
--- c2hs-0.10.17.orig/configure.in Thu Sep 5 14:37:43 2002
+++ c2hs-0.10.17/configure.in Tue Feb 11 20:42:30 2003
@@ -177,6 +177,12 @@
PACKAGES=""
SYSFEATURES=""
if test $hc_base = ghc; then
+ dnl Check in which system library we find the basic Haskell 98 stuff.
+ CTK_LIB_SYSLIB(List, haskell98)
+ if test $syslib_List = not-found; then
+ AC_MSG_ERROR([Could not find Haskell 98 moduled (tried "List").])
+ fi
+ PACKAGES="$PACKAGES $syslib_List"
CTK_LIB_SYSLIB(Posix, posix)
if test $syslib_Posix != not-found; then
PACKAGES="$PACKAGES posix"