gmt-5 Solaris acomp failed

Wolfgang Cohrs <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Hi,
I'm trying to compile GMT-5.1.1  SunOS 5.10 Generic_147441-15 i86pc i386 
i86pc


/opt/GMT-5.1.1/src/gmt-5.1.1/build>cmake ..
-- Searching dependent libraries. This may take a few minutes...
-- Could NOT find FFTW3 (missing:  FFTW3F_LIBRARY FFTW3F_VERSION_RECENT)
-- User variable GMT_OPENMP not set: disabling OpenMP.
-- Performing Test HAVE_TRADITIONAL_CPP
-- Performing Test HAVE_TRADITIONAL_CPP - Failed
-- Using CFLAGS = ' -g -xO2 -DNDEBUG'
*  Options:
*  Found GSHHG database       : /opt/GMT-5.1.1/src/gshhg-gmt-2.3.0 (2.3.0)
*  Found DCW-GMT database     : /opt/GMT-5.1.1/src/dcw-gmt-1.1.1
*  NetCDF library             : /opt/csw/lib/libnetcdf.so
*  NetCDF include dir         : /opt/csw/include
*  GDAL library               : /opt/csw/gxx/lib/libgdal.so
*  GDAL include dir           : /opt/csw/gxx/include
*  FFTW library               : FFTW3F_LIBRARY-NOTFOUND
*  FFTW include dir           : /opt/csw/include
*  Accelerate Framework       :
*  Regex support              : PCRE (/opt/csw/lib/libpcre.so)
*  ZLIB library               : /usr/lib/libz.so
*  ZLIB include dir           : /usr/include
*  License restriction        : no
*  Triangulation method       : Shewchuk
*  Build mode                 : shared
*  Build GMT core             : always [libgmt.so]
*  Build PSL library          : always [libpsl.so]
*  Build GMT supplements      : yes [supplements.so]
*  Build proto supplements    : none
*
*  Locations:
*  Installing GMT in          : /opt/GMT-5.1.1
*  GMT_DATADIR                : /opt/GMT-5.1.1/share
*  GMT_DOCDIR                 : /opt/GMT-5.1.1/share/doc
*  GMT_MANDIR                 : /opt/GMT-5.1.1/share/man
-- Configuring done
CMake Warning at src/CMakeLists.txt:465 (add_executable):
   Cannot generate a safe runtime search path for target gmt because 
files in
   some directories may conflict with libraries in implicit directories:

     runtime library [libz.so.1] in /usr/lib may be hidden by files in:
       /opt/csw/lib

   Some of these libraries may not be found correctly.



make
[  3%] Generating gmt_colornames.h, gmt_color_rgb.h
[  3%] Generating gmt_datums.h
[  3%] Generating gmt_ellipsoids.h
[  3%] Generating gmt_keycases.h, gmt_keywords.h
[  3%] Generating gmtmath.h, gmtmath_op.h, gmtmath_explain.h
[  3%] Generating grdmath.h, grdmath_op.h, grdmath_explain.h
[  6%] Generating gmt_dimensions.h
[  6%] Built target gen_gmt_headers
[  6%] Building C object src/CMakeFiles/pslib.dir/pslib.c.o
[  9%] Building C object src/CMakeFiles/pslib.dir/common_string.c.o
[  9%] Building C object src/CMakeFiles/pslib.dir/common_runpath.c.o
"/opt/GMT-5.1.1/src/gmt-5.1.1/src/common_runpath.c", line 229: warning: 
argument #1 is incompatible with prototype:
         prototype: pointer to void : "/usr/include/dlfcn.h", line 100
         argument : pointer to function(pointer to char) returning 
pointer to char
Linking C shared library libpsl.so
[ 12%] Built target pslib
Scanning dependencies of target gmtlib
[ 12%] Building C object src/CMakeFiles/gmtlib.dir/common_sighandler.c.o
"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid 
only in a c99 compilation environment."
cc: acomp failed for /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c
*** Error code 2
The following command caused the error:
cd /opt/GMT-5.1.1/src/gmt-5.1.1/build/src && 
/opt/solarisstudio12.3/bin/cc  -DLIBRARY_EXPORTS -g -xO2 -DNDEBUG -KPIC 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/src -I/opt/csw/include 
-I/opt/csw/gxx/include -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/gshhg 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/img 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/meca 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/mgd77 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/misc 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/potential 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/segy 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/spotter 
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/x2sys -o 
CMakeFiles/gmtlib.dir/common_sighandler.c.o   -c 
/opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c
make: Fatal error: Command failed for target 
`src/CMakeFiles/gmtlib.dir/common_sighandler.c.o'
Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
*** Error code 1
The following command caused the error:
make -f src/CMakeFiles/gmtlib.dir/build.make 
src/CMakeFiles/gmtlib.dir/build
make: Fatal error: Command failed for target 
`src/CMakeFiles/gmtlib.dir/all'
Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'

-- 
Wolfgang Cohrs
Stiftung Alfred-Wegener-Institut fuer Polar- und Meeresforschung
Postfach 120161 D 27515 Bremerhaven
http://www.awi.de/People/show?wcohrs
http://www.awi.de/de/go/PolarMet

To unsubscribe, send the message "signoff gmt-help" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.