Bug 3843 - gtk-sharp settings enable gettext (default) causes linked to Mono.Posix but only on Linux Not Windows
Summary: gtk-sharp settings enable gettext (default) causes linked to Mono.Posix but o...
Status: NEW
Alias: None
Product: Gtk#
Classification: Mono
Component: gtk-sharp ()
Version: 2.x
Hardware: PC Linux
: Low normal
Target Milestone: ---
Assignee: Cody Russell
Depends on:
Reported: 2012-03-10 20:01 UTC by Robert Wilkens
Modified: 2014-09-08 05:02 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 3843 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Robert Wilkens 2012-03-10 20:01:39 UTC
When I build gtk# app (simple test app) on Linux with the default configuration, the .exe generated will not run on Windows even with gtk-sharp installed.

I debugged this using Visual Studio 2010 and it told me it was trying to link to Mono.Posix, which was not on the target system, because it did not have mono specifically installed on it - just .net 4.0 and gtk#.

If I build in Monodevelop on Windows, it runs on any platform without requiring Mono.Posix.

If I disabled the opton on Linux Monodevelop called "Enable gettext support" under GTK# settings under project settings, the generated code will run on Linux or Windows without issue.

It's odd that i do not need to disable "Enable gettext support" in Windows MonoDevelop to accomplish the same thing.  Leaving it enabled in Windows doesn't result in any problems.

Linux Mono Version: (Ubuntu test version)
Windows Mono Version: (Windows 7)
Comment 1 Robert Wilkens 2012-03-10 20:10:08 UTC
Oops "Mono version" should read MonoDevelop version Sorry.
Comment 2 Mikayla Hutchinson [MSFT] 2012-04-27 12:28:25 UTC
This is because GTK# on Linux ships with Mono.Posix 2.0. When compiling with Mono and targeting 4.0 framework, Mono "upgrades" the reference to Mono.Posix 4.0, which is identical except for the version number (due to a historical bad decision).

We really should ship Mono.Posix 4.0 with GTK# on Windows to fix these issues.
Comment 3 Antonius Riha 2014-09-06 05:57:53 UTC
I've opened a pull request that fixes this issue: https://github.com/mono/gtk-sharp/pull/115.