[postgis-tickets] [PostGIS] #4180: liblwgeom.h:2378:10: fatal error: lwinline.h: No such file or directory
PostGIS
trac at osgeo.org
Sun Sep 16 08:47:37 PDT 2018
#4180: liblwgeom.h:2378:10: fatal error: lwinline.h: No such file or directory
------------------------------------+---------------------------
Reporter: robe | Owner: robe
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.5.0
Component: build/upgrade/install | Version: 2.4.x
Resolution: | Keywords:
------------------------------------+---------------------------
Comment (by Algunenano):
I think that `rtpostgis.c` uses a different set of flags, defined in
`raster/rt_pg/Makefile.in`. The problem there is that the include of
`liblwgeom` directory should be first, not in the middle.
For example, this is the compilation command that fails:
{{{
05:29:34 cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-
after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-
security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument
-O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -DPIC
-I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2
-I/usr/include -I/usr/local/include -DHAVE_SFCGAL -g -O2
-I/usr/local/include "-I../../liblwgeom" "-I../../libpgcommon"
-I/usr/local/include -I../rt_core -I. -I./
-I/usr/local/include/postgresql/server
-I/usr/local/include/postgresql/internal -I/usr/local/include
-I/usr/local/include -I/usr/local/include -c -o rtpostgis.o rtpostgis.c
}}}
The first include there should be `"-I../../liblwgeom"` not
`-I/usr/local/include`.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4180#comment:4>
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