PythonMagick on freebsd

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
brampie

PythonMagick on freebsd

Post by brampie »

Hi list,

I'm trying to compile PythonMagick on freebsd (there is no port or I haven't found it).
The configure script fails to detect my boost libs, when I change the makefile afterwards (/usr/include to /usr/local/include and python include path to /usr/local/include/python2.6) compiling start but I get a compiler error (I'm not a C developer).
PythonMagick does compile ok on fedora 11 (but I also need it on freebsd).

Freebsd version=8.0/amd64
Compiler version=4.2.1
Boost=1.39
Python=2.6.2
ImageMagick=6.5.5.10
PythonMagick-0.9.1

Could anyone give me some clues on what to do ? Is there a development version of PythonMagick ?

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -I/usr/local/include/python2.6 -I/usr/local/include -I/usr/local/include/ImageMagick -g -O2 -DBOOST_PYTHON_DYNAMIC_LIB -MT libpymagick_la-_PathCurvetoAbs.lo -MD -MP -MF .deps/libpymagick_la-_PathCurvetoAbs.Tpo -c _PathCurvetoAbs.cpp -o libpymagick_la-_PathCurvetoAbs.o >/dev/null 2>&1
mv -f .deps/libpymagick_la-_PathCurvetoAbs.Tpo .deps/libpymagick_la-_PathCurvetoAbs.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config -I/usr/local/include/python2.6 -I/usr/local/include -I/usr/local/include/ImageMagick -g -O2 -DBOOST_PYTHON_DYNAMIC_LIB -MT libpymagick_la-_Exception.lo -MD -MP -MF .deps/libpymagick_la-_Exception.Tpo -c -o libpymagick_la-_Exception.lo `test -f '_Exception.cpp' || echo './'`_Exception.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -I/usr/local/include/python2.6 -I/usr/local/include -I/usr/local/include/ImageMagick -g -O2 -DBOOST_PYTHON_DYNAMIC_LIB -MT libpymagick_la-_Exception.lo -MD -MP -MF .deps/libpymagick_la-_Exception.Tpo -c _Exception.cpp -fPIC -DPIC -o .libs/libpymagick_la-_Exception.o
/usr/local/include/boost/type_traits/detail/cv_traits_impl.hpp: In instantiation of 'const bool boost::detail::cv_traits_imp<<unnamed>::Magick_Exception_Wrapper*>::is_const':
/usr/local/include/boost/type_traits/is_const.hpp:57: instantiated from 'boost::is_const<<unnamed>::Magick_Exception_Wrapper>'
/usr/local/include/boost/python/detail/cv_category.hpp:31: instantiated from 'boost::python::detail::cv_category<<unnamed>::Magick_Exception_Wrapper>'
/usr/local/include/boost/python/detail/unwind_type.hpp:58: instantiated from 'typename Generator::result_type boost::python::detail::unwind_ptr_type(U*, Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::Magick_Exception_Wrapper]'
/usr/local/include/boost/python/detail/unwind_type.hpp:127: instantiated from 'static typename Generator::result_type boost::python::detail::unwind_helper2<2>::execute(U& (*)(), Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::Magick_Exception_Wrapper]'
/usr/local/include/boost/python/detail/unwind_type.hpp:165: instantiated from 'typename Generator::result_type boost::python::detail::unwind_type(boost::type<U>*, Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::Magick_Exception_Wrapper&]'
/usr/local/include/boost/python/converter/pytype_function.hpp:45: instantiated from 'boost::python::type_info boost::python::converter::detail::unwind_type_id_(boost::type<Target>*, mpl_::false_*) [with T = <unnamed>::Magick_Exception_Wrapper&]'
/usr/local/include/boost/python/converter/pytype_function.hpp:68: instantiated from 'static const PyTypeObject* boost::python::converter::expected_pytype_for_arg<T>::get_pytype() [with T = <unnamed>::Magick_Exception_Wrapper&]'
/usr/local/include/boost/python/detail/signature.hpp:98: instantiated from 'static const boost::python::detail::signature_element* boost::python::detail::signature_arity<1u>::impl<Sig>::elements() [with Sig = boost::mpl::vector2<const char*, <unnamed>::Magick_Exception_Wrapper&>]'
/usr/local/include/boost/python/detail/caller.hpp:232: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity<1u>::impl<F, Policies, Sig>::signature() [with F = const char* (<unnamed>::Magick_Exception_Wrapper::*)()const, Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2<const char*, <unnamed>::Magick_Exception_Wrapper&>]'
/usr/local/include/boost/python/object/py_function.hpp:48: instantiated from 'boost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl<Caller>::signature() const [with Caller = boost::python::detail::caller<const char* (<unnamed>::Magick_Exception_Wrapper::*)()const, boost::python::default_call_policies, boost::mpl::vector2<const char*, <unnamed>::Magick_Exception_Wrapper&> >]'
_Exception.cpp:45: instantiated from here
/usr/local/include/boost/type_traits/detail/cv_traits_impl.hpp:37: internal compiler error: in make_rtl_for_nonlocal_decl, at cc1plus/../../../../contrib/gcc/cp/decl.c:4971
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Post Reply