I have it up and running with gcc, but I want to see if I can get it working with Oracle Developer Studio 12.

But, I was taken back that it failed at the first compile line.

Cheers,

Andrew

On 07/08/16 16:25, Michael Smith wrote:
I've only compiled GDAL on solaris using the gcc compiler. You might want to try that.

Mike

--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers

From: gdal-dev <gdal-dev-boun...@lists.osgeo.org <mailto:gdal-dev-boun...@lists.osgeo.org>> on behalf of Andrew Watkins <and...@dcs.bbk.ac.uk <mailto:and...@dcs.bbk.ac.uk>>
Date: Friday, July 8, 2016 at 11:17 AM
To: <gdal-dev@lists.osgeo.org <mailto:gdal-dev@lists.osgeo.org>>
Subject: [gdal-dev] Building gdal with Oracle Developer Studio 12.5 on solaris 11

    Hello,

    I know it crazy, but any pointers would be great.

I am trying to build GDAL 2.1 using Oracle Developer Studio 12.5 (formally Sun Studio12) on Solaris 11, but it fails at first CC.

    ./configure CC='cc -m64' CXX='CC -m64' CPPFLAGS=-m64 CXXFLAGS=-m64
    --without-libtool

    GDAL is now configured for x86_64-pc-solaris2.11

      Installation directory:    /usr/local
      C compiler:                cc -m64 -g -fPIC
      C++ compiler:              CC -m64 -m64 -fPIC

      LIBTOOL support:           no

      LIBZ support:              external
      LIBLZMA support:           no
      cryptopp support:          no
      GRASS support:             no
      CFITSIO support:           no
      PCRaster support:          internal
      LIBPNG support:            external
      DDS support:               no
      GTA support:               no
      LIBTIFF support:           internal (BigTIFF=yes)
      LIBGEOTIFF support:        internal
      LIBJPEG support:           internal
      12 bit JPEG:               yes
      12 bit JPEG-in-TIFF:       yes
      LIBGIF support:            internal
      OGDI support:              no
      HDF4 support:              no
      HDF5 support:              no
      Kea support:               no
      NetCDF support:            no
      Kakadu support:            no
      JasPer support:            no
      OpenJPEG support:          no
      ECW support:               no
      MrSID support:             no
      MrSID/MG4 Lidar support:   no
      MSG support:               no
      GRIB support:              yes
      EPSILON support:           no
      WebP support:              no
      cURL support (wms/wcs/...):yes
      PostgreSQL support:        no
      MRF support:               yes
      MySQL support:             no
      Ingres support:            no
      Xerces-C support:          no
      NAS support:               no
      Expat support:             yes
      libxml2 support:           yes
      Google libkml support:     no
      ODBC support:              no
      PGeo support:              no
      FGDB support:              no
      MDB support:               no
      PCIDSK support:            internal
      OCI support:               no
      GEORASTER support:         no
      SDE support:               no
      Rasdaman support:          no
      DODS support:              no
      SQLite support:            yes
      PCRE support:              no
      SpatiaLite support:        no
      DWGdirect support          no
      INFORMIX DataBlade support:no
      GEOS support:              no
      QHull support:             internal
      Poppler support:           no
      Podofo support:            no
      PDFium support:            no
      OpenCL support:            no
      Armadillo support:         no
      FreeXL support:            no
      SOSI support:              no
      MongoDB support:           no


      SWIG Bindings:             no

      Statically link PROJ.4:    no
      enable GNM building:       no
      enable pthread support:    yes
      enable POSIX iconv support:yes
      hide internal symbols:     no

    $ gmake
    (cd port; gmake)
    gmake[1]: Entering directory `/tmp/gdal-2.1.0/port'
    CC -m64 -I/tmp/gdal-2.1.0/port -I/tmp/gdal-2.1.0/gcore
    -I/tmp/gdal-2.1.0/alg -I/tmp/gdal-2.1.0/ogr
    -I/tmp/gdal-2.1.0/ogr/ogrsf_frmts -I/tmp/gdal-2.1.0/gnm
    -I/tmp/gdal-2.1.0/apps -m64 -fPIC  -Wall -Wextra -Winit-self
    -Wunused-parameter -Wformat -Werror=format-security
    -Wno-format-nonliteral -Wshorten-64-to-32 -Wlogical-op -Wshadow
    -Werror=vla -Wnull-dereference -Wduplicated-cond
    -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -DOGR_ENABLED -m64 -I/tmp/gdal-2.1.0/port -DGDAL_COMPILATION
    -DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2
    -DUSE_ONLY_CRYPTODLL_ALG -c -o cpl_conv.o cpl_conv.cpp
    CC: Warning: Option -fno-operator-names passed to ld, if ld is
    invoked, ignored otherwise
    "cpl_conv.cpp", line 225: Error: The function "snprintf" must have
    a prototype.
    "cpl_conv.cpp", line 919: Error: The function "atoll" must have a
    prototype.
    "cpl_conv.cpp", line 942: Error: The function "atoll" must have a
    prototype.
    "cpl_conv.cpp", line 965: Error: The function "snprintf" must have
    a prototype.
    "cpl_conv.cpp", line 994: Error: The function "atoll" must have a
    prototype.
    "cpl_conv.cpp", line 1056: Error: The function "strncasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 1255: Error: The function "snprintf" must
    have a prototype.
    "cpl_conv.cpp", line 1303: Error: The function "snprintf" must
    have a prototype.
    "cpl_conv.cpp", line 1342: Error: The function "snprintf" must
    have a prototype.
    "cpl_conv.cpp", line 1348: Error: The function "strncasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 1349: Error: The function "snprintf" must
    have a prototype.
    "cpl_conv.cpp", line 1940: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 1942: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2131: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2131: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2137: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2381: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2381: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2521: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2521: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2591: Error: The function "symlink" must have
    a prototype.
    "cpl_conv.cpp", line 2612: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2613: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2655: Error: The function "strcasecmp" must
    have a prototype.
    "cpl_conv.cpp", line 2656: Error: The function "strcasecmp" must
    have a prototype.
    Compilation aborted, too many Error messages.
    gmake[1]: *** [cpl_conv.o] Error 2
    gmake[1]: Leaving directory `/tmp/gdal-2.1.0/port'
    gmake: *** [port-target] Error 2

    Thanks,

    Andrew


-- Andrew Watkins * Birkbeck, University of London * Computer Science *
    *http://notallmicrosoft.blogspot.com  *
    * UKOUG Systems SIG Chair *
    * UKOUG Tech committee *
    * tel: 020 7631 6720 *

    _______________________________________________ gdal-dev mailing
    list gdal-dev@lists.osgeo.org <mailto:gdal-dev@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to