[Mono-dev] EntryPointNotFoundException with __Internal method

Robert Jordan robertj at gmx.net
Tue Apr 30 00:59:36 UTC 2013


On 29.04.2013 21:20, Marcelo Zabani wrote:
> When embedding Mono within Nginx, I received the following exception:
>
> *Unhandled Exception: System.EntryPointNotFoundException:
> log_error_core_wrapper*
> *  at (wrapper managed-to-native) Nam.NginxMethods:ngx_log_error
> (uint,intptr,int,string)*
> *  at Nam.NginxMethods.LogInfo (IntPtr log, System.String msg) [0x00000] in
> <filename unknown>:0 *
>
> The DllImported method is this:
>
> *[DllImport ("__Internal", EntryPoint="log_error_core_wrapper")]*
> *public static extern void ngx_log_error(uint level, IntPtr log, int err,
> string msg);*
>

You must link the main executable (nginx) with the the

	-Wl,--export-dynamic

option, otherwise the dynamic linker won't expose its symbols to dlopen.

Robert



More information about the Mono-devel-list mailing list