Welcome! Log In Create A New Profile

Advanced

Re: Dynamic module not binary compatible

Maxim Dounin
June 23, 2016 08:22AM
Hello!

On Thu, Jun 23, 2016 at 09:58:04AM +0200, Massimiliano Bellomi wrote:

> Hi all,
>
> is there a way to avoid the module signature check
>
> if (ngx_strcmp(module->signature, NGX_MODULE_SIGNATURE) != 0) {
> ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
> "module \"%V\" is not binary compatible",
> file);
> return NGX_ERROR;
> }
>
> on nginx startup ?
>
> I would like to build a dynamic module and make it compatible with a
> version of nginx regardless of options used in ./configure

Depending on configure options layout of various nginx structures
differs, and an attempt to load a module which was compiled with
different configure options will likely result in a segmentation
fault sooner or later. The binary complatibility check is to
prevent such segmentation faults.

We are currently working on reduing number of options that cause
binary incompatibilities. The goal is to reduce number of such
options to the bare minimum. It yet to happen though. For now,
generic approach is: compile a module for a particular nginx main
binary, and use the same configure options as was used to compile
the binary.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Dynamic module not binary compatible

Massimiliano Bellomi 2130 June 23, 2016 04:00AM

Re: Dynamic module not binary compatible

Maxim Dounin 5317 June 23, 2016 08:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready