Boost C++ Libraries: Ticket #3318: boost/python/detail/caller.hpp doesn't compile (no member named 'get_pytype') https://svn.boost.org/trac10/ticket/3318 <p> When compiling vegastrike-0.5.0 against boost 1.39.0 (./configure --with-boost=system to use the system boost instead of internal copy), the build breaks on errors in the boost/python/detail/caller.hpp header: </p> <pre class="wiki">In file included from /usr/include/boost/python/object/function_handle.hpp:9, from /usr/include/boost/python/converter/arg_to_python.hpp:20, from /usr/include/boost/python/call.hpp:16, from /usr/include/boost/python/object_core.hpp:13, from /usr/include/boost/python/object.hpp:10, from src/python/python_class.h:24, from src/python/briefing_wrapper.cpp:4: /usr/include/boost/python/detail/caller.hpp: In static member function 'static const PyTypeObject* boost::python::detail::converter_target_type&lt;ResultConverter&gt;::get_pytype() [with ResultConverter = boost::python::to_python_value&lt;const Vector&amp;&gt;]': /usr/include/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity&lt;1u&gt;::impl&lt;F, Policies, Sig&gt;::signature() [with F = Vector (*)(int), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2&lt;Vector, int&gt;]' /usr/include/boost/python/object/py_function.hpp:48: instantiated from 'boost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl&lt;Caller&gt;::signature() const [with Caller = boost::python::detail::caller&lt;Vector (*)(int), boost::python::default_call_policies, boost::mpl::vector2&lt;Vector, int&gt; &gt;]' src/python/briefing_wrapper.cpp:59: instantiated from here /usr/include/boost/python/detail/caller.hpp:102: error: 'struct boost::python::detail::caller_arity&lt;1u&gt;::impl&lt;F, Policies, Sig&gt;::operator()(PyObject*, PyObject*) [with F = Vector (*)(int), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2&lt;Vector, int&gt;]::result_converter' has no member named 'get_pytype' make[1]: *** [src/python/briefing_wrapper.o] Error 1 </pre><p> Labelling this as regression since vegastrike is known to compile with boost 1.36.0. </p> <p> I'm using GCC 4.4.0, glibc 2.10.1, python 2.6.1 on Exherbo Linux </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3318 Trac 1.4.3 Ingmar Vanhassel <ingmar@…> Thu, 06 Aug 2009 11:06:07 GMT <link>https://svn.boost.org/trac10/ticket/3318#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:1</guid> <description> <p> Also see <a class="ext-link" href="https://bugzilla.redhat.com/show_bug.cgi?id=459347"><span class="icon">​</span>https://bugzilla.redhat.com/show_bug.cgi?id=459347</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>troy d. straszheim</dc:creator> <pubDate>Tue, 20 Oct 2009 15:51:02 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/3318#comment:2 https://svn.boost.org/trac10/ticket/3318#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">boost/python/detail/caller.hpp doesn't compile (no member named 'get_pytype')</span> → <span class="trac-field-new">[fix in git] boost/python/detail/caller.hpp doesn't compile (no member named 'get_pytype')</span> </li> </ul> <p> marking [fix in git] as detail/caller.hpp is completely overhauled there. </p> Ticket Dave Abrahams Sat, 28 Nov 2009 18:13:30 GMT owner changed https://svn.boost.org/trac10/ticket/3318#comment:3 https://svn.boost.org/trac10/ticket/3318#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">troy d. straszheim</span> </li> </ul> <p> Reassigning, since I don't know what to do with a bug marked "fixed in git." </p> Ticket troy d. straszheim Sat, 28 Nov 2009 18:25:53 GMT summary changed https://svn.boost.org/trac10/ticket/3318#comment:4 https://svn.boost.org/trac10/ticket/3318#comment:4 <ul> <li><strong>summary</strong> <span class="trac-field-old">[fix in git] boost/python/detail/caller.hpp doesn't compile (no member named 'get_pytype')</span> → <span class="trac-field-new">boost/python/detail/caller.hpp doesn't compile (no member named 'get_pytype')</span> </li> </ul> <p> The others marked [fix in git] come with urls of commits to my git branch that fix the problem. These [fix in git] tags were notes to self as I attempted to get all bugs fixed on my branch prior to a "merge to trunk".... ugh. I'll just unmark these [fix in git] things. </p> <p> I'll take the bug. Can anybody verify that this is still broken? </p> Ticket Dave Abrahams Sun, 29 Nov 2009 01:10:32 GMT <link>https://svn.boost.org/trac10/ticket/3318#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:5</guid> <description> <p> Leave any marks you want as long as you claim the tickets ;-) </p> </description> <category>Ticket</category> </item> <item> <author>Nicolas Kaiser <nikai@…></author> <pubDate>Wed, 28 Jul 2010 15:24:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3318#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:6</guid> <description> <p> This is the same one, isn't it? </p> <p> Vega Strike SVN, Boost 1.41.0 </p> <p> gcc 4.4.3, glibc 2.11.2, python 2.6.5 on Gentoo Linux </p> <pre class="wiki">In file included from /usr/include/boost-1_41/boost/python/object/function_handle.hpp:8, from /usr/include/boost-1_41/boost/python/converter/arg_to_python.hpp:19, from /usr/include/boost-1_41/boost/python/call.hpp:15, from /usr/include/boost-1_41/boost/python/object_core.hpp:12, from /usr/include/boost-1_41/boost/python/object.hpp:9, from /var/tmp/portage/games-simulation/vegastrike-9999/work/vegastrike/src/python/python_class.h:25, from /var/tmp/portage/games-simulation/vegastrike-9999/work/vegastrike/src/python/unit_exports.h:1, from /var/tmp/portage/games-simulation/vegastrike-9999/work/vegastrike/src/python/unit_exports1.cpp:3: /usr/include/boost-1_41/boost/python/detail/caller.hpp: In static member function 'static const PyTypeObject* boost::python::detail::converter_target_type&lt;ResultConverter&gt;::get_pytype() [with ResultConverter = boost::python::to_python_value&lt;const QVector&amp;&gt;]': /usr/include/boost-1_41/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity&lt;1u&gt;::impl&lt;F, Policies, Sig&gt;::signature() [with F = QVector (UnitWrapper::*)(), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2&lt;QVector, UnitWrapper&amp;&gt;]' /usr/include/boost-1_41/boost/python/object/py_function.hpp:48: instantiated from 'boost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl&lt;Caller&gt;::signature() const [with Caller = boost::python::detail::caller&lt;QVector (UnitWrapper::*)(), boost::python::default_call_policies, boost::mpl::vector2&lt;QVector, UnitWrapper&amp;&gt; &gt;]' /var/tmp/portage/games-simulation/vegastrike-9999/work/vegastrike/src/python/unit_exports.h:91: instantiated from here /usr/include/boost-1_41/boost/python/detail/caller.hpp:102: error: 'struct boost::python::detail::caller_arity&lt;1u&gt;::impl&lt;F, Policies, Sig&gt;::operator()(PyObject*, PyObject*) [with F = QVector (UnitWrapper::*)(), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2&lt;QVector, UnitWrapper&amp;&gt;]::result_converter' has no member named 'get_pytype' /usr/include/boost-1_41/boost/python/detail/caller.hpp: In static member function 'static const PyTypeObject* boost::python::detail::converter_target_type&lt;ResultConverter&gt;::get_pytype() [with ResultConverter = boost::python::to_python_value&lt;const Vector&amp;&gt;]': /usr/include/boost-1_41/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity&lt;2u&gt;::impl&lt;F, Policies, Sig&gt;::signature() [with F = Vector (UnitWrapper::*)(UnitWrapper), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector3&lt;Vector, UnitWrapper&amp;, UnitWrapper&gt;]' /usr/include/boost-1_41/boost/python/object/py_function.hpp:48: instantiated from 'boost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl&lt;Caller&gt;::signature() const [with Caller = boost::python::detail::caller&lt;Vector (UnitWrapper::*)(UnitWrapper), boost::python::default_call_policies, boost::mpl::vector3&lt;Vector, UnitWrapper&amp;, UnitWrapper&gt; &gt;]' /var/tmp/portage/games-simulation/vegastrike-9999/work/vegastrike/src/python/unit_exports.h:91: instantiated from here /usr/include/boost-1_41/boost/python/detail/caller.hpp:102: error: 'struct boost::python::detail::caller_arity&lt;2u&gt;::impl&lt;F, Policies, Sig&gt;::operator()(PyObject*, PyObject*) [with F = Vector (UnitWrapper::*)(UnitWrapper), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector3&lt;Vector, UnitWrapper&amp;, UnitWrapper&gt;]::result_converter' has no member named 'get_pytype' make[2]: *** [CMakeFiles/engine_com.dir/src/python/unit_exports1.o] Error 1 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Dave Abrahams</dc:creator> <pubDate>Wed, 28 Jul 2010 15:29:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3318#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:7</guid> <description> <p> hard to know. A minimal reproducable test case would help a lot </p> </description> <category>Ticket</category> </item> <item> <author>Nicolas Kaiser <nikai@…></author> <pubDate>Wed, 28 Jul 2010 20:25:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3318#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:8</guid> <description> <p> I tried to build against system Boost 1.35.0, but failed with the same error. I had a look at the differences between 1.35 in-tree and system 1.35, but couldn't find any interesting ones. </p> <p> Then I noticed that my build system swallowed the below flag: </p> <pre class="wiki">vegastrike/m4scripts/VS_WITH_BOOST.m4, lines 15 and 29: BOOST_CPPFLAGS='-I/usr/include -DBOOST_PYTHON_NO_PY_SIGNATURES ' (..) AC_DEFINE(BOOST_PYTHON_NO_PY_SIGNATURES,1,[needed for get_pytype]) </pre><p> With this one added it's working for me against 1.41.0. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 09 Dec 2010 04:27:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3318#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:9</guid> <description> <p> So, what's the status of this bug? </p> <p> Igmar (if you're still here) - are you still having this problem with a recent boost? </p> <p> Troy - did your fixes ever get merged into the SVN depot? </p> <p> Nicolas - sounds like you're building successfully. </p> <p> Is there still a problem here? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 08 Sep 2011 20:09:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3318#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3318#comment:10</guid> <description> <p> Still having this problem with following software versions: </p> <ul><li>VegaStrike Revision: 13202 </li><li>boost 1.47.0 </li><li>gcc 4.6.1 </li><li>glibc 2.13 </li></ul><p> vegastrike ./configure allows python only up to 2.5 . tested with python 2.4 and 2.5 </p> </description> <category>Ticket</category> </item> </channel> </rss>