[postgis-tickets] [PostGIS] #5179: error: expected ‘)’ before ‘quote_identifier’

PostGIS trac at osgeo.org
Sun Jul 3 20:35:16 PDT 2022


#5179: error: expected ‘)’ before ‘quote_identifier’
----------------------------+---------------------------
 Reporter:  Bas Couwenberg  |      Owner:  robe
     Type:  defect          |     Status:  new
 Priority:  high            |  Milestone:  PostGIS 3.3.0
Component:  loader/dumper   |    Version:  master
 Keywords:                  |
----------------------------+---------------------------
 The Debian package build for PostGIS 3.3.0beta1 failed on 390x (big
 endian):
 {{{
 make[3]: Entering directory '/<<PKGBUILDDIR>>/loader'
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o shpopen.o shpopen.c
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o dbfopen.o dbfopen.c
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o getopt.o getopt.c
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o shpcommon.o shpcommon.c
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o safileio.o safileio.c
 s390x-linux-gnu-gcc -I. -I./ -I/usr/include/postgresql/14/server
 -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2
 -D_GNU_SOURCE -I/usr/include/libxml2  -I../liblwgeom -I../liblwgeom
 -I/usr/include -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2
 -I/usr/include -I/usr/include/json-c  -DNDEBUG -Wdate-time
 -D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
 -fstack-protector-strong -Wformat -Werror=format-security -fno-math-errno
 -fno-signed-zeros -Wall -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu
 -c shp2pgsql-core.c
 s390x-linux-gnu-gcc -I../liblwgeom -I../liblwgeom  -I/usr/include
 -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2 -I/usr/include
 -I/usr/include/json-c  -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99
 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
 -Wformat -Werror=format-security -fno-math-errno -fno-signed-zeros -Wall
 -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu   -I. -I./
 -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c
 -o shp2pgsql-cli.o shp2pgsql-cli.c
 s390x-linux-gnu-gcc -I. -I./ -I/usr/include/postgresql/14/server
 -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2
 -D_GNU_SOURCE -I/usr/include/libxml2  -I../liblwgeom -I../liblwgeom
 -I/usr/include -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2
 -I/usr/include -I/usr/include/json-c  -DNDEBUG -Wdate-time
 -D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
 -fstack-protector-strong -Wformat -Werror=format-security -fno-math-errno
 -fno-signed-zeros -Wall -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu
 -I/usr/include/postgresql -c pgsql2shp-core.c
 s390x-linux-gnu-gcc -I. -I./ -I/usr/include/postgresql/14/server
 -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2
 -D_GNU_SOURCE -I/usr/include/libxml2  -I../liblwgeom -I../liblwgeom
 -I/usr/include -I/usr/include/s390x-linux-gnu  -I/usr/include/libxml2
 -I/usr/include -I/usr/include/json-c  -DNDEBUG -Wdate-time
 -D_FORTIFY_SOURCE=2 -std=gnu99 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
 -fstack-protector-strong -Wformat -Werror=format-security -fno-math-errno
 -fno-signed-zeros -Wall -flto  -fPIC -DPIC -I/usr/include/s390x-linux-gnu
 -I/usr/include/postgresql -c pgsql2shp-cli.c
 pgsql2shp-core.c: In function ‘ShpDumperOpenTable’:
 pgsql2shp-core.c:1860:85: error: expected ‘)’ before ‘quote_identifier’
  1860 |                             "ST_asEWKB(ST_SetSRID(%s::geometry,
 0), 'XDR') AS _geoX"
       |
 ^
       |
 )
  1861 |                             quote_identifier(state->geo_col_name)
 );
       |                             ~~~~~~~~~~~~~~~~
 pgsql2shp-core.c:1859:45: note: to match this ‘(’
  1859 |                         stringbuffer_aprintf(&sb,
       |                                             ^
 make[3]: *** [Makefile:104: pgsql2shp-core.o] Error 1
 }}}
 [https://buildd.debian.org/status/fetch.php?pkg=postgis&arch=s390x&ver=3.3.0%7Ebeta1%2Bdfsg-1%7Eexp1&stamp=1656903505&raw=0
 Full buildlog]
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5179>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list