Dear Iain,

On Fri, Sep 19, 2008 at 6:34 AM, Iain Murchland
<[email protected]> wrote:
> Just wondering if anyone can give me a few pointers as to what might be
> wrong here ...
>
> I'm getting a compilation error compiling the RDKit svn source (rev 778)
> against the latest boost svn source. I get (among others):
>
> /usr/local/src/boost-trunk/boost/python/def_visitor.hpp:67:
> instantiated from `void
> boost::python::def_visitor<DerivedVisitor>::visit(classT&) const [with
> classT = boost::python::class_<RDGeom::PointND,
> boost::python::detail::not_specified,
> boost::python::detail::not_specified,
> boost::python::detail::not_specified>, DerivedVisitor =
> boost::python::detail::operator_< op_add,
> boost::python::self_ns::self_t, boost::python::self_ns::self_t>]'
> /usr/local/src/boost-trunk/boost/python/class.hpp:225:   instantiated
> from `boost::python::class_<T, X1, X2, X3>& boost::python::class_<T, X1,
> X2, X3>::def(const boost::python::def_visitor<Derived>&) [with Derived =
> boost::python::detail::operator_< op_add,
> boost::python::self_ns::self_t, boost::python::self_ns::self_t>, W =
> RDGeom::PointND, X1 = boost::python::detail::not_specified, X2 =
> boost::python::detail::not_specified, X3 =
> boost::python::detail::not_specified]'
> Geometry/Wrap/Point.cpp:213:   instantiated from here
> /usr/local/src/boost-trunk/boost/python/operators.hpp:212: error: no
> match for 'operator+' in 'l + r'
>
>    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
> -fPIC -pthread -Wno-unused-function -fno-strict-aliasing
> -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DNDEBUG  -I"."
> -I"/usr/include/python2.5"
> -I"/usr/local/RDKitSF/trunk/External/Lapack++/include"
> -I"/usr/local/RDKitSF/trunk/External/vflib-2.0/include"
> -I"/usr/local/src/boost-trunk" -c -o
> "Geometry/Wrap/bin/gcc-3.4.6/release/threading-multi/Point.o"
> "Geometry/Wrap/Point.cpp"
>
> ...failed gcc.compile.c++
> Geometry/Wrap/bin/gcc-3.4.6/release/threading-multi/Point.o...
> ...skipped
> <pGeometry/Wrap/bin/gcc-3.4.6/release/threading-multi>rdGeometry.so for
> lack of <pGeometry/Wrap/bin/gcc-3.4.6/release/threading-multi>Point.o...
> ...skipped <p/usr/local/RDKitSF/trunk/Python/Geometry>rdGeometry.so for
> lack of
> <pGeometry/Wrap/bin/gcc-3.4.6/release/threading-multi>rdGeometry.so...
>
> ----------------

This looks like the problem that was fixed in a revision later than
778, specifically in rev806. If you do an "svn update" in whatever
directory you have the code stored, you should get a version that will
compile.


>
> Earlier I got the May 2008 release to compile against boost 1.35, but it
> failed a number of tests (I think including some that didn't get picked
> up as failures, but that's a different matter)

I'd be interested in hearing about these if you have time to explain them.

> so I decided to try the
> svn sources. diff says there's no changes in either
> Geometry/Wrap/Point.cpp or boost/python/operators.hpp between the
> respective older releases and their svn counterparts, so I'm not sure
> where to go from there ...

Yes, the relevant changes were to Geometry/point.h (some operators
were defined in the global namespace when they should have been in the
RDGeom namespace).

-greg

Reply via email to