GNOME Bugzilla – Bug 306815
does not compile with gtk-sharp 1.0.10
Last modified: 2008-02-26 20:49:31 UTC
Tomboy cvs does not compile with gtk-sharp 1.0.10 (from http://go-mono.com/sources/), build ends with : Tomboy.cs(86) warning CS0618: 'Mono.Posix.Syscall' is obsolete: 'Syscall is unmaintained. Please use Mono.Unix.Syscall.' Tomboy.cs(87) warning CS0618: 'Mono.Posix.Syscall' is obsolete: 'Syscall is unmaintained. Please use Mono.Unix.Syscall.' panelapplet/generated/PanelApplet.cs(18) warning CS0612: 'Gtk.EventBox.EventBox(GLib.GType)' is obsolete PluginManager.cs(181) warning CS0618: 'Mono.Posix.Syscall' is obsolete: 'Syscall is unmaintained. Please use Mono.Unix.Syscall.' PluginManager.cs(192) warning CS0618: 'Mono.Posix.Syscall' is obsolete: 'Syscall is unmaintained. Please use Mono.Unix.Syscall.' PluginManager.cs(203) warning CS0618: 'Mono.Posix.Syscall' is obsolete: 'Syscall is unmaintained. Please use Mono.Unix.Syscall.' Watchers.cs(519) warning CS1717: Assignment made to same variable; did you mean to assign something else? Watchers.cs(560) warning CS0219: The variable 'tag' is assigned but its value is never used panelapplet/AppletFactory.cs(22) error CS0122: 'GLib.Object.LookupGType' is inaccessible due to its protection level /usr/lib/mono/gtk-sharp/glib-sharp.dll: 'GLib.Object.LookupGType' (name of symbol related to previous error panelapplet/AppletFactory.cs(22) error CS0122: 'GLib.Object.LookupGType' is inaccessible due to its protection level /usr/lib/mono/gtk-sharp/glib-sharp.dll: 'GLib.Object.LookupGType' (name of symbol related to previous error Compilation failed: 2 error(s), 8 warnings make[3]: *** [Tomboy.exe] Error 1
Okay, I took a stab in the dark at commiting a fix for this to Tomboy's CVS. Please try that and let me know if it works for you. My only guess is that this is some mono 1.0 and 1.1 incompatibility... though I've tested with mono 1.1.7 locally, and things compile fine for me. In both Gtk# 1.0 and 1.1, GLib.Object.LookupGType is protected, so we should have never been allowed to access it. Maybe mono 1.0 doesn't enforce protected access on static members?
Hey Alex, it did a difference, obviously, as the error is now different : ./ExportToHTML.cs(86) error CS0122: 'System.Uri.EscapeString' is inaccessible due to its protection level /usr/lib/mono/1.0/System.dll: 'System.Uri.EscapeString' (name of symbol related to previous error Compilation failed: 1 error(s), 0 warnings make[3]: *** [ExportToHTML.dll] Error 1 make[3]: Leaving directory `/home/noel/Documents/install/tomboy/Tomboy/Plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/noel/Documents/install/tomboy/Tomboy' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/noel/Documents/install/tomboy' make: *** [all] Error 2 I hope this helps (my old tomboy still runs fine fortunately)
Okay, this should also be fixed in CVS. It seems that mono 1.1.7.2 does in fact check for these illegal accesses, where 1.1.7 and 1.0.x didn't. Please try to compile again, and see if there are any more of these calls... there might be. If you don't get a chance, I'll upgrade to 1.1.7.2 soon and see for myself. If you can compile successfully now, please close this bug. Thanks for being diligent! :-)
... and it works ! Congrats and thanks a lot, you can go rest now :-)