FRiCKLE / ngx_postgres

upstream module that allows nginx to communicate directly with PostgreSQL database.
http://labs.frickle.com/nginx_ngx_postgres/
BSD 2-Clause "Simplified" License
545 stars 122 forks source link

Compilation error on nginx =1.22.1 #68

Open quhanj opened 1 month ago

quhanj commented 1 month ago

cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include/postgresql -I objs -I src/http -I src/http/modules \ -o objs/addon/src/ngx_postgres_module.o \ ./ngx_postgres/src/ngx_postgres_module.c ./ngx_postgres/src/ngx_postgres_module.c: In function ‘ngx_postgres_find_upstream’: ./ngx_postgres/src/ngx_postgres_module.c:1323:21: error: ‘ngx_http_upstream_srv_conf_t’ {aka ‘struct ngx_http_upstream_srv_conf_s’} has no member named ‘default_port’ 1323 | if (uscfp[i]->default_port && url->default_port | ^~ ./ngx_postgres/src/ngx_postgres_module.c:1324:25: error: ‘ngx_http_upstream_srv_conf_t’ {aka ‘struct ngx_http_upstream_srv_conf_s’} has no member named ‘default_port’ 1324 | && (uscfp[i]->default_port != url->default_port)) | ^~ make[1]: [objs/Makefile:1244: objs/addon/src/ngx_postgres_module.o] Error 1 make[1]: Leaving directory '/tmp/nginx-1.22.1' make: [Makefile:10: build] Error 2