From nobody@FreeBSD.org  Tue Oct 23 16:19:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2E3EA16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2007 16:19:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 349B513C4A7
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2007 16:19:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9NGJQfp077837
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Oct 2007 16:19:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9NGJQWI077836;
	Tue, 23 Oct 2007 16:19:26 GMT
	(envelope-from nobody)
Message-Id: <200710231619.l9NGJQWI077836@www.freebsd.org>
Date: Tue, 23 Oct 2007 16:19:26 GMT
From: Ralph Zitz <ralph@imada.sdu.dk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mono doesn't compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: bsd-sharp-list@forge.novell.com

>Number:         117429
>Category:       ports
>Synopsis:       lang/Mono doesn't compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tmclaugh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 16:20:04 UTC 2007
>Closed-Date:    Thu Oct 25 18:36:15 UTC 2007
>Last-Modified:  Thu Oct 25 18:36:15 UTC 2007
>Originator:     Ralph Zitz
>Release:        FreeBSD-current
>Organization:
SDU
>Environment:
FreeBSD mobile.zitz.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Oct 22 17:50:45 CEST 2007     root@mobile.zitz.dk:/usr/obj/usr/src/sys/mobile  i386
>Description:
Compiling Mono 1.2.5.1 fails with the following error:

cc -O2 -fno-strict-aliasing -pipe -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -o pedump pedump.o -pthread -pthread  ./.libs/libmonoruntime.a ../io-layer/.libs/libwapi.a ../utils/.libs/libmonoutils.a ../../libgc/.libs/libmonogc.a -L/usr/local/lib /usr/local/lib/libgthread-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -pthread -lm   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
./.libs/libmonoruntime.a(boehm-gc.o)(.text+0x293): In function `mono_gc_is_gc_thread':
/usr/ports/lang/mono/work/mono-1.2.5.1/mono/metadata/boehm-gc.c:97: undefined reference to `GC_thread_is_registered'
./.libs/libmonoruntime.a(boehm-gc.o)(.text+0x2c7): In function `mono_gc_register_thread':
/usr/ports/lang/mono/work/mono-1.2.5.1/mono/metadata/boehm-gc.c:111: undefined reference to `GC_thread_register_foreign'
gmake[3]: *** [pedump] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/mono/work/mono-1.2.5.1/mono/metadata'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/mono/work/mono-1.2.5.1/mono'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/mono/work/mono-1.2.5.1'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/lang/mono.
>How-To-Repeat:
Compile mono
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tmclaugh 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 23 19:35:01 UTC 2007 
Responsible-Changed-Why:  
tmclaugh@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117429 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Oct 23 19:35:05 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117429 

From: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
To: bug-followup@FreeBSD.org, ralph@imada.sdu.dk
Cc:  
Subject: Re: ports/117429: lang/Mono doesn't compile
Date: Wed, 24 Oct 2007 23:41:44 -0400

 --=-NaY9JCTYcaiZZRQKdF7D
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Can you try this patch?  I have no -CURRENT box here at the moment to
 test it but this should do it.  In the meantime, I've asked the
 maintainer to better fix configure.in upstream.
 
 --=-NaY9JCTYcaiZZRQKdF7D
 Content-Disposition: attachment; filename=mono-freebsd8.diff
 Content-Type: text/x-patch; name=mono-freebsd8.diff; charset=utf-8
 Content-Transfer-Encoding: 7bit
 
 ? files/patch-libgc_configure
 Index: Makefile
 ===================================================================
 RCS file: /ncvs/ports/lang/mono/Makefile,v
 retrieving revision 1.68
 diff -u -r1.68 Makefile
 --- Makefile	23 Oct 2007 03:19:04 -0000	1.68
 +++ Makefile	25 Oct 2007 03:34:35 -0000
 @@ -55,7 +55,6 @@
  MAN5=		mono-config.5
  
  .include <bsd.port.pre.mk>
 -
  .if ${ARCH} == "amd64"
  USE_FAM=	yes
  .endif
 @@ -90,7 +89,10 @@
  
  .if ${OSVERSION} >= 700000
  	@${REINPLACE_CMD} -e 's|freebsd6|freebsd7|g' \
 -	${WRKSRC}/configure ${WRKSRC}/libgc/configure
 +		${WRKSRC}/configure ${WRKSRC}/libgc/configure
 +.elif ${OSVERSION} >= 800000
 +	@${REINPLACE_CMD} -e 's|freebsd6|freebsd8|g' \
 +		${WRKSRC}/configure ${WRKSRC}/libgc/configure
  .endif
  
  tests: build
 
 --=-NaY9JCTYcaiZZRQKdF7D--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: tmclaugh 
State-Changed-When: Thu Oct 25 18:35:17 UTC 2007 
State-Changed-Why:  
Received a similar patch and committed that.  Also notified maintainer 
about a better fix that could be submitted upstream. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117429 
>Unformatted:
