Bug 3955 - mkbundle creates a package which wants the nonexistent gdiplus.dll
Summary: mkbundle creates a package which wants the nonexistent gdiplus.dll
Alias: None
Product: Runtime
Classification: Mono
Component: Tools ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-03-18 02:53 UTC by alister.hood
Modified: 2017-07-15 18:29 UTC (History)
5 users (show)

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

error produced when running the executable created by mkbundle on a machine without Mono (5.42 KB, text/plain)
2012-03-18 02:53 UTC, alister.hood

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 alister.hood 2012-03-18 02:53:24 UTC
Created attachment 1530 [details]
error produced when running the executable created by mkbundle on a machine without Mono

(I guess this could be related to #3263)

I want to create a static Linux build of Lazyrenamer http://code.google.com/p/lazyrenamer/

I run this command:
mkbundle -o lazyrenamer_bundle_deps_static_z LazyRenamer.exe --deps --static -z

When I try to run the resulting executable on a machine without Mono installed, I get an error message about missing libc (note it is just "libc", with no .dll suffix).  This appears to be because the test system doesn't have any dev packages installed - it runs without that error once I create libc.so as a link to the actual libc-2.15.so that is on the system.

Now I get the attached error which seems to indicate that it can't find "gdiplus.dll", and I can't figure out a workaround.  Am I missing something?

Comment 1 Hin-Tak Leung 2016-01-12 17:38:04 UTC
you need to put a config file with --config also to map libc.
Comment 2 Hin-Tak Leung 2017-07-15 18:29:52 UTC
I don't think the question was fully answered. It is not clear what the original reporter's precise question was.

- if it is missing routines in libc, and libgdiplus vs gdiplus.dll, it is as I said, mkbundle --config is the anwser.

- OTOH, System.Windows.Forms , do need libgdiplus or gdiplus.dll . That's requirement for GUI programs from the .net world . mkbundle cannot change that.