[Botan-devel] Python mdule - doesn't find boost library

Joan Miller peloko45 at gmail.com
Sat Feb 13 13:55:14 EST 2010


Hi! I'm trying to build the python module but it shows the next failute:

----------------
$ make -f Makefile.python
g++ -Ibuild/include -Isrc/wrap/python -Os -fPIC -ftemplate-depth-255
-Wall -Wno-unused -I/usr/include/python2.6 -c src/wrap/python/core.cpp
-o build/python/core.o
g++ -Ibuild/include -Isrc/wrap/python -Os -fPIC -ftemplate-depth-255
-Wall -Wno-unused -I/usr/include/python2.6 -c
src/wrap/python/filter.cpp -o build/python/filter.o
g++ -Ibuild/include -Isrc/wrap/python -Os -fPIC -ftemplate-depth-255
-Wall -Wno-unused -I/usr/include/python2.6 -c src/wrap/python/rsa.cpp
-o build/python/rsa.o
g++ -Ibuild/include -Isrc/wrap/python -Os -fPIC -ftemplate-depth-255
-Wall -Wno-unused -I/usr/include/python2.6 -c src/wrap/python/x509.cpp
-o build/python/x509.o
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:19,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:12,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from src/wrap/python/x509.cpp:14:
build/include/botan/x509stor.h: In member function ‘PyObject*
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*,
PyObject*) [with Caller =
boost::python::detail::caller<std::vector<Botan::X509_Certificate,
std::allocator<Botan::X509_Certificate> > (Botan::X509_Store::*)(const
Botan::X509_Store::Search_Func&)const,
boost::python::default_call_policies,
boost::mpl::vector3<std::vector<Botan::X509_Certificate,
std::allocator<Botan::X509_Certificate> >, Botan::X509_Store&, const
Botan::X509_Store::Search_Func&> >]’:
build/include/botan/x509stor.h:55: warning: dereferencing pointer
‘p.783’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
build/include/botan/x509stor.h:55: warning: dereferencing pointer
‘p.783’ does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
rm -rf build/botan-python
mkdir build/botan-python
cp src/wrap/python/*.py build/botan-python
g++ -shared -o build/botan-python/_botan.so build/python/core.o
build/python/filter.o build/python/rsa.o build/python/x509.o -L.
-L/usr/lib/python2.6/config -lbotan -lboost_python -Wl,-rpath-link,.
-Wl,-soname,build/botan-python/_botan.so
/usr/bin/ld: cannot find -lboost_python
collect2: ld returned 1 exit status
make: *** [build/botan-python/_botan.so] Error 1
----------------

It was configured using::

  python configure.py --use-boost-python --with-gnump --with-bzip2 \
    --with-zlib --prefix=/usr/local

And I had installed boost using:

  apt-get install install libboost-thread-dev

---
Ubuntu 9.10
Python 2.6
boost 1.38



More information about the botan-devel mailing list