[geos-devel] Building Geos 64-bit using Oracle Developer Studio 12.5 on Solaris11
Andrew Watkins
andrew at dcs.bbk.ac.uk
Fri Jul 8 04:52:56 PDT 2016
I thought I would report on my work on building geos-3.5.0 on Solaris 11
using Oracle Developer Studio 12.5 (formally Sun Studio12)
I have now compiled it so I will report back with my findings and ask a
couple of questions.
- I used the following tickets for my starting points:
"Need to compile the libGeos using Sun Studio12 on Solaris10"
https://trac.osgeo.org/geos/ticket/224#no1
Updated the patches in the above to work with 3.5.0 a few modifications
due to code alterations in original
"GEOS build fails on linking on Solaris"
https://trac.osgeo.org/geos/ticket/331
Add the LIBS="-lm " to configure from the above ticket
Then I also addeed:
Add the LIBS="-lm -lCrun -lCstd" to configure
Added "__C99FEATURES__" so C99 support is added to configure
So configuration becomes
# ./configure CC='cc' CXX='CC -D__C99FEATURES__' CPPFLAGS=-m64
CXXFLAGS=-m64 LIBS='-lm -lCrun -lCstd' --disable-inline --enable-cassert
Altered LIBS in geos-3.5.0/tests/perf/Makefile.in "LIBS =
$(top_builddir)/src/libgeos.la"
With all the above I got nearly to compile, but I get
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
CC -D__C99FEATURES__ -DHAVE_CONFIG_H -I. -I../include -I../include/geos
-I../include -m64 -pedantic -Wall -ansi -Wno-long-long -m64 -c -o
example.o example.cpp
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise
/bin/sh ../libtool --tag=CXX --mode=link CC -D__C99FEATURES__
-pedantic -Wall -ansi -Wno-long-long -m64 -o example example.o
../src/libgeos.la ../src/libgeos.la
libtool: link: CC -D__C99FEATURES__ -pedantic -Wall -ansi -Wno-long-long
-m64 -o .libs/example example.o ../src/.libs/libgeos.so -lm -lCrun
-lCstd -R/usr/local/postgres/geoss/lib
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise
ld: fatal: unrecognized option '-n'
ld: fatal: use the '-z help' option for usage information
gmake[2]: *** [example] Error 2
gmake[2]: Leaving directory `/tmp/geos-3.5.0/doc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/geos-3.5.0'
gmake: *** [all] Error 2
bash-4.1$ GEOS build fails on linking on Solaris
The reason is "-ansi" is not a flag with CC, but I am not sure how to
clearly remove it. I did a dirty version by removing it from configure!
if test yes = "$dummy_cv_ansi"; then
WARNFLAGS="$WARNFLAGS -ansi"
else
:
fi
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 *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20160708/3c3cd224/attachment.html>
More information about the geos-devel
mailing list