Bug 31187 - mono try to load a wrong unversioned gdiplus library
Summary: mono try to load a wrong unversioned gdiplus library
Alias: None
Product: Runtime
Classification: Mono
Component: Tools ()
Version: 4.0.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-06-17 06:37 UTC by Levente Farkas
Modified: 2017-04-30 16:50 UTC (History)
3 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 Levente Farkas 2015-06-17 06:37:56 UTC
when run mono it's start to dynamically load libgdiplus. but in stread of use the standard linux library loading way it's try to directly load the library, and of course it's failed with this error message:

Exception rethrown at [0]: 
 ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---

the problem here is to try to load libgdiplus.so in stead of libgdiplus.so.0. the versioned .so files are for dynamic loading while the unversiond for development only (see more description of the problem here:
of course if the libgdiplus-devel package not installed then the symlink to the version package missing and the execution failed.

imho it's a bug in mono library loading and libgdiplus is packaged right.

Comment 1 Alexander Köplinger [MSFT] 2017-04-30 16:50:41 UTC
It seems this was fixed some time ago as all the Xamarin-packaged libgdiplus versions include libgdiplus.so now, closing.