Opened 8 years ago

Closed 8 years ago

#3639 closed defect (fixed)

../../utils/create_spatial_ref_sys_config_dump.pl: not found on FreeBSD

Reported by: robe Owned by: robe
Priority: high Milestone: PostGIS 2.2.3
Component: postgis Version: master
Keywords: freebsd Cc:

Description

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,@SRID_MAXIMUM@,999999,g;s,@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.

Change History (6)

comment:1 by robe, 8 years ago

Keywords: freebsd added

comment:2 by robe, 8 years ago

Summary: Can't build from tar ball on FreeBSD../../utils/create_spatial_ref_sys_config_dump.pl: not found on FreeBSD

okeedoke, after doing:

pkg install libxslt

then proceeding to compile from svn, I get the same error.

gmake[2]: Leaving directory '/usr/home/robe/sources/postgis-2.3/doc'
---- Making all in extensions
gmake[2]: Entering directory '/usr/home/robe/sources/postgis-2.3/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/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/extensions/postgis'
gmake[2]: *** [Makefile:26: all] Error 1
gmake[2]: Leaving directory '/usr/home/robe/sources/postgis-2.3/extensions'
gmake[1]: *** [GNUmakefile:16: all] Error 1
gmake[1]: Leaving directory '/usr/home/robe/sources/postgis-2.3'
*** Error code 2

So before it's just my svn install wasn't trying to build extension since comments was missing.

so it must be the ../ thing. Anyone on FreeBSD can tell me what I'm doing wrong. Haven't had this issue compiling on windows under mingw.

comment:3 by robe, 8 years ago

Okay I think I fixed this at 2.3 for r15134. At least works on my FreeBSD box now.

I'll back port to 2.2 if the bots give their thumbs up.

comment:4 by robe, 8 years ago

Owner: changed from pramsey to robe

comment:5 by robe, 8 years ago

Milestone: PostGIS 2.3.0PostGIS 2.2.3

comment:6 by robe, 8 years ago

Resolution: fixed
Status: newclosed

In 15135:

../../utils/create_spatial_ref_sys_config_dump.pl: not found on FreeBSD Add $PERL (my freebsd doesn't work without it)
Closes #3639 for PostGIS 2.2.3

Note: See TracTickets for help on using tickets.