Skip to content

Building pg_variables for vanilla PosgtreSQL 17.5.1 and 18.4 on Ubuntu 24.04.2 LTS Failed #61

Description

@iifedy

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

Activity

  1. changed the title [-]Building pg_variables for vanilla PosgtreSQL 15.1 on Ubuntu 24.04.2 LTS Failed[/-] [+]Building pg_variables for vanilla PosgtreSQL 17.5.1 on Ubuntu 24.04.2 LTS Failed[/+] on Jun 7, 2026
  2. changed the title [-]Building pg_variables for vanilla PosgtreSQL 17.5.1 on Ubuntu 24.04.2 LTS Failed[/-] [+]Building pg_variables for vanilla PosgtreSQL 17.5.1 and 18.4 on Ubuntu 24.04.2 LTS Failed[/+] on Jun 7, 2026
  3. iifedy commented on Jun 7, 2026

    @iifedy
    Author

    After upgrading to version 18.4, the problem did not disappear.

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