Skip to content

Compilation error on nginx =1.22.1 #68

Description

@quhanj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions