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

Peter Vandenabeele peter at vandenabeele.com
Thu Nov 23 08:33:44 EST 2006


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


More information about the Mono-list mailing list