Hello, colleagues!
I've tried to install pg_variables for vanilla PosgtreSQL 17.5.1 on Ubuntu 24.04.2 LTS.
Installation failed with error at the very first step.
root@vanilla:/tmp# sudo tar xzf pg_variables-1.2.1.tar.gz
root@vanilla:/tmp# cd pg_variables-1.2.1
root@vanilla:/tmp/pg_variables-1.2.1# make USE_PGXS=1
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 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-omit-frame-pointer -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=3 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o pg_variables.o pg_variables.c
pg_variables.c: In function ‘getMemoryTotalSpace’:
pg_variables.c:1159:9: warning: implicit declaration of function ‘AssertArg’; did you mean ‘Assert’? [-Wimplicit-function-declaration]
1159 | AssertArg(MemoryContextIsValid(context));
| ^~~~~~~~~
| Assert
pg_variables.c:1164:10: error: too few arguments to function ‘(void (*)(struct MemoryContextData , void ()(struct MemoryContextData *, void *, const char *, _Bool), void *, MemoryContextCounters *, _Bool))context->methods->stats’
1164 | (*context->methods->stats) (context, NULL, NULL, &totals);
| ~^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [: pg_variables.o] Error 1
How could I fix this problem?
Thank You
Hello, colleagues!
I've tried to install pg_variables for vanilla PosgtreSQL 17.5.1 on Ubuntu 24.04.2 LTS.
Installation failed with error at the very first step.
root@vanilla:/tmp# sudo tar xzf pg_variables-1.2.1.tar.gz
root@vanilla:/tmp# cd pg_variables-1.2.1
root@vanilla:/tmp/pg_variables-1.2.1# make USE_PGXS=1
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 -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-omit-frame-pointer -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=3 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o pg_variables.o pg_variables.c
pg_variables.c: In function ‘getMemoryTotalSpace’:
pg_variables.c:1159:9: warning: implicit declaration of function ‘AssertArg’; did you mean ‘Assert’? [-Wimplicit-function-declaration]
1159 | AssertArg(MemoryContextIsValid(context));
| ^~~~~~~~~
| Assert
pg_variables.c:1164:10: error: too few arguments to function ‘(void (*)(struct MemoryContextData , void ()(struct MemoryContextData *, void *, const char *, _Bool), void *, MemoryContextCounters *, _Bool))context->methods->stats’
1164 | (*context->methods->stats) (context, NULL, NULL, &totals);
| ~^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [: pg_variables.o] Error 1
How could I fix this problem?
Thank You