[Mono-list] strange mono initialization problem
Paolo Molaro
lupus@ximian.com
Thu, 15 Aug 2002 17:08:38 +0200
On 08/14/02 Joseph Wenninger wrote:
> I tried to call mono_jit_init from a dlopened plugin. This only works for me,
> if link the application against libmono, libglib-2.0, libgmodule-2.0 and the
> plugin against all those liberaries.
>
> If I only link the plugin library against those libraries, the mono_jit_init
> call just hangs.
>
> Did anybody else try a similar thing ? Is it mandatory that the application is
> linked against those libs ?
>
> My problem is, I'd like to use the mono runtime from within an plugin, but the
> application must not depend on mono or the glib.
> Is that not possible?
> Do I have a linker problem ?
> Should it work in theory, but a bug causes those troubles ? (How could I best
> debug that)
The only limitation I know of is with the pthread library: to be able to
dlopen a shared object that uses pthread (and have it work), your main
application needs to be linked to libpthread as well. Is that already
the case?
Of course a stack trace is always useful to check where the real problem is.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better