After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603318 - Build fails with mono 1.9.1
Build fails with mono 1.9.1
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks: 602589
 
 
Reported: 2009-11-29 17:34 UTC by Bertrand Lorentz
Modified: 2009-12-19 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bertrand Lorentz 2009-11-29 17:34:47 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.
Comment 1 Aaron Bockover 2009-11-30 06:26:04 UTC
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 :)
Comment 2 Bertrand Lorentz 2009-11-30 06:42:14 UTC
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 ;)
Comment 3 Bertrand Lorentz 2009-12-19 15:50:31 UTC
This was fixed by Gabriel in this commit :
http://git.gnome.org/cgit/banshee/commit/?id=f4b528df9e8b0b33ea84013442afd277c4073058