Opened 12 years ago

Closed 9 years ago

#1890 closed defect (fixed)

Configure finds sometimes older libraries

Reported by: janh Owned by: strk
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: 2.0.x
Keywords: Non-standard Configure Cc:

Description

When configuring for non-standard installation locations, (CFLAGS=… LDFLAGS=… configure) the header files and libraries in those locations will be searched before the source tree. This means that a relative include path, like "liblwgeom.h", will be retrieved from the older installed version. A possible solution would be to give the path relative to the souce code (" ../liblwgeom/liblwgeom.h"

Change History (5)

comment:1 by pramsey, 12 years ago

Milestone: PostGIS 2.0.1PostGIS 2.0.2

comment:2 by robe, 11 years ago

Milestone: PostGIS 2.0.2PostGIS 2.1.0

too dangerous to try now.

comment:3 by robe, 11 years ago

Milestone: PostGIS 2.1.0PostGIS 2.2.0

comment:4 by strk, 9 years ago

Are you seeing this problem under liblwgeom/ or under postgis/ or where ? Could you show a build line as an example ? Theoretically the local path should be listed as first one with -I from CPPFLAGS

comment:5 by strk, 9 years ago

Resolution: fixed
Status: newclosed

I've just run this test:

  1. Modify the system-installed /usr/include/liblwgeom.h to be broken
  2. Build PostGIS

It succeeded for me as of r14060 (2.2.0dev), so I'm closing this.

Note: See TracTickets for help on using tickets.