[postgis-tickets] [PostGIS] #4955: Configure flag --without-protobuf broken in back branches
PostGIS
trac at osgeo.org
Tue Jul 27 04:11:24 PDT 2021
#4955: Configure flag --without-protobuf broken in back branches
---------------------+---------------------------
Reporter: mbanck | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.1.3
Component: postgis | Version: 2.5.x
Keywords: |
---------------------+---------------------------
Except for 3.1 (where the protobuf handling got changed to basically
mandating it unless explicitly switched off), all active branches seem to
be broken when --without-protobuf (as mentioned in the configure help) is
passed.
In that case, configure.ac sets HAVE_PROTOBUF=yes, then checks the
withval, and jumps over the whole detection code, leaving
HAVE_PROTOBUF=yes on (and subsquently $PROTOCC is empty leading to build
errors:
E.g.:
{{{
postgis-2.4.9> ./configure --with-protobuf --prefix=[...] 2>&1 | grep -i
protobuf
checking for PROTOBUFC... no
libprotobuf-c not found in pkg-config
checking protobuf-c/protobuf-c.h usability... no
checking protobuf-c/protobuf-c.h presence... no
checking for protobuf-c/protobuf-c.h... no
unable to find protobuf-c/protobuf-c.h using
checking for protobuf_c_message_init in -lprotobuf-c... no
unable to link protobuf-c using
checking for protobuf_c_version in -lprotobuf-c... no
checking protobuf-c version... 0
Cannot find protoc-c protobuf compiler on the PATH: [...]
protobuf-c support: no
postgis-2.4.9> ./configure --without-protobuf --prefix=[...] 2>&1 | grep
-i protobuf
protobuf-c support: yes
protobuf-c version:
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4955>
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