GNOME Bugzilla – Bug 603318
Build fails with mono 1.9.1
Last modified: 2009-12-19 15:50:31 UTC
Building with mono 1.9.1 fails with the following errors (I've compiled the full error list by commenting the offending code, to get the full picture): Making all in Hyena.Gui MCS ../../../bin/Hyena.Gui.dll ./Hyena.Data.Gui/Accessibility/ListViewAccessible.cs(149,53): error CS0119: Expression denotes a `property access', where a `method group' was expected Compilation failed: 1 error(s), 0 warnings Making all in Banshee.InternetArchive MCS ../../../bin/Banshee.InternetArchive.dll ./Banshee.InternetArchive/DetailsSource.cs(171,38): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Sum<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,long>)' and `System.Linq.Enumerable.Sum<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,decimal?>)' Making all in Banshee.InternetArchive MCS ../../../bin/Banshee.InternetArchive.dll ./Banshee.InternetArchive/DetailsView.cs(452,93): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Max<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,long>)' and `System.Linq.Enumerable.Max<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,int>)' ./Banshee.InternetArchive/DetailsView.cs(453,58): error CS0121: The call is ambiguous between the following methods or properties: `System.Linq.Enumerable.Max<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,double>)' and `System.Linq.Enumerable.Max<Banshee.Collection.TrackInfo>(System.Collections.Generic.IEnumerable<Banshee.Collection.TrackInfo>, System.Func<Banshee.Collection.TrackInfo,long>)' Build works with mono 2.0.1.
Why are you building against Mono 1.9.1? - it was released in April 2008. We've got a lot of code at this point that takes advantage of .NET 3.5 features, which are not present in that build of Mono. This is not a bug in my opinion, though I am curious as to why you are interested in such an old build of Mono :)
I'm having some fun with jhbuild, setting up an environment to check banshee's minimum dependencies. See bug 603315 for something else I've found. Apparently openSUSE 11.0 has mono 1.9.1 So should bump the required mono version to 2.0.1 ? I'd be happy to take the easy way out ;)
This was fixed by Gabriel in this commit : http://git.gnome.org/cgit/banshee/commit/?id=f4b528df9e8b0b33ea84013442afd277c4073058