Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#4955 closed defect (fixed)

Configure flag --without-protobuf broken in back branches

Reported by: mbanck Owned by: pramsey
Priority: medium Milestone: PostGIS 3.1.3
Component: postgis Version: 2.5.x -- EOL
Keywords: Cc:

Description

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:   

Change History (5)

comment:2 by mbanck, 3 years ago

Seems to be a regression introduced in 65df6ca65f

comment:3 by Michael Banck <michael.banck@…>, 3 years ago

Resolution: fixed
Status: newclosed

In b4a1a6d/git:

Fix protobuf (non-)detection in the --without-protobuf case. Closes #4955

comment:4 by Paul Ramsey <pramsey@…>, 3 years ago

In f793a88/git:

Fix protobuf (non-)detection in the --without-protobuf case. Closes #4955

comment:5 by Paul Ramsey <pramsey@…>, 3 years ago

In d399b9f/git:

Fix protobuf (non-)detection in the --without-protobuf case. Closes #4955

Note: See TracTickets for help on using tickets.