Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fails to build against PostgreSQL 17 #6

Open
@jirutka

Description

@jirutka
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.

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