Opened 3 years ago

Closed 3 years ago

#4964 closed defect (fixed)

undefined symbol: protobuf_c_version

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.2.0
Component: build Version: master
Keywords: Cc:

Description

In absence of pkg-config, the check for protobuf fails to add -lprotoc to LDCONFIG

Change History (7)

comment:1 by strk, 3 years ago

The problem is not LDFLAGS, but PROTOBUF_LDFLAGS being undefined, when pkg-config is not installed. The PROTOBUF_LDFLAGS variable is used to define SHLIB_LINK, which is then used in postgis/Makefile.in

Beside, SHLIB_LINK, although very important, is NOT printed by ./configure output, which prints LDFLAGS instead, not very useful thing to do

comment:2 by Sandro Santilli <strk@…>, 3 years ago

Resolution: fixed
Status: newclosed

In 6eeee12/git:

Fix PROTOBUF_LDFLAGS in absence of pkg-config

Closes #4964

comment:3 by robe, 3 years ago

Resolution: fixed
Status: closedreopened

But we require pkg-config for PostGIS 3.2 I thought

This broke my windows build — see #4977

comment:4 by robe, 3 years ago

Resolution: fixed
Status: reopenedclosed

Okay I might have been mistaken. Reverting this didn't seem to fix my issue or I'm missing something else.

comment:5 by robe, 3 years ago

Resolution: fixed
Status: closedreopened

okay I think it is this that broke it but only part of it. So reopening.

comment:6 by robe, 3 years ago

In 86a8a59/git:

Partially revert #4964 which broke mingw64 building. Closes #4977

Okay I think I completely reverted it.

comment:7 by pramsey, 3 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.