I have a new FreeBSD 11 VM I'm planning to use for PostGIS regression testing. Dubbed Bessie ticketed here - https://trac.osgeo.org/postgis/ticket/3936
I'm having some problems getting PostGIS to compile, any thoughts for fixing would be helpful. All the dependencies I have installed thus far using Pkg install gdal geos proj iconv etc. So I got this far using: sh autogen.sh ./configure --with-projdir=/usr/local 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 It fails when it gets to compiling the loaders: 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 I'm puzzled why iconv isn't in the lib includes. I'm also puzzled why I had to explicitly include reference to proj in my configure to have it picked up. Thanks, Regina _______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
