[postgis-tickets] [PostGIS] #4260: Stop installing headers

PostGIS trac at osgeo.org
Tue Jan 22 02:40:53 PST 2019


#4260: Stop installing headers
-------------------------+---------------------------
  Reporter:  Algunenano  |      Owner:  Algunenano
      Type:  defect      |     Status:  reopened
  Priority:  blocker     |  Milestone:  PostGIS 3.0.0
 Component:  liblwgeom   |    Version:  trunk
Resolution:              |   Keywords:
-------------------------+---------------------------
Changes (by Algunenano):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 > Statically link shp2pgsql and other loader utilities to
 liblwgeom
 References #4260

 Travis didn't like this (https://travis-
 ci.org/postgis/postgis/jobs/482789301, libtool 2.4.6) but I'm not sure
 why; it works fine in my system with similar releases (libtool 2.4.6,
 clang 7 or gcc 8.2):
 {{{
 libtool: link: gcc -I ../liblwgeom -Wall -Wmissing-prototypes -std=gnu99
 -g -O2 -fno-math-errno -fno-signed-zeros -fPIC -DPIC shpopen.o dbfopen.o
 getopt.o shpcommon.o safileio.o pgsql2shp-core.o pgsql2shp-cli.o -Wl,--as-
 needed -Wl,-rpath -Wl,/usr/local/pgsql/lib -Wl,--enable-new-dtags -o
 pgsql2shp  ../liblwgeom/.libs/liblwgeom.a -L/usr/local/lib
 /usr/local/lib/libgeos_c.a /usr/local/lib/libgeos.a
 /usr/local/lib/libproj.a -lpthread -ljson-c -lm
 /usr/local/lib/libSFCGAL.so -L/usr/local/pgsql/lib -lc -lpq
 libtool: link: gcc -I ../liblwgeom -Wall -Wmissing-prototypes -std=gnu99
 -g -O2 -fno-math-errno -fno-signed-zeros -fPIC -DPIC shpopen.o dbfopen.o
 getopt.o shpcommon.o safileio.o shp2pgsql-core.o shp2pgsql-cli.o -o
 shp2pgsql -Wl,--as-needed -Wl,-rpath -Wl,/usr/local/pgsql/lib -Wl
 ,--enable-new-dtags  ../liblwgeom/.libs/liblwgeom.a -L/usr/local/lib
 /usr/local/lib/libgeos_c.a /usr/local/lib/libgeos.a
 /usr/local/lib/libproj.a -lpthread -ljson-c -lm
 /usr/local/lib/libSFCGAL.so -L/usr/local/pgsql/lib -lc
 /usr/bin/ld: /usr/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_c.o): in
 function `GEOS_init_r':
 /src/geos/capi/geos_ts_c.cpp:340: undefined reference to `operator
 new(unsigned long)'
 /usr/bin/ld: /usr/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_c.o): in
 function `GEOSWKBReader_destroy_r':
 /usr/include/c++/8/ext/new_allocator.h:125: undefined reference to
 `operator delete(void*)'
 /usr/bin/ld: /usr/local/lib/libgeos_c.a(libgeos_c_la-geos_ts_c.o): in
 function `GEOSRelate_r':
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4260#comment:11>
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