[Boost-bugs] [Boost C++ Libraries] #4873: [pyhon] compile error when building against python 3.x

Subject: [Boost-bugs] [Boost C++ Libraries] #4873: [pyhon] compile error when building against python 3.x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-21 13:20:13


#4873: [pyhon] compile error when building against python 3.x
------------------------------+---------------------------------------------
 Reporter: chrislu | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: python |
------------------------------+---------------------------------------------
 Since version 1.44 boost python does not compile anymore using python 3.x
 (after a GSOC project it worked fine with python 3.1).

 I tried to build the boost 1.45 official release targeting a x64 version
 on Visual C++ 2010 under Windows 7 x64 using the following build line:

 {{{
 bjam --build-dir=e:\devel\_ext\boost_out_64\out
 --libdir=e:\devel\_ext\boost_out_64\lib
 --includedir=e:\devel\_ext\boost_out_64\inc toolset=msvc-10.0
 define=arch:SSE2 address-model=64 link=shared runtime-link=shared -j6
 install
 bjam --build-dir=e:\devel\_ext\boost_out_64\out
 --libdir=e:\devel\_ext\boost_out_64\lib
 --includedir=e:\devel\_ext\boost_out_64\inc toolset=msvc-10.0
 define=arch:SSE2 address-model=64 link=static runtime-link=shared -j6
 install
 }}}

 These are the errors generated:

 {{{
 compile-c-c++
 e:\devel\_ext\boost_out_64\out\boost\bin.v2\libs\python\build\msvc-10.0\debug
 \address-model-64\link-static\threading-multi\numeric.obj
 numeric.cpp
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C2065: 'PyInt_Type' : undeclared identifier
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C2065: 'PyInt_Type' : undeclared identifier
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C2065: 'PyInt_Type' : undeclared identifier
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C2065: 'PyInt_Type' : undeclared identifier
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C2039: 'PyInt_FromLong' : is not a member of '`global namespace''
 E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) :
 error C3861: 'PyInt_FromLong': identifier not found
 E:\devel\boost_1_45_0\boost/python/detail/caller.hpp(55) : warning C4244:
 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss
 of data
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4873>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC