LernaeanHydra / pyactivemq

Automatically exported from code.google.com/p/pyactivemq
Apache License 2.0
1 stars 0 forks source link

Compile fails with libboost-python 1.34.1 on Ubuntu Hardy #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Compiling pyactivemq with libboost-python installed on Ubuntu Hardy [1]
throws some method signature errors:

src/main/pyactivemq.cpp: In function ‘void init_module_pyactivemq()’:
src/main/pyactivemq.cpp:96: error: no matching function for call to
‘boost::python::docstring_options::docstring_options(bool&, bool&, bool&)’
/usr/include/boost/python/docstring_options.hpp:25: note: candidates are:
boost::python::docstring_options::docstring_options(bool, bool)
/usr/include/boost/python/docstring_options.hpp:17: note:                
boost::python::docstring_options::docstring_options(bool)
/usr/include/boost/python/docstring_options.hpp:15: note:                
boost::python::docstring_options::docstring_options(const
boost::python::docstring_options&)

src/main/Session.cpp: In function ‘void export_Session()’:
src/main/Session.cpp:152: error: no matching function for call to
‘boost::python::enum_<cms::Session::AcknowledgeMode>::enum_(const char
[16], const char*&)’
/usr/include/boost/python/enum.hpp:37: note: candidates are:
boost::python::enum_<T>::enum_(const char*) [with T =
cms::Session::AcknowledgeMode]
/usr/include/boost/python/enum.hpp:18: note:                
boost::python::enum_<cms::Session::AcknowledgeMode>::enum_(const
boost::python::enum_<cms::Session::AcknowledgeMode>&)

The attached patches fixes things, but since I've never developed with
boost before, I don't know how sane it is (and presumably the current code
works for some version of libboost-python).

[1] Package info:
Package: libboost-python-dev
State: installed
Automatically installed: no
Version: 1.34.1-4ubuntu3

Original issue reported on code.google.com by hodges...@gmail.com on 1 Sep 2008 at 1:48

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch.

Last time I checked, the code compiled successfully with Boost 1.35.0 (but I 
think
there were some changes in the API related to docstrings from older versions of
Boost.Python). I'll look into a solution that works with old and new Boost.

Original comment by fullung@gmail.com on 1 Sep 2008 at 3:59

GoogleCodeExporter commented 8 years ago

Original comment by fullung@gmail.com on 17 Sep 2008 at 9:31

GoogleCodeExporter commented 8 years ago
Applied the patch. Lots of people still seem to be using older versions of 
Boost.

We can revert it in a year or two.

Original comment by fullung@gmail.com on 19 Sep 2008 at 1:36