[geos-devel] Re: [GEOS] #224: Need to compile the libGeos using Sun Studio12 on Solaris10

GEOS geos-trac at osgeo.org
Fri Feb 12 10:32:30 EST 2010


#224: Need to compile the libGeos using Sun Studio12 on Solaris10
-------------------------------+--------------------------------------------
 Reporter:  satyajitt          |        Owner:  geos-devel at lists.osgeo.org
     Type:  enhancement        |       Status:  new                       
 Priority:  blocker            |    Milestone:  3.3.0                     
Component:  Core               |      Version:  svn-trunk                 
 Severity:  Significant        |   Resolution:                            
 Keywords:  sun,solaris,sparc  |  
-------------------------------+--------------------------------------------
Old description:

> We are trying to compile the libGeos using Sun Studio12 (thats the need).
> Any help with the below would be appreciated. Thanks in advance.
>
> In ConvexHull.cpp:
>
> 1) Line 272, sort(pts.begin(), pts.end(), RadiallyLessThen(pts[0]));
> Name-space std missing std::sort(pts.begin(), pts.end(),
> RadiallyLessThen(pts[0]));
>
> 2) Line 167, dest.erase( unique(dest.begin(),dest.end()), dest.end() );
> Name-space std missing dest.erase( std::unique(dest.begin(),dest.end()),
> dest.end() );
>
> 3) After these changes, the following error appears:
>
> CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored
> otherwise
> CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored
> otherwise
> CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored
> otherwise
> CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked,
> ignored otherwise
> "../../source/headers/geos/platform.h", line 59: Warning: #warning "Could
> not find 64bit integer definition!".
> "../../source/headers/geos/geom/Coordinate.inl", line 140: Warning: Shift
> count is too large.
> "ConvexHull.cpp", line 122: Warning: inputPts hides
> geos::algorithm::ConvexHull::inputPts.
> "ConvexHull.cpp", line 161: Warning: inputPts hides
> geos::algorithm::ConvexHull::inputPts.
> "ConvexHull.cpp", line 210: Error: Could not find a match for
> std::vector<const
> geos::geom::Coordinate*>::assign(__rwstd::__rb_tree<const
> geos::geom::Coordinate*, const geos::geom::Coordinate*,
> __rwstd::__ident<const geos::geom::Coordinate*, const
> geos::geom::Coordinate*>, geos::geom::CoordinateLessThen,
> std::allocator<const geos::geom::Coordinate*>>::const_iterator,
> __rwstd::__rb_tree<const geos::geom::Coordinate*, const
> geos::geom::Coordinate*, __rwstd::__ident<const geos::geom::Coordinate*,
> const geos::geom::Coordinate*>, geos::geom::CoordinateLessThen,
> std::allocator<const geos::geom::Coordinate*>>::const_iterator) needed in
> geos::algorithm::ConvexHull::reduce(std::vector<const
> geos::geom::Coordinate*>&).
> 1 Error(s) and 4 Warning(s) detected.
> *** Error code 1
> make: Fatal error: Command failed for target `ConvexHull.lo'
>
> Unable to build on either x86, amd64 or SPARC

New description:

 We are trying to compile the libGeos using Sun Studio12 (thats the need).
 Any help with the below would be appreciated. Thanks in advance.

 In ConvexHull.cpp:

 1) Line 272,
 {{{
 sort(pts.begin(), pts.end(), RadiallyLessThen(pts[0]));
 }}}
 Name-space std missing
 {{{
 std::sort(pts.begin(), pts.end(), RadiallyLessThen(pts[0]));
 }}}

 2) Line 167,
 {{{
 dest.erase( unique(dest.begin(),dest.end()), dest.end() );
 }}}
 Name-space std missing
 {{{
 dest.erase( std::unique(dest.begin(),dest.end()), dest.end() );
 }}}

 3) After these changes, the following error appears:

 {{{
 CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored
 otherwise
 CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored
 otherwise
 CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored
 otherwise
 CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked, ignored
 otherwise
 "../../source/headers/geos/platform.h", line 59: Warning: #warning "Could
 not find 64bit integer definition!".
 "../../source/headers/geos/geom/Coordinate.inl", line 140: Warning: Shift
 count is too large.
 "ConvexHull.cpp", line 122: Warning: inputPts hides
 geos::algorithm::ConvexHull::inputPts.
 "ConvexHull.cpp", line 161: Warning: inputPts hides
 geos::algorithm::ConvexHull::inputPts.
 "ConvexHull.cpp", line 210: Error: Could not find a match for
 std::vector<const
 geos::geom::Coordinate*>::assign(__rwstd::__rb_tree<const
 geos::geom::Coordinate*, const geos::geom::Coordinate*,
 __rwstd::__ident<const geos::geom::Coordinate*, const
 geos::geom::Coordinate*>, geos::geom::CoordinateLessThen,
 std::allocator<const geos::geom::Coordinate*>>::const_iterator,
 __rwstd::__rb_tree<const geos::geom::Coordinate*, const
 geos::geom::Coordinate*, __rwstd::__ident<const geos::geom::Coordinate*,
 const geos::geom::Coordinate*>, geos::geom::CoordinateLessThen,
 std::allocator<const geos::geom::Coordinate*>>::const_iterator) needed in
 geos::algorithm::ConvexHull::reduce(std::vector<const
 geos::geom::Coordinate*>&).
 1 Error(s) and 4 Warning(s) detected.
 *** Error code 1
 make: Fatal error: Command failed for target `ConvexHull.lo'
 }}}

 Unable to build on either x86, amd64 or SPARC

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/224#comment:21>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list