Subject: pkg/23441: lang/ghc doesn't compile on -current
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/14/2003 19:35:02
>Number:         23441
>Category:       pkg
>Synopsis:       lang/ghc doesn't compile on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 14 19:34:00 UTC 2003
>Originator:     Sergio Jimenez
>Release:        NetBSD 1.6ZE
System: NetBSD vadir 1.6ZE NetBSD 1.6ZE (VADIR) #0: Fri Nov 7 16:38:07 GMT 2003 sergio@vadir:/usr/obj/sys/arch/i386/compile/VADIR i386
Architecture: i386
Machine: i386
	I've tried to compile lang/ghc and doesn't work, I've made a patch to fix a little problem:
	--- Cut here -----

	--- ghc/rts/RtsFlags.c.orig     2003-11-14 18:41:24.000000000 +0000
	+++ ghc/rts/RtsFlags.c  2003-11-14 18:42:13.000000000 +0000
	@@ -1383,8 +1383,7 @@
	              } else if (RtsFlags.GranFlags.proc > MAX_PROC ||
        	                 RtsFlags.GranFlags.proc < 1)
	-                 fprintf(stderr,"setupRtsFlags: no more than %u processors
	+                 fprintf(stderr,"setupRtsFlags: no more than %u processors allowed\n", 
	                  *error = rtsTrue;
	--- Cut here -----
	But still isn't working, it fails with the following output:

	/usr/pkgsrc/lang/ghc/work/ghc-5.04.3/libraries/base/libHSbase.a(Concurrent.o): In function `__stginit_ControlziConcurrent':
	Concurrent.o(.text+0x2): undefined reference to `_module_registered'
	Concurrent.o(.text+0xf): undefined reference to `_module_registered'
	/usr/pkgsrc/lang/ghc/work/ghc-5.04.3/libraries/base/libHSbase.a(Chan.o): In function `__stginit_ControlziConcurrentziChan':
	Chan.o(.text+0x2): undefined reference to `_module_registered'
	Chan.o(.text+0xb): undefined reference to `_module_registered'
	/usr/pkgsrc/lang/ghc/work/ghc-5.04.3/libraries/base/libHSbase.a(MVar.o): In function `__stginit_ControlziConcurrentziMVar':
	MVar.o(.text+0x2): undefined reference to `_module_registered'
	/usr/pkgsrc/lang/ghc/work/ghc-5.04.3/libraries/base/libHSbase.a(MVar.o)(.text+0xb): more undefined references to `_module_registered' follow
	gmake[1]: *** [ghc-5.04.3] Error 1
	gmake: *** [all] Error 1
	gmake: Leaving directory `/usr/pkgsrc/lang/ghc/work/ghc-5.04.3/ghc'
	*** Error code 2

	cd ${PKGSRCDIR}/lang/ghc && make
	not known