[postgis-tickets] [PostGIS] #3003: Will just not compile anymore on FreeBSD 10.1

PostGIS trac at osgeo.org
Fri Nov 28 08:02:41 PST 2014


#3003: Will just not compile anymore on FreeBSD 10.1
------------------------+---------------------------------------------------
 Reporter:  martin5519  |       Owner:  pramsey      
     Type:  defect      |      Status:  new          
 Priority:  high        |   Milestone:  PostGIS 2.1.5
Component:  postgis     |     Version:  2.1.x        
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by robe):

 martin,

 1) shp2pgsql (which is a command line) DOES NOT require GTK.  Only the
 shp2pgsql-gui requires GTK which is the graphical interface
 2) Looking at your thread on freebsd your last error:

 {{{
 ../liblwgeom/.libs/liblwgeom.so: undefined reference to
 `geos::geom::GeometryFactory::createMultiPolygon() const'

 }}}

 looks like it may be caused with a mismatch with GEOS -- you might have a
 dangling liblwgeo.so being used that was compiled against an older geos --
 happens to me on rare occasion.  I would suggest deleting all of those and
 try recompiling.

 I'm not sure if you fixed this issue:

 {{{
 usr/local/include/iconv.h:83:48: note: passing argument to parameter
 'inbuf' here
 extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft,
 char* * outbuf, size_t *outbytesleft);
                                                ^
 shp2pgsql-core.c:108:3: warning: implicit declaration of function
 'iconvctl' is invalid in C99 [-Wimplicit-function-declaration]
                 iconvctl(cd, ICONV_SET_TRANSLITERATE, &on);
                 ^
 shp2pgsql-core.c:108:16: error: use of undeclared identifier
 'ICONV_SET_TRANSLITERATE'
                 iconvctl(cd, ICONV_SET_TRANSLITERATE, &on);
 }}}

 I assume you did -- but that sounds like missing iconv package or
 something wrong with it.

 Now whether this is a PostGIS issue, I can't absolutely rule it out.  We
 have had some complaints from FreeBSD folks which we have fixed (but they
 involved compiling the raster piece). So I'm keeping this open just in
 case instead of redirecting you to mailing list.


 Can you output what configure gives you and also the configure line you
 used to run configure?  That seems to be missing from your paste.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3003#comment:1>
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