Bug 10957 - Gtk# application not running with MacOSX 10.8.2
Summary: Gtk# application not running with MacOSX 10.8.2
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
: 10958 ()
Depends on:
Reported: 2013-03-07 03:23 UTC by Narcís Calvet
Modified: 2015-09-29 11:16 UTC (History)
6 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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Narcís Calvet 2013-03-07 03:23:49 UTC
Creating a new empty Gtk# 2.0 application either in latest MonoDevelop or Xamarin.Studio fails to run with MacOSX 10.8.2. It runs fine with 10.7.5. System.Windows.Forms & Microsoft.VisualBasic usage also fails, for more detailed info please read this thread: http://forums.xamarin.com/discussion/1888/interaction-inputbox-crashes-in-mac-osx

Running the generated .exe via command line through mono also fails. As Jonathan Pryor suggests in the thread aobve, this might be another bug so I'll file it in separately.
Comment 1 Mikayla Hutchinson [MSFT] 2013-03-07 20:55:22 UTC
*** Bug 10958 has been marked as a duplicate of this bug. ***
Comment 2 Mikayla Hutchinson [MSFT] 2013-03-07 20:56:11 UTC
I think the dllmaps should have absolute paths to the libraries so DYLD_FALLBACK_LIBRARY_PATH is not needed?
Comment 3 Narcís Calvet 2013-03-08 03:02:02 UTC
Sorry if I didn't explain the issues correctly. I submitted two of them upon Jonathan Pryor's request at http://forums.xamarin.com/discussion/comment/6749#Comment_6749. IMO one issue is about System.Windows.Forms & Microsoft.VisualBasic and the other one is about Gtk#. Both of them are about not working properly on Mac OSX 10.8.2 though.
Comment 4 Narcís Calvet 2013-03-08 03:03:03 UTC
About comment #2, would you like me to test something at my end? Thanks.
Comment 5 Mikayla Hutchinson [MSFT] 2013-03-08 16:21:33 UTC
I marked it duplicated because both bugs appeared to me to be about the same GTK# issue. If you'd like to open a bug specifically for Windows Forms, please go ahead.

@Duncan: did we lose the code for making dllmaps absolute in the bockbuild migrations?

@Narcís: it's easy to work around this, just 
export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib:$DYLD_FALLBACK_LIBRARY_PATH
You can do this in you terminal, and also in you app's launch script.
Comment 6 Alexis Christoforides 2015-09-29 11:16:53 UTC
Mono now searches the Mono installation's library path for DllImport/dllmap entries without absolute paths.


GTK# applications should now work without DYLD_FALLBACK_LIBRARY_PATH overrides in the latest packages.