<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      Paul,<br>
      <br>
      I did see that I tried it but still gave me problems. <br>
      May be I should revisit it to see if it can solve other problems.
      <br>
      <br>
      Thanks,<br>
      <br>
      Andrew<br>
      <br>
      <br>
      On 07/05/16 13:04, Paul Ramsey wrote:<br>
    </div>
    <blockquote
cite="mid:CACowWR0ruyftYsMhH3JfbJ-tEoRtV8vKrXLHY_sayTJTR7y0tw@mail.gmail.com"
      type="cite">
      <pre wrap="">I should have sent this at the time, but it didn't answer your
proximate problem since you were building w/ the Sun compiler...

<a class="moz-txt-link-freetext" href="https://github.com/pramsey/suite-solaris-build/blob/master/pgsql-postgis-gdal-build.sh">https://github.com/pramsey/suite-solaris-build/blob/master/pgsql-postgis-gdal-build.sh</a>

P.

On Tue, Jul 5, 2016 at 4:29 AM, Andrew Watkins <a class="moz-txt-link-rfc2396E" href="mailto:andrew@dcs.bbk.ac.uk"><andrew@dcs.bbk.ac.uk></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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:          <a class="moz-txt-link-freetext" href="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">http://www.w3.org/Math/DTD/mathml2/mathml2.dtd</a>

# 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
<a class="moz-txt-link-freetext" href="http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html">http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html</a>

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 *
* <a class="moz-txt-link-freetext" href="http://notallmicrosoft.blogspot.com">http://notallmicrosoft.blogspot.com</a> *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *




_______________________________________________
postgis-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/postgis-devel">http://lists.osgeo.org/mailman/listinfo/postgis-devel</a>
</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
postgis-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/postgis-devel">http://lists.osgeo.org/mailman/listinfo/postgis-devel</a>
</pre>
    </blockquote>
    <br>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* <a class="moz-txt-link-freetext" href="http://notallmicrosoft.blogspot.com">http://notallmicrosoft.blogspot.com</a> *
* UKOUG Systems SIG Chair * 
* UKOUG Tech committee * 
* tel: 020 7631 6720 *

 

</pre>
  </body>
</html>