[Mono-list] Re: building mcs problem

Serge Aleynikov serge@hq.idt.net
Wed, 20 Aug 2003 19:24:14 -0400

Miguel de Icaza wrote:
 > Hello,
 >>I ran into the following mcs 0.26 building problem on Red Hat 7.3.  Can
 >>anyone help me with this problem?
 > Mhm, this can be fixed easily by installing first the mono-0.26 package,
 > then installing mcs-0.26

This is exactly what I did.  In fact the RPM installers are only 
available for RedHat 8,9.  I am using 7.3.  I downloaded the mono & mcs 
sources, and successfully compiled, and installed the mono-0.26 project 
by doing:

make install

However, the mcs compilation failed with the following error:

make[1]: Entering directory `/usr/local/src/mono/mcs-0.26/build'
make[1]: Leaving directory `/usr/local/src/mono/mcs-0.26/build'
make[1]: Entering directory `/usr/local/src/mono/mcs-0.26/jay'
make[1]: Leaving directory `/usr/local/src/mono/mcs-0.26/jay'
make[1]: Entering directory `/usr/local/src/mono/mcs-0.26/mcs'
mcs   /lib:/usr/local/lib -g /target:exe /out:mcs.exe AssemblyInfo.cs 
anonymous.cs assign.cs attribute.cs driver.cs cs-tokenizer.cs cfold.cs 
class.cs codegen.cs const.cs constant.cs convert.cs decl.cs delegate.cs 
enum.cs ecore.cs expression.cs flowanalysis.cs genericparser.cs 
interface.cs iterators.cs literal.cs location.cs modifiers.cs 
namespace.cs parameter.cs pending.cs report.cs rootcontext.cs 
statement.cs support.cs typemanager.cs symbolwriter.cs tree.cs cs-parser.cs
support.cs(301) error CS0117: `System.IO.StreamReader' does not contain 
a definition for `DiscardBufferedData'
Compilation failed: 1 error(s), 0 warnings
make[1]: *** [mcs.exe] Error 1
make[1]: Leaving directory `/usr/local/src/mono/mcs-0.26/mcs'
make: *** [all-recursive] Error 1


I think this must be mcs specific, as the reported *.cs file comes with it:

serge /usr/local/src/mono/mcs-0.26>locate *.cs | grep StreamReader