#5261 closed defect (fixed)
PostgreSQL 16 GUC changes breaks compile, removal of Abs breaks compile
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.4.0 |
Component: | postgis | Version: | master |
Keywords: | PG16 | Cc: |
Description
Both berrie32 and debbie's PG16 run are showing this error:
22:06:19 make[1]: Entering directory '/var/lib/jenkins/workspace/postgis/branches/3.4/libpgcommon' 22:06:19 gcc -I./../liblwgeom -I../liblwgeom -I/var/lib/jenkins/workspace/geos/rel-3.11w64/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c -DNDEBUG -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -Wall -I/var/lib/jenkins/workspace/pg/rel/pg16w64/include/postgresql/server -fPIC -DPIC -c -o gserialized_gist.o gserialized_gist.c 22:06:19 gcc -I./../liblwgeom -I../liblwgeom -I/var/lib/jenkins/workspace/geos/rel-3.11w64/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c -DNDEBUG -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -Wall -I/var/lib/jenkins/workspace/pg/rel/pg16w64/include/postgresql/server -fPIC -DPIC -c -o lwgeom_transform.o lwgeom_transform.c 22:06:20 gcc -I./../liblwgeom -I../liblwgeom -I/var/lib/jenkins/workspace/geos/rel-3.11w64/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c -DNDEBUG -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -Wall -I/var/lib/jenkins/workspace/pg/rel/pg16w64/include/postgresql/server -fPIC -DPIC -c -o lwgeom_cache.o lwgeom_cache.c 22:06:20 gcc -I./../liblwgeom -I../liblwgeom -I/var/lib/jenkins/workspace/geos/rel-3.11w64/include -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c -DNDEBUG -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -Wall -I/var/lib/jenkins/workspace/pg/rel/pg16w64/include/postgresql/server -fPIC -DPIC -c -o lwgeom_pg.o lwgeom_pg.c 22:06:20 lwgeom_pg.c: In function ‘postgis_guc_find_option’: 22:06:20 lwgeom_pg.c:505:13: error: too few arguments to function ‘get_guc_variables’ 22:06:20 505 | (void *) get_guc_variables(), 22:06:20 | ^~~~~~~~~~~~~~~~~ 22:06:20 In file included from lwgeom_pg.c:30: 22:06:20 /var/lib/jenkins/workspace/pg/rel/pg16w64/include/postgresql/server/utils/guc_tables.h:296:32: note: declared here 22:06:20 296 | extern struct config_generic **get_guc_variables(int *num_vars); 22:06:20 | ^~~~~~~~~~~~~~~~~ 22:06:20 lwgeom_pg.c:506:4: warning: implicit declaration of function ‘GetNumConfigOptions’; did you mean ‘GetConfigOption’? [-Wimplicit-function-declaration] 22:06:20 506 | GetNumConfigOptions(), 22:06:20 | ^~~~~~~~~~~~~~~~~~~ 22:06:20 | GetConfigOption 22:06:20 make[1]: *** [Makefile:69: lwgeom_pg.o] Error 1 22:06:20 make[1]: Leaving directory '/var/lib/jenkins/workspace/postgis/branches/3.4/libpgcommon' 22:06:20 make: *** [GNUmakefile:25: all] Error 1 22:06:21 Build step 'Execute shell' marked build as failure 22:06:21 Triggering a new build of PostgreSQL stop 22:06:21 Finished: FAILURE
Change History (9)
comment:1 by , 2 years ago
Owner: | changed from | to
---|
comment:2 by , 2 years ago
comment:3 by , 2 years ago
Summary: | PostgreSQL 16 GUC changes breaks compile → PostgreSQL 16 GUC changes breaks compile, removal of Abs breaks compile |
---|
Okay I think this one I have under control maybe, but that just allowed stumbling into yet another break
Remove Abs() author Peter Eisentraut <peter@eisentraut.org> Wed, 12 Oct 2022 04:36:12 +0000 (06:36 +0200) committer Peter Eisentraut <peter@eisentraut.org> Wed, 12 Oct 2022 04:53:47 +0000 (06:53 +0200) commit a699b7a7aa9f34c19aa7632b3f037f24c8ee7720 tree f1b387b4cddc0e2857cb4ed80f98ab6bb31096e5 tree parent 4574eb9d38c69f4c90b5468f740ff22519752066 commit | diff Remove Abs() All callers have been replaced by standard C library functions. Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com
Which is causing a break in
gserialized_gist_2d.o: In function `gserialized_gist_picksplit_2d': C:\ming64gcc81\projects\postgis\postgis-git\postgis/gserialized_gist_2d.c:2057: undefined reference to `Abs' collect2.exe: error: ld returned 1 exit status make[1]: *** [C:/MING64~1/projects/POSTGR~1/rel/PG16W6~3/lib/pgxs/src/MAKEFI~1/../../src/Makefile.shlib:339: postgis-3.4.dll] Error 1 make[1]: Leaving directory '/projects/postgis/postgis-git/postgis'
I'm thinking we should just replace this one with abs -- can't think of a reason to keep it.
Note:
See TracTickets
for help on using tickets.
Okay quite a few commits around gucs around 6 days ago.
I suspect this one is the culprit
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3057465acfbea2f3dd7a914a1478064022c6eecd
But might have also been changed later on: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=407b50f2d421bca5b134a0033176ea8f8c68dc6b
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f13b2088fa2d4455936e65459b77698a4452f932