Building ngx_postgres module as dynamic

Maxim Dounin mdounin at mdounin.ru
Wed May 4 18:46:47 UTC 2016


Hello!

On Wed, May 04, 2016 at 07:28:23PM +0200, npyxg1mg2kn7dvk0rl06 wrote:

> I have problem with building ngx_postgres module as dynamic module
> >/etc/nginx/modules/ngx_postgres.so: undefined symbol: ngx_postgres
> https://github.com/cryptofuture/ngx_postgres/blob/808389353c88da4e641ef4b3ac6e0193191b4028/config - config file I used
> changes with default one - https://github.com/cryptofuture/ngx_postgres/commit/808389353c88da4e641ef4b3ac6e0193191b4028#diff-2245023265ae4cf87d02c8b6ba991139

For some reason you've used

    ngx_module_name=ngx_postgres

which refers to a non-existing module.  Most likely you should use 
ngx_postgres_module instead, as in

    HTTP_MODULES="$HTTP_MODULES ngx_postgres_module"

in the original config file.

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



More information about the nginx-devel mailing list