[Mono-list] mcs.exe problem compiling gtk-sharp
Jaroslaw Kowalski
jaak@zd.com.pl
Mon, 13 Oct 2003 20:09:19 +0200
Answering to myself: I forgot to do a "make clean" inside "mono" before
rebuilding. Now it works fine.
Jarek
----- Original Message -----
From: "Jaroslaw Kowalski" <jaak@zd.com.pl>
To: <mono-list@ximian.com>
Sent: Monday, October 13, 2003 7:55 PM
Subject: [Mono-list] mcs.exe problem compiling gtk-sharp
>
> I've recently updated mcs from AnonCVS and I have the following problem
> compiling CVS gtk-sharp:
>
> "gtk-sharp/parser/gapi-fixup.cs" (as it's quite small, I've attached a
copy)
>
> --------------
> $ mcs gapi-fixup.cs
>
> ** (/opt/mono/bin/mcs.exe:28302): WARNING **: Missing method
> DiscardBufferedData in assembly /opt/mono/bin/mcs.exe typeref index 69
> System.NullReferenceException: A null value was found where an object
> instance was required
> in (unmanaged) Mono.CSharp.SeekableStreamReader:set_Position (int)
> in <0x0016e> Mono.CSharp.Tokenizer:is_punct (char,bool&)
> in <0x00349> Mono.CSharp.Tokenizer:xtoken ()
> in <0x00017> Mono.CSharp.Tokenizer:token ()
> in <0x002dc> Mono.CSharp.CSharpParser:yyparse
(Mono.CSharp.yyParser.yyInput)
> in <0x00079> Mono.CSharp.CSharpParser:parse ()
>
> gapi-fixup.cs(72) error CS8025: Parsing error
> Compilation failed: 1 error(s), 0 warnings
> --------------
>
> The problematic lines are:
>
> XmlElement node = ((IHasXmlNode)api_iter.Current).GetNode () as
XmlElement;
> node.SetAttribute (attr_name, attr_iter.Current.Value);
>
> after I comment them out - it compiles fine but that's obviously not the
> solution.
>
> Is it my fault or a bug?
>
> Jarek
>