gentoo / dotnet

[MIRROR] Newer mono, .NET languages, and libraries
https://gitweb.gentoo.org/repo/proj/dotnet.git
78 stars 56 forks source link

dev-dotnet/gnome-sharp-2.24.4 build failure #399

Open programmador opened 6 years ago

programmador commented 6 years ago

Currently I have 2.24.2-r2 successfully installed long ago. Updating to 2.24.4 fails with errors CS1502 and CS1615:

/usr/bin/mcs -debug -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24 -nowarn:0169,0612,0618 -unsafe -out:gnome-sharp.dll -target:library -r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/pango-sharp.dll -r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/glib-sharp.dll  /r:../art/art-sharp.dll  /r:../gnomevfs/gnome-vfs-sharp.dll -r:Mono.Cairo generated/*.cs  ./BonoboUIVerb.cs  ./IconTheme.cs  ./Modules.cs AssemblyInfo.cs
AssemblyInfo.cs(6,11): warning CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute
generated/App.cs(124,17): warning CS0108: `Gnome.App.Name' hides inherited member `Gtk.Widget.Name'. Use the new keyword if hiding was intended
/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/gtk-sharp.dll (Location of the symbol related to previous warning)
generated/ThemeFile.cs(56,26): warning CS0809: Obsolete member `Gnome.ThemeFile.ToString()' overrides non-obsolete member `object.ToString()'
/usr/lib64/mono/4.5/mscorlib.dll (Location of the symbol related to previous warning)
generated/CanvasPathDef.custom(24,67): error CS1502: The best overloaded method match for `Gnome.CanvasPathDef.gnome_canvas_path_def_new_from_bpath(System.IntPtr)' has some invalid arguments
generated/CanvasPathDef.cs(263,24): (Location of the symbol related to previous error)
generated/CanvasPathDef.custom(24,109): error CS1615: Argument `#1' does not require `ref' modifier. Consider removing `ref' modifier
Compilation failed: 2 error(s), 3 warnings
make[3]: *** [Makefile:843: gnome-sharp.dll] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-dotnet/gnome-sharp-2.24.4/work/gnome-sharp-2.24.4/gnome'
make[2]: *** [Makefile:537: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-dotnet/gnome-sharp-2.24.4/work/gnome-sharp-2.24.4/gnome'
make[1]: *** [Makefile:450: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-dotnet/gnome-sharp-2.24.4/work/gnome-sharp-2.24.4'
make: *** [Makefile:378: all] Error 2
cb88 commented 6 years ago

The version of gtk-sharp you have installed is too old. Keyword gtk-sharp 2.12.45 I just emerged them both just fine.

See here: https://bugzilla.xamarin.com/show_bug.cgi?id=52516

Fix that makes gnome-sharp depend on newer gtk-sharp: https://github.com/mono/gnome-sharp/commit/d797ce61a18f8238acd2f9a7bf97b157ae70b443