GNOME Bugzilla – Bug 668307
Support for other compilers - specifically Ubuntu compile issues for .net 4.0 support (mono 4.0)
Last modified: 2012-05-23 14:40:43 UTC
The issue show's it's head when compiling Tomboy on Ubuntu 11.10 or greater. More can be found about the issue here [1] From IRC 22:04 < adborden2> max: even if you install dbus-sharp from ubuntu's repo you'll still run into this error within the tomboy codew 22:04 < adborden2> quick fix is to edit the tomboy shell script (should be in the repo root) 22:05 < adborden2> i don't have the source in front of me, but there should be a MONO_OPTIONS variable or something 22:05 < adborden2> to which you should add --runtime=v4.0 22:16 < adborden2> agreed that ubuntu is popular, but this only affects developers. we can change the build process in a way that we just search for teh different compilers and use the first one we find. 22:16 < adborden2> that way everyone is happy [1] http://orangesquash.org.uk/~laney/blog/posts/2011/10/mono-gotcha/
Hello everyone, I not a developed but this bug affects me. I had to manually install Tomboy 1.10 after version 1.8 stopped synchronising my notes. I changed the definition of the MONO_OPTIONS variable to this: MONO_OPTIONS="$TOMBOY_DEBUG $TOMBOY_TRACE $TOMBOY_PROFILE $MONO_EXTRA_ARGS --runtime=v4.0" But I still get the same exception when running tomboy. Any other information on how to run Tomboy 1.10 on Ubuntu would be pretty welcome. Thank you.
For me, I had to fix the issue at compile time. ./configure GMCS=/usr/bin/mono-csc Seems like something that can be fixed though I haven't found out how yet.
I would like to see us get this fixed for the next development or stable release. It's critical that we support Ubuntu users.
Created attachment 214477 [details] [review] Chow Loong Jin provide a patch that defaults to dmcs Chow Loong Jin "How about defaulting to dmcs and falling back to gmcs if dmcs doesn't exist? Applications compiled against the 4.0 profile (dmcs) can use libraries compiled against the 2.0 profile (gmcs), but not vice versa. The downstream packages are still going to be compiled using /usr/bin/mono-csc to ease transitions in the case of a change of the default C# compiler."
Review of attachment 214477 [details] [review]: Commit b928b493da170637c3441f9e9f4c1cbc481f106b
Pushed to master. I would like to see if we could get a couple positive reports back. So if someone would like to try compiling against the last MASTER on Linux and Ubuntu.
I can verify that this works in Ubuntu without a hitch.
Great! I'm going to close the bug. Someone feel free to re-open if they want.