Subject: pkg/23441: lang/ghc doesn't compile on -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tripledes@eslack.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Sergio Jimenez
>Release:        NetBSD 1.6ZE
>Organization:
none
>Environment:
	
	
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
>Description:
	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
	-allowed\n", 
	+                 fprintf(stderr,"setupRtsFlags: no more than %u processors allowed\n", 
	                          MAX_PROC);
	                  *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

>How-To-Repeat:
	cd ${PKGSRCDIR}/lang/ghc && make
>Fix:
	not known
>Release-Note:
>Audit-Trail:
>Unformatted: