[postgis-tickets] [PostGIS] #3639: Can't build from tar ball on FreeBSD

PostGIS trac at osgeo.org
Thu Sep 22 22:37:18 PDT 2016


#3639: Can't build from tar ball on FreeBSD
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  high     |  Milestone:  PostGIS 2.3.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 This might just be me.  I had no issue building PostGIS 2.3 from svn
 trunk, but for some reason I can't from the tar ball.


 {{{
    if ( iconv(cd, &inputbuf, &inbytesleft, &outputptr, &outbytesleft) ==
 -1 )
    ^
 In file included from shp2pgsql-core.h:24:0,
                  from shp2pgsql-core.c:18:
 /usr/include/iconv.h:56:8: note: expected 'const char **' but argument is
 of type 'char **'
  size_t iconv(iconv_t, const char ** __restrict,
         ^
 shp2pgsql-core.c:93:4: warning: passing argument 2 of 'iconv' from
 incompatible pointer type [enabled by default]
     if ( iconv(cd, &inputbuf, &inbytesleft, &outputptr, &outbytesleft) ==
 -1 )
     ^
 In file included from shp2pgsql-core.h:24:0,
                  from shp2pgsql-core.c:18:
 /usr/include/iconv.h:56:8: note: expected 'const char **' but argument is
 of type 'char **'
  size_t iconv(iconv_t, const char ** __restrict,
         ^
 gcc -I ../liblwgeom -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes    -I.
 -I./ -I/usr/local/include/postgresql/server
 -I/usr/local/include/postgresql/internal -I/usr/local/include
 -I/usr/local/include  -c -o shp2pgsql-cli.o shp2pgsql-cli.c
 /bin/sh ../libtool --mode=link \
   gcc -I ../liblwgeom -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes
 shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o shp2pgsql-core.o
 shp2pgsql-cli.o ../liblwgeom/liblwgeom.la -o shp2pgsql -L/usr/local/lib
 -L/usr/local/lib -lpthread  -fstack-protector  -
 libtool: link: gcc -I ../liblwgeom -g -O2 -fPIC -DPIC -Wall -Wmissing-
 prototypes 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/li
 gcc -I ../liblwgeom -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes
 -I/usr/local/include -c pgsql2shp-core.c
 gcc -I ../liblwgeom -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes
 -I/usr/local/include -c pgsql2shp-cli.c
 /bin/sh ../libtool --mode=link \
   gcc -I ../liblwgeom -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes
 shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o pgsql2shp-core.o
 pgsql2shp-cli.o ../liblwgeom/liblwgeom.la -L/usr/local/lib
 -L/usr/local/lib -lpthread  -fstack-protector  -L/usr/local/l
 libtool: link: gcc -I ../liblwgeom -g -O2 -fPIC -DPIC -Wall -Wmissing-
 prototypes shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o pgsql2shp-
 core.o pgsql2shp-cli.o -fstack-protector -Wl,--as-needed
 -Wl,-R/usr/local/lib -o .libs/pgsql2shp  ../liblwgeom/.libs/li
 gmake[2]: Leaving directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/loader'
 ---- Making all in utils
 gmake[2]: Entering directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/utils'
 sed 's, at SRID_MAXIMUM@,999999,g;s, at SRID_USER_MAXIMUM@,998999,'
 postgis_restore.pl.in >postgis_restore.pl
 chmod +x create_undef.pl svn_repo_revision.pl postgis_proc_upgrade.pl
 profile_intersects.pl test_estimation.pl test_joinestimation.pl
 gmake[2]: Leaving directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/utils'
 ---- Making all in doc
 gmake[2]: Entering directory '/usr/home/robe/sources/postgis-2.3.0rc1/doc'
 gmake[2]: Nothing to be done for 'all'.
 gmake[2]: Leaving directory '/usr/home/robe/sources/postgis-2.3.0rc1/doc'
 ---- Making all in extensions
 gmake[2]: Entering directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/extensions'
 for DIR in postgis  postgis_tiger_geocoder  postgis_topology
 address_standardizer; do \
         echo "---- Making all in ${DIR}"; \
         /usr/local/bin/gmake -C "${DIR}" all || exit 1; \
 done
 ---- Making all in postgis
 gmake[3]: Entering directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/extensions/postgis'
 mkdir -p sql_bits/
 /usr/local/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g'
 ../../postgis/postgis_for_extension.sql > sql_bits/postgis.sql
 cp ../../doc/postgis_comments.sql sql_bits/postgis_comments.sql
 mkdir -p sql_bits
 /usr/local/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g'
 ../../raster/rt_pg/rtpostgis_for_extension.sql > sql_bits/rtpostgis.sql
 ../../utils/create_spatial_ref_sys_config_dump.pl
 ../../spatial_ref_sys.sql > sql_bits/spatial_ref_sys_config_dump.sql
 ../../utils/create_spatial_ref_sys_config_dump.pl: not found
 gmake[3]: *** [Makefile:80: sql_bits/spatial_ref_sys_config_dump.sql]
 Error 127
 gmake[3]: *** Deleting file 'sql_bits/spatial_ref_sys_config_dump.sql'
 gmake[3]: Leaving directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/extensions/postgis'
 gmake[2]: *** [Makefile:26: all] Error 1
 gmake[2]: Leaving directory
 '/usr/home/robe/sources/postgis-2.3.0rc1/extensions'
 gmake[1]: *** [GNUmakefile:16: all] Error 1
 gmake[1]: Leaving directory '/usr/home/robe/sources/postgis-2.3.0rc1'
 *** Error code 2

 Stop.
 make: stopped in /usr/home/robe/sources/postgis-2.3.0rc1
 }}}

 It says that utils/create_spatial_ref_sys_config_dump.pl is not found, but
 I see the file in the utils folder. So it's there. Not sure why I don't
 have the same issue building from SVN.  Though when building from svn, for
 some reason it didn't even try to build the extension (might be because it
 didn't find the comments scripts) and I forgot to install xsltproc.

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