[postgis-tickets] [PostGIS] #3604: pgcommon/Makefile.in orders CFLAGS incorrectly leading to wrong liblwgeom.h
PostGIS
trac at osgeo.org
Sun Jul 31 08:59:42 PDT 2016
#3604: pgcommon/Makefile.in orders CFLAGS incorrectly leading to wrong liblwgeom.h
---------------------+---------------------------
Reporter: gdt | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.0
Component: postgis | Version: trunk
Keywords: |
---------------------+---------------------------
In both libpgcommon and postgis, CFLAGS end up with -I of system libraries
before -I../liblwgeom. This causes the installed version of liblwgeom.h
to be picked up, instead of the version from the postgis sources,
resulting in a build failure.
I have observed the problem on NetBSD 6, and it has also been reported on
FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211203
The workaround is to remove the installed version.
To fix, adjust CFLAGS/CPPFLAGS so that -I../liblwgeom is before includes
of any directory that might have an installed version of postgis (e.g.
-I/usr/pkg/include on NetBSD).
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3604>
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