Building ngx_postgres module as dynamic

npyxg1mg2kn7dvk0rl06 hda at hda.me
Thu May 5 15:01:34 UTC 2016


On Wed, May 4, 2016, at 01:46 PM, Maxim Dounin wrote:
> 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/
> 
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
> 
I made appropriative changes and now I have undefined symbol: PQsendQuery on module loading. Not sure if PQsendQuery  even should be linked.
https://github.com/cryptofuture/ngx_postgres - repo with changes, in case someone will be charitable enough to look into.
Also I discussed making module dynamic with dev, but looks like he just waiting for incoming pull requests. 
 




More information about the nginx-devel mailing list