Package: haddock
Severity: serious
Version: 0.6-2
Tags: patch

>From my pbuilder build log (this is in an i386 chroot, with gcc ->
gcc-3.3 as usual):

/usr/bin/ghc -o haddock.bin -H16m -O -package network -fglasgow-exts -cpp       
Binary.o BlockTable.o Digraph.o FastMutInt.o HaddockDB.o HaddockHH.o 
HaddockHtml.o HaddockLex.o HaddockModuleTree.o HaddockParse.o HaddockRename.o 
HaddockTypes.o HaddockUtil.o HaddockVersion.o HsLexer.o HsParseMonad.o 
HsParseUtils.o HsParser.o HsSyn.o Html.o Main.o
Main.o(.text+0x15347): In function `__stginit_Main_':
: undefined reference to `__stginit_ControlziMonadziWriter_'
collect2: ld returned 1 exit status
make[4]: *** [haddock.bin] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/buildd/haddock-0.6/haddock'
make[1]: *** [build] Error 1
make[1]: Leaving directory `/tmp/buildd/haddock-0.6'
make: *** [build-stamp] Error 2

I've attached a patch which makes the package build again.

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)

-- 
Daniel Schepler              "Please don't disillusion me.  I
[EMAIL PROTECTED]    haven't had breakfast yet."
                                 -- Orson Scott Card
diff -urN haddock-0.6.old/haddock/src/Makefile haddock-0.6/haddock/src/Makefile
--- haddock-0.6.old/haddock/src/Makefile	2003-11-10 14:35:18.000000000 +0000
+++ haddock-0.6/haddock/src/Makefile	2005-07-02 17:06:10.000000000 +0000
@@ -7,7 +7,7 @@
 
 # Don't use any hslibs packages in GHC >= 5.04
 ifeq "$(ghc_ge_504)" "YES"
-SRC_HC_OPTS += -package network -fglasgow-exts -cpp
+SRC_HC_OPTS += -package network -package mtl -fglasgow-exts -cpp
 else
 SRC_HC_OPTS += -package data -package text -package util -package net -fglasgow-exts -cpp
 endif

Reply via email to