ports/161005: graphics/geos: CLANG : for functional-style cast from 'geos::geom::Geometry 'std::auto_ptr<Geometry>' return std::auto_ptr<Geometry>( createGeometryCollection() );

Hartmann at FreeBSD.org Hartmann at FreeBSD.org
Sun Sep 25 08:30:11 UTC 2011


>Number:         161005
>Category:       ports
>Synopsis:       graphics/geos: CLANG : for functional-style cast from 'geos::geom::Geometry       'std::auto_ptr<Geometry>'       return std::auto_ptr<Geometry>( createGeometryCollection() );
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 25 08:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hartmann, O.
>Release:        FreeBSD 9.0-BETA2/amd64 and FreeBSD 8.2-STABLE/amd64 (CLANG)
>Organization:
FU berlin
>Environment:
>Description:
Compiling graphics/geos with CLANG fails with the following error:

mv -f .deps/CentroidPoint.Tpo .deps/CentroidPoint.Plo
/bin/sh /usr/local/bin/libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../iINE  -pedantic -Wall -ansi -Wno-long-long  -O3 -pipe -fno-strict-aliasing -march=native -MT CGAlgorithms.lo -MD -MP -MF .deps/CGAlgolgorithms.lo CGAlgorithms.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -DGEOS_INLINE -pedantic -Wall -aO3 -pipe -fno-strict-aliasing -march=native -MT CGAlgorithms.lo -MD -MP -MF .deps/CGAlgorithms.Tpo -c CGAlgorithms.cpp  -fPIC -DPIC s.o
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -DGEOS_INLINE -pedantic -Wall -aO3 -pipe -fno-strict-aliasing -march=native -MT CGAlgorithms.lo -MD -MP -MF .deps/CGAlgorithms.Tpo -c CGAlgorithms.cpp -o CGAlgorith
mv -f .deps/CGAlgorithms.Tpo .deps/CGAlgorithms.Plo
/bin/sh /usr/local/bin/libtool --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../iINE  -pedantic -Wall -ansi -Wno-long-long  -O3 -pipe -fno-strict-aliasing -march=native -MT ConvexHull.lo -MD -MP -MF .deps/ConvexHuull.lo ConvexHull.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -DGEOS_INLINE -pedantic -Wall -aO3 -pipe -fno-strict-aliasing -march=native -MT ConvexHull.lo -MD -MP -MF .deps/ConvexHull.Tpo -c ConvexHull.cpp  -fPIC -DPIC -o .li
In file included from ConvexHull.cpp:23:
./../include/geos/geom/GeometryFactory.h:323:14: error: no matching conversion for functional-style cast from 'geos::geom::Geometry
      'std::auto_ptr<Geometry>'
      return std::auto_ptr<Geometry>( createGeometryCollection() );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/memory:189:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'element_type *' (aka 'geos::geom::Geometry *')
      auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      ^
/usr/include/c++/4.2/memory:198:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'std::auto_ptr<geos::geom::Geometry> &'
      auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      ^
/usr/include/c++/4.2/memory:348:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'auto_ptr_ref<element_type>'
      auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      ^
/usr/include/c++/4.2/memory:211:9: note: candidate template ignored: failed template argument deduction
        auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
        ^
In file included from ConvexHull.cpp:23:
./../include/geos/geom/GeometryFactory.h:346:14: error: no matching conversion for functional-style cast from 'geos::geom::Geometry
      'std::auto_ptr<Geometry>'
      return std::auto_ptr<Geometry>( createGeometryCollection(fromGeoms) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/memory:189:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'element_type *' (aka 'geos::geom::Geometry *')
      auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      ^
/usr/include/c++/4.2/memory:198:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'std::auto_ptr<geos::geom::Geometry> &'
      auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      ^
/usr/include/c++/4.2/memory:348:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::G
      to 'auto_ptr_ref<element_type>'
      auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      ^
/usr/include/c++/4.2/memory:211:9: note: candidate template ignored: failed template argument deduction
        auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
        ^
In file included from ConvexHull.cpp:23:
./../include/geos/geom/GeometryFactory.h:351:14: error: no matching conversion for functional-style cast from 'geos::geom::MultiPol
      'std::auto_ptr<Geometry>'
      return std::auto_ptr<Geometry>( createMultiPolygon(fromGeoms) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/memory:189:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'element_type *' (aka 'geos::geom::Geometry *')
      auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      ^
/usr/include/c++/4.2/memory:198:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'std::auto_ptr<geos::geom::Geometry> &'
      auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      ^
/usr/include/c++/4.2/memory:348:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'auto_ptr_ref<element_type>'
      auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      ^
/usr/include/c++/4.2/memory:211:9: note: candidate template ignored: failed template argument deduction
        auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
        ^
In file included from ConvexHull.cpp:23:
./../include/geos/geom/GeometryFactory.h:353:14: error: no matching conversion for functional-style cast from 'geos::geom::MultiLin
      'std::auto_ptr<Geometry>'
      return std::auto_ptr<Geometry>( createMultiLineString(fromGeoms) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/memory:189:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'element_type *' (aka 'geos::geom::Geometry *')
      auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      ^
/usr/include/c++/4.2/memory:198:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'std::auto_ptr<geos::geom::Geometry> &'
      auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      ^
/usr/include/c++/4.2/memory:348:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'auto_ptr_ref<element_type>'
      auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      ^
/usr/include/c++/4.2/memory:211:9: note: candidate template ignored: failed template argument deduction
        auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
        ^
In file included from ConvexHull.cpp:23:
./../include/geos/geom/GeometryFactory.h:355:14: error: no matching conversion for functional-style cast from 'geos::geom::MultiPoi
      'std::auto_ptr<Geometry>'
      return std::auto_ptr<Geometry>( createMultiPoint(fromGeoms) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/memory:189:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'element_type *' (aka 'geos::geom::Geometry *')
      auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      ^
/usr/include/c++/4.2/memory:198:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'std::auto_ptr<geos::geom::Geometry> &'
      auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      ^
/usr/include/c++/4.2/memory:348:7: note: candidate constructor not viable: cannot convert argument of incomplete type 'geos::geom::M
      'auto_ptr_ref<element_type>'
      auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      ^
/usr/include/c++/4.2/memory:211:9: note: candidate template ignored: failed template argument deduction
        auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
        ^
5 errors generated.
gmake[3]: *** [ConvexHull.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/graphics/geos/work/geos-3.3.0/src/algorithm'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/geos/work/geos-3.3.0/src/algorithm'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/geos/work/geos-3.3.0/src'
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /usr/ports/graphics/geos.
*** Error code 1

>How-To-Repeat:
Try compiling graphics/geos with CLANG.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list