From nobody@FreeBSD.org  Tue Feb  6 16:20:31 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A610F16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Feb 2007 16:20:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 7D7D513C481
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Feb 2007 16:20:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l16GKTW0066686
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Feb 2007 16:20:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l16GKT6n066685;
	Tue, 6 Feb 2007 16:20:29 GMT
	(envelope-from nobody)
Message-Id: <200702061620.l16GKT6n066685@www.freebsd.org>
Date: Tue, 6 Feb 2007 16:20:29 GMT
From: Mark Evenson<mark.evenson@gmx.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/mono 1.2.2.1 build fails with "Can't find custom attr constructor image"
X-Send-Pr-Version: www-3.0

>Number:         108839
>Category:       ports
>Synopsis:       lang/mono 1.2.2.1 build fails with "Can't find custom attr constructor image"
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    tmclaugh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 06 16:30:10 GMT 2007
>Closed-Date:    Sun Feb 25 02:39:30 GMT 2007
>Last-Modified:  Sun Feb 25 02:39:30 GMT 2007
>Originator:     Mark Evenson
>Release:        RELENG_6_2
>Organization:
>Environment:
FreeBSD elvis 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Mon Jan 15 12:22:07 CET 2007     evenson@elvis.intern.etel.at:/usr/obj/usr/src/sys/ELVIS  i386
>Description:
Build of lang/mono 1.2.2.1 is failing with the following error 

gmake[8]: Entering directory `/usr/ports/lang/mono/work/mono-1.2.2.1/mcs/class/Mono.Security'
MONO_PATH="../../class/lib/net_2_0_bootstrap:$MONO_PATH" /usr/ports/lang/mono/work/mono-1.2.2.1/runtime/mono-wrapper  ../../class/lib/net_2_0_bootstrap/mcs.exe /codepage:65001   -d:NET_1_1 -d:BOOTSTRAP_NET_2_0 -debug /noconfig -r:System.dll -unsafe -target:library -out:Mono.Security.dll  @Mono.Security.dll.sources

** (../../class/lib/net_2_0_bootstrap/mcs.exe:75234): WARNING **: Missing method .ctor in assembly /usr/local/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll, type System.Runtime.CompilerServices.RuntimeCompatibilityAttribute

** ERROR **: Can't find custom attr constructor image: /usr/local/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll mtoken: 0x0a00003f
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.AppDomain.LoadAssembly (string,System.Security.Policy.Evidence,bool) <0x00004>
  at (wrapper managed-to-native) System.AppDomain.LoadAssembly (string,System.Security.Policy.Evidence,bool) <0xffffffff>
  at System.AppDomain.Load (string) <0x00018>
  at (wrapper remoting-invoke-with-check) System.AppDomain.Load (string) <0xffffffff>
  at System.Reflection.Assembly.Load (string) <0x0001b>
  at System.Text.Encoding.InvokeI18N (string,object[]) <0x0007c>
  at System.Text.Encoding.GetEncoding (string) <0x0015d>
  at System.Text.Encoding.get_Default () <0x0006b>
  at System.Console..cctor () <0x000e0>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at Mono.CSharp.Report..cctor () <0xffffffff>
  at Mono.CSharp.Report..cctor () <0x0000a>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
Abort trap (core dumped)
gmake[8]: *** [../../class/lib/net_2_0_bootstrap/Mono.Security.dll] Error 134

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tmclaugh 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 6 16:30:55 UTC 2007 
Responsible-Changed-Why:  
tmclaugh@ wants to bsd-shart-list@forge.novall.com maintained ports PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108839 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Feb 6 16:31:16 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

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

From: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/108839: lang/mono 1.2.2.1 build fails with "Can't find
	custom attr constructor image"
Date: Wed, 07 Feb 2007 21:46:36 -0500

 MONO_PATH="../../class/lib/net_2_0_bootstrap:$MONO_PATH" 
 /usr/ports/lang/mono/work/mono-1.2.2.1/runtime/mono-wrapper
 ../../class/lib/net_2_0_bootstrap/mcs.exe /codepage:65001 -d:NET_1_1
 -d:BOOTSTRAP_NET_2_0 -debug /noconfig -r:System.dll -unsafe
 -target:library -out:Mono.Security.dll  @Mono.Security.dll.sources
 
 ** (../../class/lib/net_2_0_bootstrap/mcs.exe:75234): WARNING **:
 Missing method .ctor in assembly
 /usr/local/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll, type
 System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
 
 ** ERROR **: Can't find custom attr constructor
 image: /usr/local/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll
 mtoken: 0x0a00003f
 
 
 Hi, you're not setting MONO_PATH in your environment are you?  I'm
 confused as to why it's complaining about the currently installed
 I18N.dll.  It should not be using that at all.
 
 tom
 

From: Mark Evenson <mark.evenson@gmx.at>
To: Phillip Neumann <pneumann@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/108839: lang/mono 1.2.2.1 build fails with "Can't find
 custom attr constructor image"
Date: Thu, 08 Feb 2007 13:29:49 +0100

 Phillip Neumann wrote:
 > Hello Mark.
 > 
 > 
 > Instead of upgrade, can you please try to remove the old mono, and
 > install the new one?.
 
 Yes, this procedure works:  after deinstalling the mono port I can 
 successfully build the new port.
 
 > 
 > If it works, we will need to make the new mono versions not use the old
 > ones for compile itself.
 > 
 > 
 > thanks!
 > 
 
 
 -- 
 <Mark.Evenson@gmx.at>
 
 "[T]his is not a disentanglement from, but a progressive knotting into."
 

From: Mark Evenson <mark.evenson@etel.at>
To: bug-followup@FreeBSD.org, mark.evenson@gmx.at
Cc:  
Subject: Re: ports/108839: lang/mono 1.2.2.1 build fails with "Can't find
	custom attr constructor image"
Date: Thu, 08 Feb 2007 14:38:04 +0100

 Not sure if the question about MONO_PATH being set was directed to me,
 but I am not definately not setting it in my environment external to the
 ports infrastructure, as I am merely a consumer of the
 'deskutils/tomboy' which relies on mono for some reason.
State-Changed-From-To: feedback->suspended 
State-Changed-By: tmclaugh 
State-Changed-When: Fri Feb 9 03:52:57 UTC 2007 
State-Changed-Why:  
I'm going to suspend this PR for now.  For a time mono's build process 
would rely on an already installed Mono installation if one was found but I 
recall that having changed at one point.  After comparing builds on two 
different machines it appears that behaior is still present or back.  The 
initial submitter's initial problem installing has been worked around but 
there is still a problem with the Mono build which needs to be solved at 
some point. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108839 
State-Changed-From-To: suspended->open 
State-Changed-By: tmclaugh 
State-Changed-When: Fri Feb 9 04:02:49 UTC 2007 
State-Changed-Why:  
Acyually, let's leave this open for me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108839 
State-Changed-From-To: open->closed 
State-Changed-By: tmclaugh 
State-Changed-When: Sun Feb 25 02:37:26 UTC 2007 
State-Changed-Why:  
solved on update to 1.2.2.1_3 by setting LC_ALL=C in MAKE_ENV. 

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