<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>Hello,</p>
    <p>I am trying to build postgis on Solaris 11, but having problems
      with gdal part.</p>
    <p>I have seen people have said they have compiled it, but worst
      luck they have never given any details.</p>
    <p>I have tried old and new versions but no luck. Any ideas?<br>
    </p>
    <tt>gdal 2.1.0<br>
      ==========<br>
    </tt><tt># CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure</tt><br>
    <tt># gmake</tt>
    <p><tt>libtool: compile:  g++
        -I/export/src/databases/gdal-2.1.0/port
        -I/export/src/databases/gdal-2.1.0/gcore
        -I/export/src/databases/gdal-2.1.0/alg
        -I/export/src/databases/gdal-2.1.0/ogr
        -I/export/src/databases/gdal-2.1.0/ogr/ogrsf_frmts
        -I/export/src/databases/gdal-2.1.0/gnm
        -I/export/src/databases/gdal-2.1.0/apps -m64 -Wall -Wextra
        -Winit-self -Wunused-parameter -Wformat -Werror=format-security
        -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla
        -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
        -fno-operator-names -DLERC -I libLERC
        -I/export/src/databases/gdal-2.1.0/port
        -I/export/src/databases/gdal-2.1.0/gcore
        -I/export/src/databases/gdal-2.1.0/alg
        -I/export/src/databases/gdal-2.1.0/ogr
        -I/export/src/databases/gdal-2.1.0/ogr/ogrsf_frmts
        -I/export/src/databases/gdal-2.1.0/gnm
        -I/export/src/databases/gdal-2.1.0/apps -DOGR_ENABLED
        -I/export/src/databases/gdal-2.1.0/port -DGDAL_COMPILATION -c
        marfa_dataset.cpp  -fPIC -DPIC -o ../o/.libs/marfa_dataset.o</tt><br>
      <tt>marfa_dataset.cpp: In member function 'CPLXMLNode*
        GDAL_MRF::GDALMRFDataset::BuildConfig()':</tt><br>
      <tt>marfa_dataset.cpp:1072:14: error: expected unqualified-id
        before numeric constant</tt><br>
      <tt>marfa_dataset.cpp:1072:14: error: expected initializer before
        numeric constant</tt><br>
      <tt>marfa_dataset.cpp:1074:66: error: invalid conversion from
        'int' to 'CPLXMLNode*'</tt><br>
      <tt>marfa_dataset.cpp:1074:66: error:   initializing argument 1 of
        'CPLXMLNode* CPLCreateXMLElementAndValue(CPLXMLNode*, const
        char*, const char*)'</tt><br>
      <tt>gmake[2]: *** [../o/marfa_dataset.lo] Error 1</tt><br>
      <tt>gmake[2]: Leaving directory
        `/export/src/databases/gdal-2.1.0/frmts/mrf'</tt><br>
      <tt>gmake[1]: *** [mrf-install-obj] Error 2</tt><br>
      <tt>gmake[1]: Leaving directory
        `/export/src/databases/gdal-2.1.0/frmts'</tt><br>
      <tt>gmake: *** [frmts-target] Error 2</tt><br>
    </p>
    <br>
    <tt>gdal 1.11.4</tt><tt><br>
      ===========<br>
    </tt><tt># CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure</tt><tt><br>
    </tt><tt># gmake<br>
      <br>
      /bin/sh /export/src/databases/gdal-1.11.4/libtool --mode=compile
      --tag=CC gcc -m64 -DHAVE_SSE_AT_COMPILE_TIME  -Wall
      -Wdeclaration-after-statement 
      -I/export/src/databases/gdal-1.11.4/port
      -I/export/src/databases/gdal-1.11.4/gcore
      -I/export/src/databases/gdal-1.11.4/alg
      -I/export/src/databases/gdal-1.11.4/ogr
      -I/export/src/databases/gdal-1.11.4/ogr/ogrsf_frmts
      -I/export/src/databases/gdal-1.11.4/frmts/vrt -DOGR_ENABLED
      -I/export/src/databases/gdal-1.11.4/port  -c -o gdalserver.lo
      gdalserver.c<br>
      libtool: compile:  gcc -m64 -DHAVE_SSE_AT_COMPILE_TIME -Wall
      -Wdeclaration-after-statement
      -I/export/src/databases/gdal-1.11.4/port
      -I/export/src/databases/gdal-1.11.4/gcore
      -I/export/src/databases/gdal-1.11.4/alg
      -I/export/src/databases/gdal-1.11.4/ogr
      -I/export/src/databases/gdal-1.11.4/ogr/ogrsf_frmts
      -I/export/src/databases/gdal-1.11.4/frmts/vrt -DOGR_ENABLED
      -I/export/src/databases/gdal-1.11.4/port -c gdalserver.c  -fPIC
      -DPIC -o .libs/gdalserver.o<br>
      In file included from /usr/include/stdio.h:15:0,<br>
                       from
      /export/src/databases/gdal-1.11.4/port/cpl_port.h:144,<br>
                       from gdalserver.c:33:<br>
      /usr/include/sys/feature_tests.h:358:2: error: #error "Compiler or
      options invalid; UNIX 03 and POSIX.1-2001 applications     require
      the use of c99"<br>
      gmake[1]: *** [gdalserver.lo] Error 1<br>
      gmake[1]: Leaving directory
      `/export/src/databases/gdal-1.11.4/apps'<br>
      gmake: *** [apps-target] Error 2<br>
      <br>
      <br>
      <br>
      Thanks,<br>
      <br>
    </tt><tt>Andrew</tt><tt><br>
    </tt>
    <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>