Pyhton magick FTBFS

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Pyhton magick FTBFS

Post by broucaries »

Compiling pythonmagick 0.9.8-1 with imagemagick 6.8.9-6 I get:
  • libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../pythonmagick_src
    -I../config -D_FORTIFY_SOURCE=2 -I/usr/include/python2.7
    -I/usr/include -fopenmp -DMAGICKCORE_HDRI_ENABLE=0
    -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0
    -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0
    -DMAGICKCORE_QUANTUM_DEPTH=16
    -I/usr/include/x86_64-linux-gnu//ImageMagick-6
    -I/usr/include/ImageMagick-6
    -I/usr/include/x86_64-linux-gnu//ImageMagick-6
    -I/usr/include/ImageMagick-6
    -I/usr/include/x86_64-linux-gnu//ImageMagick-6
    -I/usr/include/ImageMagick-6 -g -O2 -fstack-protector
    --param=ssp-buffer-size=4 -Wformat -Werror=format-security
    -DBOOST_PYTHON_DYNAMIC_LIB -c ../../../pythonmagick_src/_Image.cpp
    -fPIC -DPIC -o .libs/libpymagick_la-_Image.o
    ../../../pythonmagick_src/_Image.cpp: In function 'void
    Export_pyste_src_Image()':
    ../../../pythonmagick_src/_Image.cpp:96:48: error: no matching
    function for call to 'boost::python::class_<Magick::Image>::def(const
    char [8], <unresolved overloaded function type>)'
    .def("compare", &Magick::Image::compare)
    ^
    ../../../pythonmagick_src/_Image.cpp:96:48: note: candidates are:
    In file included from /usr/include/boost/python.hpp:18:0,
    from ../../../pythonmagick_src/_Image.cpp:3:
    /usr/include/boost/python/class.hpp:224:11: note: template<class
    Derived> boost::python::class_<T, X1, X2, X3>::self&
    boost::python::class_<T, X1, X2, X3>::def(const
    boost::python::def_visitor<Derived>&) [with Derived = Derived; W =
    Magick::Image; X1 = boost::python::detail::not_specified; X2 =
    boost::python::detail::not_specified; X3 =
    boost::python::detail::not_specified]
    self& def(def_visitor<Derived> const& visitor)
    ^
    /usr/include/boost/python/class.hpp:224:11: note: template argument
    deduction/substitution failed:
    ../../../pythonmagick_src/_Image.cpp:96:48: note: mismatched types
    'const boost::python::def_visitor<U>' and 'const char [8]'
    .def("compare", &Magick::Image::compare)
    ^
    In file included from /usr/include/boost/python.hpp:18:0,
    from ../../../pythonmagick_src/_Image.cpp:3:
    /usr/include/boost/python/class.hpp:234:11: note: template<class F>
    boost::python::class_<T, X1, X2, X3>::self& boost::python::class_<T,
    X1, X2, X3>::def(const char*, F) [with F = F; W = Magick::Image; X1 =
    boost::python::detail::not_specified; X2 =
    boost::python::detail::not_specified; X3 =
    boost::python::detail::not_specified]
    self& def(char const* name, F f)
    ^
    /usr/include/boost/python/class.hpp:234:11: note: template argument
    deduction/substitution failed:
    ../../../pythonmagick_src/_Image.cpp:96:48: note: couldn't deduce
    template parameter 'F'
    .def("compare", &Magick::Image::compare)
    ^
    In file included from /usr/include/boost/python.hpp:18:0,
    from ../../../pythonmagick_src/_Image.cpp:3:
    /usr/include/boost/python/class.hpp:243:11: note: template<class A1,
    class A2> boost::python::class_<T, X1, X2, X3>::self&
    boost::python::class_<T, X1, X2, X3>::def(const char*, A1, const A2&)
    [with A1 = A1; A2 = A2; W = Magick::Image; X1 =
    boost::python::detail::not_specified; X2 =
    boost::python::detail::not_specified; X3 =
    boost::python::detail::not_specified]
    self& def(char const* name, A1 a1, A2 const& a2)
    ^
    /usr/include/boost/python/class.hpp:243:11: note: template argument
    deduction/substitution failed:
    ../../../pythonmagick_src/_Image.cpp:96:48: note: candidate expects
    3 arguments, 2 provided
    .def("compare", &Magick::Image::compare)
    ^
    In file included from /usr/include/boost/python.hpp:18:0,
    from ../../../pythonmagick_src/_Image.cpp:3:
    /usr/include/boost/python/class.hpp:250:11: note: template<class Fn,
    class A1, class A2> boost::python::class_<T, X1, X2, X3>::self&
    boost::python::class_<T, X1, X2, X3>::def(const char*, Fn, const A1&,
    const A2&) [with Fn = Fn; A1 = A1; A2 = A2; W = Magick::Image; X1 =
    boost::python::detail::not_specified; X2 =
    boost::python::detail::not_specified; X3 =
    boost::python::detail::not_specified]
    self& def(char const* name, Fn fn, A1 const& a1, A2 const& a2)
    ^
    /usr/include/boost/python/class.hpp:250:11: note: template argument
    deduction/substitution failed:
    ../../../pythonmagick_src/_Image.cpp:96:48: note: candidate expects
    4 arguments, 2 provided
    .def("compare", &Magick::Image::compare)
    ^
    In file included from /usr/include/boost/python.hpp:18:0,
    from ../../../pythonmagick_src/_Image.cpp:3:
    /usr/include/boost/python/class.hpp:266:11: note: template<class Fn,
    class A1, class A2, class A3> boost::python::class_<T, X1, X2,
    X3>::self& boost::python::class_<T, X1, X2, X3>::def(const char*, Fn,
    const A1&, const A2&, const A3&) [with Fn = Fn; A1 = A1; A2 = A2; A3 =
    A3; W = Magick::Image; X1 = boost::python::detail::not_specified; X2 =
    boost::python::detail::not_specified; X3 =
    boost::python::detail::not_specified]
    self& def(char const* name, Fn fn, A1 const& a1, A2 const& a2, A3
    const& a3)
    ^
    /usr/include/boost/python/class.hpp:266:11: note: template argument
    deduction/substitution failed:
    ../../../pythonmagick_src/_Image.cpp:96:48: note: candidate expects
    5 arguments, 2 provided
    .def("compare", &Magick::Image::compare)
    ^
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Pyhton magick FTBFS

Post by magick »

We can reproduce the problem you posted and have a patch in PythonMagick 0.9.11 available by sometime tomorrow. Thanks. In the future, we'll build PythonMagick to ensure all is well before we distribute a new ImageMagick release.
Post Reply