[postgis-devel] Building Postgris on Solaris 11
Andrew Watkins
andrew at dcs.bbk.ac.uk
Tue Jul 5 04:29:06 PDT 2016
On 06/30/16 16:28, Andrew Watkins wrote:
>
>
> Hello folks,
>
>
> Beening battling my way through Postgis on Solaris and I am getting
> close but still getting errors. Here is the relevant information and
> any pointers:
>
> postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64
> -DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64
> -L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib
> -L/usr/local/postgres/proj4/lib" \
> --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
> --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
> --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
> --with-projdir=/usr/local/postgres/proj4
>
> ...
>
> PostGIS is now configured for i386-pc-solaris2.11
>
> -------------- Compiler Info -------------
> C compiler: /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
> SQL preprocessor: /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P
>
> -------------- Dependencies --------------
> GEOS config: /usr/local/postgres/geos/bin/geos-config
> GEOS version: 3.5.0
> GDAL config: /usr/local/postgres/gdal/bin/gdal-config
> GDAL version: 2.1.0
> PostgreSQL config: /usr/local/postgres/pgdg/bin/64/pg_config
> PostgreSQL version: PostgreSQL 9.5.3
> PROJ4 version: 49
> Libxml2 config: /usr/bin/xml2-config
> Libxml2 version: 2.9.2
> JSON-C support: yes
> PCRE support: no
> PostGIS debug level: 0
> Perl: /usr/bin/perl
>
> --------------- Extensions ---------------
> PostGIS Raster: enabled
> PostGIS Topology: enabled
> SFCGAL support: disabled
> Address Standardizer support: disabled
>
> -------- Documentation Generation --------
> xsltproc: /usr/bin/xsltproc
> xsl style sheets:
> dblatex:
> convert:
> mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
>
> # make
>
> /usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql
> UNUSED > postgis_proc_set_search_path.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
> legacy.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
> /usr/bin/perl ../utils/create_undef.pl legacy.sql 95 >
> uninstall_legacy.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
> legacy_minimal.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
> legacy_minimal.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
> legacy_gist.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
> legacy_gist.sql
> make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
> ---- Making all in regress
> make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
> ---- Making all in raster
> make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
> make -C rt_core
> make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
> /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)" -KPIC -DPIC
> -I../../liblwgeom -I/usr/local/postgres/gdal/include
> -I/usr/local/postgres/proj4/include
> -I/usr/local/postgres/geos/include -c -o rt_util.o rt_util.c
> "/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning:
> enumerator value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning:
> enumerator value overflows INT_MAX (2147483647)
> "librtcore.h", line 151: warning: macro redefined: __attribute__
> "librtcore.h", line 245: syntax error before or at: (
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: function prototype parameters must
> have types
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: syntax error: empty declaration
> "/usr/include/assert.h", line 23: syntax error before or at: (
> "/usr/include/assert.h", line 23: function cannot return function or array
> "/usr/include/assert.h", line 23: function cannot return function or array
> "rt_util.c", line 142: warning: statement not reached
> "rt_util.c", line 173: warning: statement not reached
> cc: acomp failed for rt_util.c
> make[2]: *** [rt_util.o] Error 2
> make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
> make[1]: *** [corelib] Error 2
> make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
> make: *** [all] Error 1
>
> I have tried it with gcc but I get the same error.
>
>
Well, it looks like people don't use Solaris for PostGIS or they don't
share there findings.
I do like sharing here are is my blog entries for compiling PostGIS on
Solaris 11
http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html
Only bad news is that I have not managed to get all modules working, but
it is a start.
Anyway, hope it helps others.
--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20160705/2f125351/attachment.html>
More information about the postgis-devel
mailing list