# Nginx DSO(dynamic loadable module)

**URL:** <https://www.ruby-forum.com/t/nginx-dso-dynamic-loadable-module/214369>\
**Category:** NGINX\
**Created:** [November 30, 2011, 6:20am UTC](https://www.ruby-forum.com/t/nginx-dso-dynamic-loadable-module/214369 "2011-11-30T06:20:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 30, 2011, 6:20am UTC](https://www.ruby-forum.com/t/nginx-dso-dynamic-loadable-module/214369/1 "2011-11-30T06:20:08Z")

</div>

Hello,

I wrote nginx dso module and tested GNU/Linux i386/x86\_64.

> **[GitHub - hamano/nginx-mod-so: Nginx DSO module](https://github.com/hamano/nginx-mod-so)**
>
> Nginx DSO module. Contribute to hamano/nginx-mod-so development by creating an account on GitHub.

Also this module working independent from main unit, but It need  
slightly modification of the nginx build script.

> <https://github.com/hamano/nginx-mod-so/blob/master/patches/nginx-1.0.9-mod-so.patch>

Can you review and apply patches?

Thank you.

---

<div class="post-metadata">

**Author:** ![Tsukasa\_Hamano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@Tsukasa\_Hamano](https://www.ruby-forum.com/u/Tsukasa_Hamano)\
**Post date:** [November 30, 2011, 11:23am UTC](https://www.ruby-forum.com/t/nginx-dso-dynamic-loadable-module/214369/2 "2011-11-30T11:23:09Z")

</div>

Hello!

On Wed, Nov 30, 2011 at 02:19:47PM +0900, Tsukasa Hamano wrote:

> Can you review and apply patches?  
> Unfortunately, this won’t work even if implemented properly. Most  
> serious issue is that there should be ABI compatibility maintained  
> and checked, this is not currently the case even within single  
> unmodified nginx release: there are configure arguments which  
> change layout of various internal structures.

Other problems include e.g. proper handling of reloads.

Maxim D.

---

<div class="post-metadata">

**Author:** ![Tsukasa\_Hamano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/6a8cbe/32.png) [@Tsukasa\_Hamano](https://www.ruby-forum.com/u/Tsukasa_Hamano)\
**Post date:** [December 1, 2011, 12:29pm UTC](https://www.ruby-forum.com/t/nginx-dso-dynamic-loadable-module/214369/3 "2011-12-01T12:29:04Z")

</div>

Hi,

Thank you for your response.

At Wed, 30 Nov 2011 14:22:21 +0400,  
Maxim D. wrote:

> Unfortunately, this won’t work even if implemented properly. Most  
> serious issue is that there should be ABI compatibility maintained  
> and checked, this is not currently the case even within single  
> unmodified nginx release: there are configure arguments which  
> change layout of various internal structures.

I understand how hard it is ABI compatibility maintain.  
So, How about just conforming nginx version and nginx version was  
compiled with the module.

Look at the Makefile of example module.

> <https://github.com/hamano/nginx-mod-so/blob/master/example/Makefile>

Now, Nginx version numbber embedded in the dso module.  
It ensure sameness of nginx version by the mod\_so and shared module.

> Other problems include e.g. proper handling of reloads.

I’ll fix it, Please tell me if there is another problems.

Thank you.
