[postgis-tickets] [PostGIS] #3936: Setting up bessie iconv errors FreeBSD

PostGIS trac at osgeo.org
Sun Nov 26 07:55:11 PST 2017


#3936: Setting up bessie iconv errors FreeBSD
-----------------------+----------------------------
 Reporter:  robe       |      Owner:  robe
     Type:  defect     |     Status:  new
 Priority:  medium     |  Milestone:  Management 2.0
Component:  buildbots  |    Version:  2.4.x
 Keywords:             |
-----------------------+----------------------------
 I set up 2 new vms.  a freebsd (bessie).  A deb9 (this one probably won't
 be a bot, but I made it a slave node on jenkins since I thought it would
 be easier and help me troubleshoot my issues with bessie).

 I do plan to eventually have a 32-bit freebsd (bessie32) and maybe a 32bit
 deb9 (debbie32).

 Anyway both are setup now as slave nodes on debbie's jenkins and while I
 got deb9 to run cleanly thru trunk clone, build, and check.  I'm having
 some issues with bessie.



 {{{
  PostGIS is now configured for amd64-unknown-freebsd11.1

  -------------- Compiler Info -------------
   C compiler:           cc -g -O2
   SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P

  -------------- Dependencies --------------
   GEOS config:          /usr/local/bin/geos-config
   GEOS version:         3.6.2
   GDAL config:          /usr/local/bin/gdal-config
   GDAL version:         2.2.2
   PostgreSQL config:    /usr/local/bin/pg_config
   PostgreSQL version:   PostgreSQL 10.1
   PROJ4 version:        49
   Libxml2 config:       /usr/local/bin/xml2-config
   Libxml2 version:      2.9.4
   JSON-C support:       no
   protobuf-c support:   no
   PCRE support:         no
   Perl:                 /usr/local/bin/perl

  --------------- Extensions ---------------
   PostGIS Raster:       enabled
   PostGIS Topology:     enabled
   SFCGAL support:       disabled
   Address Standardizer support:       disabled

  -------- Documentation Generation --------
   xsltproc:             /usr/local/bin/xsltproc
   xsl style sheets:
   dblatex:
   convert:              /usr/local/bin/convert
   mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

 }}}

 First to get past configure, I had to do this:


 {{{
 sh autogen.sh
 ./configure --with-projdir=/usr/local
 }}}

 otherwise it couldn't find the proj_api.h

 But now I'm getting this.  At first I didn't have iconv installed, so
 thought that may have been issue, but after install,

 {{{
 pkg install iconv
 }}}


 still have this:


 {{{
 libtool: link: cc -I ../liblwgeom -g -O2 -fPIC -DPIC -Wall -Wmissing-
 prototypes -I/usr/local/include shpopen.o dbfopen.o getopt.o shpcommon.o
 safileio.o shp2pgsql-core.o shp2pgsql-cli.o -o .libs/shp2pgsql -fstack-
 protector -Wl,--as-needed -Wl,-R/usr/local/lib
 ../liblwgeom/.libs/liblwgeom.so -L/usr/local/lib -lgeos_c -lproj -lm
 -lpthread -Wl,-rpath -Wl,/usr/local/lib
 shp2pgsql-core.o: In function `utf8':
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:69:
 undefined reference to `libiconv_open'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:83:
 undefined reference to `libiconv'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:110:
 undefined reference to `libiconv_close'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:88:
 undefined reference to `libiconvctl'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:89:
 undefined reference to `libiconv'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:92:
 undefined reference to `libiconvctl'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:93:
 undefined reference to `libiconv'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:101:
 undefined reference to `libiconv_close'
 /usr/home/jenkins/workspace/Test_Slave/trunk/loader/shp2pgsql-core.c:97:
 undefined reference to `libiconv_close'
 cc: error: linker command failed with exit code 1 (use -v to see
 invocation)
 gmake[2]: *** [Makefile:103: shp2pgsql] Error 1
 gmake[2]: Leaving directory
 '/usr/home/jenkins/workspace/Test_Slave/trunk/loader'
 gmake[1]: *** [GNUmakefile:16: all] Error 1
 gmake[1]: Leaving directory '/usr/home/jenkins/workspace/Test_Slave/trunk'
 *** Error code 2
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3936>
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