[Mono-bugs] [Bug 74975][Nor] New - Bad CS0647 when
__SECURITY_BOOTSTRAP_DB env variable is present
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 17 11:23:09 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74975
--- shadow/74975 2005-05-17 11:23:09.000000000 -0400
+++ shadow/74975.tmp.17333 2005-05-17 11:23:09.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 74975
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: sebastien at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bad CS0647 when __SECURITY_BOOTSTRAP_DB env variable is present
+
+Description of Problem:
+
+MCS reports an error CS0647 even if the __SECURITY_BOOTSTRAP_DB variable is
+present when compiling a non-mscorlib.dll assembly.
+
+
+Steps to reproduce the problem:
+1. Add a DnsPermission to a method in System.Net/Dns.cs
+
+2. Edit System/Makefile to export __SECURITY_BOOTSTRAP_DB
+
+export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/System
+
+3. Compile System.dll
+
+% cd /mcs/class/System
+% make
+
+
+Actual Results:
+
+System.Net/Dns.cs(127) error CS0647: Error emitting 'DnsPermission'
+attribute because 'security custom attributes can not be referenced from
+defining assembly'
+
+
+Expected Results:
+None
+
+
+How often does this happen?
+Always (except for mscorlib.dll)
+
+
+Additional Information:
+The error is normal _only_ when the variable __SECURITY_BOOTSTRAP_DB
+doesn't exists (and point to a directory). However _most_ of the class
+library requires this as they define their own permission in the same
+assembly that use them.
More information about the mono-bugs
mailing list