[postgis-tickets] [PostGIS] #4419: protobuf-c required version?

PostGIS trac at osgeo.org
Tue Jun 4 08:29:47 PDT 2019


#4419: protobuf-c required version?
---------------------+---------------------------
 Reporter:  pramsey  |      Owner:  Algunenano
     Type:  defect   |     Status:  assigned
 Priority:  high     |  Milestone:  PostGIS 3.0.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 When trying to build using default protobuf-c-devel on AWS linux, build
 dies on protobuf module:
 {{{
 /usr/bin/protoc-c --c_out=. vector_tile.proto
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-
 security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-
 format-truncation -O2 -fPIC -I../liblwgeom -std=gnu99 -g -O2 -fno-math-
 errno -fno-signed-zeros -I../libpgcommon -I../deps/wagyu
 -I../deps/uthash/include  -I/usr/local/include  -I/usr/local/include
 -I/usr/include/libxml2  -I/usr/include/json-c      -fPIC -DPIC -I. -I./
 -I/data/pgsql/12/include/server -I/data/pgsql/12/include/internal
 -D_GNU_SOURCE   -c -o vector_tile.pb-c.o vector_tile.pb-c.c
 /usr/bin/protoc-c --c_out=. geobuf.proto
 geobuf.proto:9:5: Expected "required", "optional", or "repeated".
 geobuf.proto:9:21: Missing field number.
 geobuf.proto:18:9: Expected "required", "optional", or "repeated".
 geobuf.proto:18:23: Missing field number.
 geobuf.proto:57:9: Expected "required", "optional", or "repeated".
 geobuf.proto:57:26: Missing field number.
 make[1]: *** [geobuf.pb-c.c] Error 1
 make[1]: Leaving directory `/home/ec2-user/postgis/postgis'
 make: *** [all] Error 1
 }}}
 The versions installed for this distro are
 {{{
 [ec2-user at ip-172-31-31-163 postgis]$ rpm -qa | grep protobuf
 protobuf-c-compiler-1.0.2-3.amzn2.0.1.x86_64
 protobuf-2.5.0-8.amzn2.0.2.x86_64
 protobuf-compiler-2.5.0-8.amzn2.0.2.x86_64
 protobuf-c-devel-1.0.2-3.amzn2.0.1.x86_64
 protobuf-c-1.0.2-3.amzn2.0.1.x86_64
 }}}
 If there's a required version level we should be testing for it in
 ./configure

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4419>
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