Skip to content

Fails to build against PostgreSQL 17 #6

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
jirutka opened this issue Oct 31, 2024 · 0 comments
Open

Fails to build against PostgreSQL 17 #6

jirutka opened this issue Oct 31, 2024 · 0 comments

Comments

@jirutka
Copy link

jirutka commented Oct 31, 2024

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 -O2 -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o src/shared_ispell.o src/shared_ispell.c
clang-18 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -O2  -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o src/shared_ispell.bc src/shared_ispell.c
src/shared_ispell.c: In function 'dispell_lexize':
src/shared_ispell.c:636:17: error: implicit declaration of function 'MemoryContextResetAndDeleteChildren'; did you mean 'MemoryContextDeleteChildren'? [-Wimplicit-function-declaration]
  636 |                 MemoryContextResetAndDeleteChildren(saveInfo.infoCntx);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 MemoryContextDeleteChildren
make: *** [<builtin>: src/shared_ispell.o] Error 1
make: *** Waiting for unfinished jobs....
src/shared_ispell.c:636:3: error: call to undeclared function 'MemoryContextResetAndDeleteChildren'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  636 |                 MemoryContextResetAndDeleteChildren(saveInfo.infoCntx);
      |                 ^
src/shared_ispell.c:636:3: note: did you mean 'MemoryContextDeleteChildren'?
/usr/include/postgresql/17/server/utils/memutils.h:78:13: note: 'MemoryContextDeleteChildren' declared here
   78 | extern void MemoryContextDeleteChildren(MemoryContext context);
      |             ^
1 error generated.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant