logerrors icon indicating copy to clipboard operation
logerrors copied to clipboard

PostgreSQL 17 support

Open devrimgunduz opened this issue 1 year ago • 3 comments

Hi,

PostgreSQL 17 Beta1 is out and logerrors cannot be built against it. Below are the errors. Can you please take a look? Thanks! Devrim

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 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -fvisibility=hidden -I. -I./ -I/usr/pgsql-17/include/server -I/usr/pgsql-17/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include -c -o logerrors.o logerrors.c /usr/bin/clang -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/pgsql-17/include/server -I/usr/pgsql-17/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include -flto=thin -emit-llvm -c -o logerrors.bc logerrors.c logerrors.c:686:5: error: call to undeclared function 'tuplestore_donestoring'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 686 | tuplestore_donestoring(tupstore); | ^ logerrors.c:761:5: error: call to undeclared function 'tuplestore_donestoring'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 761 | tuplestore_donestoring(tupstore); | ^ 2 errors generated. make[1]: *** [/usr/pgsql-17/lib/pgxs/src/makefiles/../../src/Makefile.global:1085: logerrors.bc] Error 1 make[1]: *** Waiting for unfinished jobs.... logerrors.c: In function ‘pg_log_errors_stats’: logerrors.c:686:5: error: implicit declaration of function ‘tuplestore_donestoring’; did you mean ‘tuplestore_rescan’? [-Wimplicit-function-declaration] 686 | tuplestore_donestoring(tupstore); | ^~~~~~~~~~~~~~~~~~~~~~ | tuplestore_rescan make[1]: *** [: logerrors.o] Error 1

devrimgunduz avatar May 23 '24 14:05 devrimgunduz

Hi,

Sure, I'll take a look.

munakoiso avatar May 24 '24 05:05 munakoiso

Any updates?

devrimgunduz avatar Jul 13 '24 10:07 devrimgunduz

Unfortunately, I still haven't found time to look :( I'm pretty sure my colleagues will fix the problem before the major release.

munakoiso avatar Jul 15 '24 06:07 munakoiso

Hi,

Attached patch fixes the problem:

logerrors-pg17-fix.patch.txt

devrimgunduz avatar Jul 30 '24 12:07 devrimgunduz

Hi,

Attached patch fixes the problem:

logerrors-pg17-fix.patch.txt

Hi! Thanks for taking care. https://github.com/munakoiso/logerrors/pull/28 merged, should be OK now

reshke avatar Aug 07 '24 14:08 reshke

Hi,

It works fine. Can you please push a new release so that I can build the RPMs?

Regards, Devrim

devrimgunduz avatar Aug 12 '24 08:08 devrimgunduz

Hi

I'm sorry for the delay. I have just released a new version: https://github.com/munakoiso/logerrors/releases/tag/v2.1.3

munakoiso avatar Aug 23 '24 05:08 munakoiso

Thanks!

devrimgunduz avatar Aug 23 '24 08:08 devrimgunduz