[Mono-list] error building mono from HEAD on a Debian sid system

Alan McGovern alan.mcgovern at gmail.com
Thu Nov 23 10:03:22 EST 2006


Partial is a keyword introduced in .NET 2.0 so you could span classes over
multiple .cs files (you declare each .cs file as a "partial class"). So it's
a bad idea for it to be used as a variable name. File a bug report i
suppose.

Alan.

On 11/23/06, Peter Vandenabeele <peter at vandenabeele.com> wrote:
>
> On 11/21/06, Peter Vandenabeele <peter at vandenabeele.com> wrote:
> ...
> > But make after succesfully compiling large parts, gives this error:
> >
> > make[8]: Entering directory
> > `/home/user/ODF/Add-in/mono-HEAD-001/mcs/class/Managed.Windows.Forms'
> > MONO_PATH="../../class/lib/default:$MONO_PATH"
> > /home/user/ODF/Add-in/mono-HEAD-001/mono/runtime/mono-wrapper
> > ../../class/lib/default/mcs.exe /codepage:65001   -d:NET_1_1
> > -d:ONLY_1_1 -debug /noconfig /unsafe /r:mscorlib.dll /r:System.dll
> > /r:System.Xml.dll /r:System.Drawing.dll /r:Accessibility.dll
> > /r:System.Data.dll /r:Mono.Posix.dll
> > @System.Windows.Forms.dll.resources /nowarn:649 /nowarn:169 /nowarn:67
> > /nowarn:108 /nowarn:114 -debug -target:library
> > -out:../../class/lib/default/System.Windows.Forms.dll
> > @System.Windows.Forms.dll.sources
> > System.Windows.Forms/ComboBox.cs(886,19): error CS0267: The `partial'
> > modifier can be used only immediately before keyword `class',
> > `struct', or `interface'
>
> Actually, I now have the impression (?) that 'partial' is a reserved word
> in
> the version of the compiler I am using here (I assume that would be mcs).
> The word 'partial' is used as a regular (local) variable in a few
> occasions:
>
> user at debian-UNSTABLE:~/ODF/Add-in/mono-HEAD-001$ grep partial
> ./mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs.ORIG
>
>                                                                 bool    partial;
>                                                                 partial =
> false;
>
> partial = true;
>
> partial = true;
>
> partial = true;
>
> // no partially selected tags here, simple checks...
>                                                                 if
> (!partial) {
>
> user at debian-UNSTABLE:~/ODF/Add-in/mono-HEAD-001$ grep partial
> ./mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs.ORIG
>                                                         int partial =
> (lb_height - 2 * border) % ItemHeight;
>                                                         height -= partial;
>
> user at debian-UNSTABLE:~/ODF/Add-in/mono-HEAD-001$ grep partial
> ./mcs/tools/mono-shlib-cop/mono-shlib-cop.cs.ORIG
>                 public void CheckWithPartialName (string partial,
> AssemblyCheckInfo report)
>                         string p = partial;
>                                         "Could not load assembly
> reference `" + partial + "'."));
>                 [Option (int.MaxValue, "Assemblies to load by partial
> names (e.g. from the GAC)", 'r')]
>
>
> I replaced the occurances of 'partial' by 'partial_' and that got me
> through the
> complete make step for mono HEAD.
>
> Could anyone please confirm if I made the correct updates to source (or am
> I
> using an incorrect tool chain or making some other error).
>
> Thanks upfront for any help here,
>
> Peter
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061123/864b43df/attachment.html 


More information about the Mono-list mailing list