pg_plugins icon indicating copy to clipboard operation
pg_plugins copied to clipboard

PGPROC has no member named xvid; did you mean xid?

Open Smithx10 opened this issue 2 years ago • 0 comments

While trying to compile I ran into the following

==> triton: Cloning into '/opt/pgplugins'...
    triton: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -m64 -fPIC -fvisibility=hidden -I. -I./ -I/opt/postgresql/16.2/include/server -I/opt/postgresql/16.2/include/internal -I/opt/local/include -I/opt/local/include -D_POSIX_PTHREAD_SEMANTICS   -c -o jsonlog.o jsonlog.c
==> triton: jsonlog.c: In function 'jsonlog_write_json':
==> triton: jsonlog.c:381:39: error: 'PGPROC' has no member named 'vxid'; did you mean 'xid'?
==> triton:   381 |         if (MyProc != NULL && MyProc->vxid.procNumber != INVALID_PROC_NUMBER)
==> triton:       |                                       ^~~~
==> triton:       |                                       xid
==> triton: jsonlog.c:381:58: error: 'INVALID_PROC_NUMBER' undeclared (first use in this function)
==> triton:   381 |         if (MyProc != NULL && MyProc->vxid.procNumber != INVALID_PROC_NUMBER)
==> triton:       |                                                          ^~~~~~~~~~~~~~~~~~~
==> triton: jsonlog.c:381:58: note: each undeclared identifier is reported only once for each function it appears in
==> triton: jsonlog.c:383:58: error: 'PGPROC' has no member named 'vxid'; did you mean 'xid'?
==> triton:   383 |                                                  MyProc->vxid.procNumber, MyProc->vxid.lxid);
==> triton:       |                                                          ^~~~
==> triton:       |                                                          xid
==> triton: jsonlog.c:383:83: error: 'PGPROC' has no member named 'vxid'; did you mean 'xid'?
==> triton:   383 |                                                  MyProc->vxid.procNumber, MyProc->vxid.lxid);
==> triton:       |                                                                                   ^~~~
==> triton:       |                                                                                   xid
==> triton: make: *** [<builtin>: jsonlog.o] Error 1

Smithx10 avatar Mar 18 '24 02:03 Smithx10