<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello...</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I'm attempting to build postgis-2.1.1 on solaris 11.1 and was hoping to find some assistance. I've built postgres(9.3.3 64bit), proj(4.8.0 64bit), geos(3.4.2 64bit), json-c(0.11 64bit), and gdal(1.10.1 64bit), and I point the postgis compilation to these dependencies. The configure script in postgis runs fine, but the compilation trips up in a place that has me confused.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The following is my configure line:<br><br>CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure \<br>
--prefix=$HOME/postgis \<br> --with-geosconfig=$HOME/postgis/bin/geos-config \<br> --with-projdir=$HOME/postgis \<br> --with-gdalconfig=$HOME/postgis/bin/gdal-config \<br> --with-jsondir=$HOME/postgis</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="font-family:arial,sans-serif;font-size:13px">The following is the output of the configure script:</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">PostGIS is now configured for i386-pc-solaris2.11</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> -------------- Compiler Info ------------- </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> C compiler: gcc -m64</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> C++ compiler: g++ -m64</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> SQL preprocessor: </span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> -------------- Dependencies -------------- </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> GEOS config: /export/home/pgsql/postgis/</span><span style="font-family:arial,sans-serif;font-size:13px">bin/geos-config</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> GEOS version: 3.4.2</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> GDAL config: /export/home/pgsql/postgis/</span><span style="font-family:arial,sans-serif;font-size:13px">bin/gdal-config</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> GDAL version: 1.10.1</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> PostgreSQL config: /export/home/pgsql/pgsql/bin/</span><span style="font-family:arial,sans-serif;font-size:13px">pg_config</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> PostgreSQL version: PostgreSQL 9.3.3</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> PROJ4 version: 48</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> Libxml2 config: /usr/bin/xml2-config</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> Libxml2 version: 2.7.6</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> JSON-C support: yes</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> PostGIS debug level: 0</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> Perl: /usr/bin/perl</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> --------------- Extensions --------------- </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> PostGIS Raster: enabled</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> PostGIS Topology: enabled</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> SFCGAL support: disabled</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> -------- Documentation Generation -------- </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> xsltproc: /usr/bin/xsltproc</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> xsl style sheets: /usr/share/sgml/docbook/xsl-</span><span style="font-family:arial,sans-serif;font-size:13px">stylesheets</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> dblatex: </span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> convert: </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> mathml2.dtd: </span><a href="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://www.w3.org/Math/DTD/mathml2/mathml2.dtd</a><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">When I run the compilation with a simple "gmake" invocation... lots of compilation happens, but after some time it stops with an error. The following is the end of the output:</div>
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">gcc -m64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fPIC -shared -o </span><a href="http://postgis-2.1.so/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis-2.1.so</a><span style="font-family:arial,sans-serif;font-size:13px">postgis_module.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_dumppoints.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o gserialized_estimate.o geography_inout.o geography_btree.o geography_measurement.o geography_measurement_trees.o geometry_inout.o -L/export/home/pgsql/pgsql-9.</span><span style="font-family:arial,sans-serif;font-size:13px">3.3/lib -Wl,-R'/export/home/pgsql/</span><span style="font-family:arial,sans-serif;font-size:13px">pgsql-9.3.3/lib' ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a -L/export/home/pgsql/postgis/</span><span style="font-family:arial,sans-serif;font-size:13px">lib -L/export/home/pgsql/postgis/</span><span style="font-family:arial,sans-serif;font-size:13px">lib -lgeos_c -lproj -L/export/home/pgsql/postgis/</span><span style="font-family:arial,sans-serif;font-size:13px">lib -ljson-c -lxml2 </span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">I../libpgcommon </span><a href="http://postgis.sql.in/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis.sql.in</a><span style="font-family:arial,sans-serif;font-size:13px"> | grep -v '^#' | \</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/</span><span style="font-family:arial,sans-serif;font-size:13px">postgis-2.1'g" > postgis.sql</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">/bin/sh: line 1: I../libpgcommon: not found</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">/usr/bin/perl ../utils/</span><a href="http://create_undef.pl/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">create_undef.pl</a><span style="font-family:arial,sans-serif;font-size:13px"> postgis.sql 93 > uninstall_postgis.sql</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">cat postgis_drop_before.sql postgis.sql postgis_drop_after.sql ></span><a href="http://postgis_upgrade_20_21.sql.in/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis_upgrade_20_21.sql.in</a><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">/usr/bin/perl ../utils/</span><a href="http://postgis_proc_upgrade.pl/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis_proc_upgrade.pl</a><span style="font-family:arial,sans-serif;font-size:13px"> </span><a href="http://postgis_upgrade_20_21.sql.in/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis_upgrade_20_21.sql.in</a><span style="font-family:arial,sans-serif;font-size:13px"> 2.0 > postgis_upgrade_20_21.sql</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">Unable to locate target new version number in </span><a href="http://postgis_upgrade_20_21.sql.in/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">postgis_upgrade_20_21.sql.in</a><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">gmake[1]: *** [postgis_upgrade_20_21.sql] Error 255</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">gmake[1]: *** Deleting file `postgis_upgrade_20_21.sql'</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">gmake[1]: Leaving directory `/export/home/pgsql/src/</span><span style="font-family:arial,sans-serif;font-size:13px">postgis-2.1.1/postgis'</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">gmake: *** [all] Error 1</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">I'm not sure if the problem has something to do with libpqcommon or perl or sql scripts. In looking at the <a href="http://postgis_proc_upgrade.pl/" target="_blank">postgis_proc_upgrade.pl</a> script, it appears to be looking for "INSTALL VERSION" string or something to populate the to_version, but there is no instance of INSTALL VERSION in the sql script that is being processed.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Anybody have any idea how I could further troubleshoot this?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks!</div></div>