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 306815 - does not compile with gtk-sharp 1.0.10
does not compile with gtk-sharp 1.0.10
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-07 20:30 UTC by Vincent Noel
Modified: 2008-02-26 20:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Noel 2005-06-07 20:30:38 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
Comment 1 Alex Graveley 2005-06-08 10:36:42 UTC
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?
Comment 2 Vincent Noel 2005-06-08 13:10:50 UTC
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)
Comment 3 Alex Graveley 2005-06-08 18:25:15 UTC
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! :-)
Comment 4 Vincent Noel 2005-06-08 18:29:48 UTC
... and it works !
Congrats and thanks a lot, you can go rest now :-)