[C++-sig] boost 1.34.1 & python 2.5.2 on centos 5

ZiZi Zhao zzhao at laika.com
Tue Mar 11 19:16:13 CET 2008


Hi All,

I just built python 2.5.2 on my centos 5 system, and now building boost 1.34.1 on python 2.5.2, both are compiled with gcc 4.0.2.

But, I got tons of messages such as:

./boost/python/converter/arg_from_python.hpp:239: error: ‘PyObject’ was not declared in this scope
./boost/python/converter/arg_from_python.hpp:239: error: ‘p’ was not declared in this scope
./boost/python/converter/arg_from_python.hpp:240: error: expected `;' before ‘{’ token
./boost/python/converter/arg_from_python.hpp: In member function ‘T boost::python::converter::pointer_cref_arg_from_python<T>::operator()() const’:
./boost/python/converter/arg_from_python.hpp:258: error: ‘Py_None’ was not declared in this scope
./boost/python/converter/arg_from_python.hpp: At global scope:
./boost/python/converter/arg_from_python.hpp:267: error: ISO C++ forbids declaration of ‘pointer_arg_from_python’ with no type
./boost/python/converter/arg_from_python.hpp:267: error: ‘boost::python::converter::pointer_arg_from_python<T>::pointer_arg_from_python’ declared as an ‘inline’ variable
./boost/python/converter/arg_from_python.hpp:267: error: ‘int boost::python::converter::pointer_arg_from_python<T>::pointer_arg_from_python’ is not a static member of ‘struct boost::python::converter::pointer_arg_from_python<T>’
...

./boost/python/call.hpp:53: error: template declaration of ‘typename boost::python::detail::returnable<T>::type boost::python::call’
./boost/python/call.hpp:53: error: ‘PyObject’ was not declared in this scope
./boost/python/call.hpp:53: error: ‘callable’ was not declared in this scope
./boost/python/call.hpp:54: error: expected primary-expression before ‘const’
./boost/python/call.hpp:54: error: expected primary-expression before ‘const’
./boost/python/call.hpp:54: error: expected primary-expression before ‘const’
./boost/python/call.hpp:54: error: expected primary-expression before ‘const’
...

The error messages go on forever. I stopped the compiling and saw:

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE  -I"." -I"/local/prod/python/python_2.5/include/python2.4" -c -o "bin.v2/libs/python/build/gcc-4.0.2/debug/threading-multi/class.o" "libs/python/src/object/class.cpp"

I have no clue about where the "/local/prod/python/python_2.5/include/python2.4" is from. My PYTHON_ROOT in bjam configure is completely different, /swdevl/local/python_2.5.2. and there is simply no 'python2.4' in 
/local/prod/python/python_2.5/include/.

Any one knows whats happening? 

I built boost 1.34.1 on python 2.5.1 on centos 4, which was just done fine, and using the same gcc 4.0.2.

Thanks,

ZIZI
LAIKA


_____________________________________________________________________
The information contained in this message and its attachments is
confidential and proprietary to LAIKA, Inc.  By opening this email
or any of its attachments, you agree to keep all such information
confidential and not to use, distribute, disclose or copy any part
of such information without the prior written consent of LAIKA,
Inc.  If you are not the intended recipient of this message, any use,
distribution, disclosure or copying of such information is prohibited.
If received in error, please contact the sender. 




More information about the Cplusplus-sig mailing list