<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>Hello folks,</p>
    <p><br>
    </p>
    <p>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:</p>
    <p><tt>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"
        \</tt><tt><br>
      </tt><tt>   
        --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \</tt><tt><br>
      </tt><tt>   
        --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \</tt><tt><br>
      </tt><tt>   
        --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \</tt><tt><br>
      </tt><tt>    --with-projdir=/usr/local/postgres/proj4</tt></p>
    <p><tt>...</tt><tt><br>
      </tt></p>
    <p><tt>  PostGIS is now configured for i386-pc-solaris2.11</tt><tt><br>
      </tt><tt><br>
      </tt><tt> -------------- Compiler Info ------------- </tt><tt><br>
      </tt><tt>  C compiler:           /opt/studio12u1/bin/cc -m64
        -DNAN="(0.0/0.0)"</tt><tt><br>
      </tt><tt>  SQL preprocessor:     /usr/gcc/4.5/bin/cpp
        -traditional-cpp -w -P</tt><tt><br>
      </tt><tt><br>
      </tt><tt> -------------- Dependencies -------------- </tt><tt><br>
      </tt><tt>  GEOS config:         
        /usr/local/postgres/geos/bin/geos-config</tt><tt><br>
      </tt><tt>  GEOS version:         3.5.0</tt><tt><br>
      </tt><tt>  GDAL config:         
        /usr/local/postgres/gdal/bin/gdal-config</tt><tt><br>
      </tt><tt>  GDAL version:         2.1.0</tt><tt><br>
      </tt><tt>  PostgreSQL config:   
        /usr/local/postgres/pgdg/bin/64/pg_config</tt><tt><br>
      </tt><tt>  PostgreSQL version:   PostgreSQL 9.5.3</tt><tt><br>
      </tt><tt>  PROJ4 version:        49</tt><tt><br>
      </tt><tt>  Libxml2 config:       /usr/bin/xml2-config</tt><tt><br>
      </tt><tt>  Libxml2 version:      2.9.2</tt><tt><br>
      </tt><tt>  JSON-C support:       yes</tt><tt><br>
      </tt><tt>  PCRE support:         no</tt><tt><br>
      </tt><tt>  PostGIS debug level:  0</tt><tt><br>
      </tt><tt>  Perl:                 /usr/bin/perl</tt><tt><br>
      </tt><tt><br>
      </tt><tt> --------------- Extensions --------------- </tt><tt><br>
      </tt><tt>  PostGIS Raster:       enabled</tt><tt><br>
      </tt><tt>  PostGIS Topology:     enabled</tt><tt><br>
      </tt><tt>  SFCGAL support:       disabled</tt><tt><br>
      </tt><tt>  Address Standardizer support:       disabled</tt><tt><br>
      </tt><tt><br>
      </tt><tt> -------- Documentation Generation -------- </tt><tt><br>
      </tt><tt>  xsltproc:             /usr/bin/xsltproc</tt><tt><br>
      </tt><tt>  xsl style sheets:     </tt><tt><br>
      </tt><tt>  dblatex:              </tt><tt><br>
      </tt><tt>  convert:              </tt><tt><br>
      </tt><tt>  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></tt><tt><br>
      </tt></p>
    <p><tt># make</tt></p>
    <p><tt>/usr/bin/perl ../utils/postgis_proc_set_search_path.pl
        postgis.sql UNUSED > postgis_proc_set_search_path.sql</tt><tt><br>
      </tt><tt>/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P
        -I../libpgcommon legacy.sql.in | grep -v '^#' | \</tt><tt><br>
      </tt><tt>/usr/bin/perl -lpe
        "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql</tt><tt><br>
      </tt><tt>/usr/bin/perl ../utils/create_undef.pl legacy.sql 95 >
        uninstall_legacy.sql</tt><tt><br>
      </tt><tt>/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P
        -I../libpgcommon legacy_minimal.sql.in | grep -v '^#' | \</tt><tt><br>
      </tt><tt>/usr/bin/perl -lpe
        "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
        legacy_minimal.sql</tt><tt><br>
      </tt><tt>/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P
        -I../libpgcommon legacy_gist.sql.in | grep -v '^#' | \</tt><tt><br>
      </tt><tt>/usr/bin/perl -lpe
        "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy_gist.sql</tt><tt><br>
      </tt><tt>make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'</tt><tt><br>
      </tt><tt>---- Making all in regress</tt><tt><br>
      </tt><tt>make[1]: Entering directory `/tmp/postgis-2.2.2/regress'</tt><tt><br>
      </tt><tt>make[1]: Nothing to be done for `all'.</tt><tt><br>
      </tt><tt>make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'</tt><tt><br>
      </tt><tt>---- Making all in raster</tt><tt><br>
      </tt><tt>make[1]: Entering directory `/tmp/postgis-2.2.2/raster'</tt><tt><br>
      </tt><tt>make -C rt_core</tt><tt><br>
      </tt><tt>make[2]: Entering directory
        `/tmp/postgis-2.2.2/raster/rt_core'</tt><tt><br>
      </tt><tt>/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</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 415:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 416:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 417:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 418:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 419:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 420:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"/usr/local/postgres/gdal/include/ogr_core.h", line 421:
        warning: enumerator value overflows INT_MAX (2147483647)</tt><tt><br>
      </tt><tt>"librtcore.h", line 151: warning: macro redefined:
        __attribute__</tt><tt><br>
      </tt><tt>"librtcore.h", line 245: syntax error before or at: (</tt><tt><br>
      </tt><tt>"librtcore.h", line 244: function cannot return function
        or array</tt><tt><br>
      </tt><tt>"librtcore.h", line 245: warning: function prototype
        parameters must have types</tt><tt><br>
      </tt><tt>"librtcore.h", line 244: function cannot return function
        or array</tt><tt><br>
      </tt><tt>"librtcore.h", line 245: warning: syntax error:  empty
        declaration</tt><tt><br>
      </tt><tt>"/usr/include/assert.h", line 23: syntax error before or
        at: (</tt><tt><br>
      </tt><tt>"/usr/include/assert.h", line 23: function cannot return
        function or array</tt><tt><br>
      </tt><tt>"/usr/include/assert.h", line 23: function cannot return
        function or array</tt><tt><br>
      </tt><tt>"rt_util.c", line 142: warning: statement not reached</tt><tt><br>
      </tt><tt>"rt_util.c", line 173: warning: statement not reached</tt><tt><br>
      </tt><tt>cc: acomp failed for rt_util.c</tt><tt><br>
      </tt><tt>make[2]: *** [rt_util.o] Error 2</tt><tt><br>
      </tt><tt>make[2]: Leaving directory
        `/tmp/postgis-2.2.2/raster/rt_core'</tt><tt><br>
      </tt><tt>make[1]: *** [corelib] Error 2</tt><tt><br>
      </tt><tt>make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'</tt><tt><br>
      </tt><tt>make: *** [all] Error 1</tt><br>
    </p>
    <p>I have tried it with gcc but I get the same error.</p>
    <p>Thanks,</p>
    <p>Andrew<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>