FTBFS with GLES enabled in plugins/opengl/src/screen.cpp

Bug #1078244 reported by Łukasz Zemczak on 2012-11-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
High
Łukasz Zemczak
compiz (Ubuntu)
High
Łukasz Zemczak

Bug Description

Fails to build - boost problems in the EGL code path:

[ 56%] Building CXX object plugins/opengl/CMakeFiles/opengl.dir/src/screen.cpp.o
cd /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/obj-arm-linux-gnueabi/plugins/opengl && /usr/bin/c++ -Dopengl_EXPORTS -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_SCANDIR_POSIX -DHAVE_CONFIG_H -DHAVE_SCANDIR_POSIX -DOPENGL_DEFSADD -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wno-deprecated-declarations -Werror -fPIC -Wall -Wno-deprecated-declarations -Werror -fPIC -Wall -Wno-deprecated-declarations -Werror -fPIC -Wall -Wno-deprecated-declarations -Werror -fPIC -Wall -Wno-deprecated-declarations -Werror -O2 -g -fPIC -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/timer/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/string/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/pluginclasshandler/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/point/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/rect/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/servergrab/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/region/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/window/geometry/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/window/geometry-saver/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/window/extents/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/window/constrainment/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../logmessage/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/glxtfpbind/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/obj-arm-linux-gnueabi/generated -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/../composite/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib/arm-linux-gnueabi/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/arm-linux-gnueabi/sigc++-2.0/include -I/usr/include/startup-notification-1.0 -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/include -I/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/obj-arm-linux-gnueabi -DPREFIX='"/usr"' -DUSE_GLES -o CMakeFiles/opengl.dir/src/screen.cpp.o -c /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp
In file included from /usr/include/boost/bind.hpp:22:0,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:35:
/usr/include/boost/bind/bind.hpp: In instantiation of 'struct boost::_bi::result_traits<boost::_bi::unspecified, void (*)(_XDisplay*, int)>':
/usr/include/boost/bind/bind_template.hpp:15:48: required from 'class boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >'
/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:1894:55: required from here
/usr/include/boost/bind/bind.hpp:69:37: error: 'void (*)(_XDisplay*, int)' is not a class, struct, or union type
In file included from /usr/include/boost/function/detail/maybe_include.hpp:18:0,
                 from /usr/include/boost/function/detail/function_iterate.hpp:14,
                 from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
                 from /usr/include/boost/function.hpp:64,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/../src/timer/include/core/timer.h:29,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/../composite/include/composite/composite.h:36,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/privates.h:33,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:38:
/usr/include/boost/function/function_template.hpp: In instantiation of 'static void boost::detail::function::void_function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >; R = void; T0 = int]':
/usr/include/boost/function/function_template.hpp:907:60: required from 'void boost::function1<R, T1>::assign_to(Functor) [with Functor = boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >; R = void; T0 = int]'
/usr/include/boost/function/function_template.hpp:722:7: required from 'boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >; R = void; T0 = int; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/usr/include/boost/function/function_template.hpp:1042:16: required from 'boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >; R = void; T0 = int; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:1896:22: required from here
/usr/include/boost/function/function_template.hpp:153:11: error: no match for call to '(boost::_bi::bind_t<boost::_bi::unspecified, void (*)(_XDisplay*, int), boost::_bi::list1<boost::arg<1> > >) (int&)'
In file included from /usr/include/boost/bind.hpp:22:0,
                 from /build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:35:
/usr/include/boost/bind/bind.hpp: In instantiation of 'R boost::_bi::list3<A1, A2, A3>::operator()(boost::_bi::type<R>, F&, A&, long int) [with R = int; F = int (*)(int, int, int*); A = boost::_bi::list3<int&, int&, unsigned int*&>; A1 = boost::arg<1>; A2 = boost::arg<2>; A3 = boost::arg<3>]':
/usr/include/boost/bind/bind_template.hpp:116:59: required from 'boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&, A2&, A3&) [with A1 = int; A2 = int; A3 = unsigned int*; R = int; F = int (*)(int, int, int*); L = boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> >; boost::_bi::bind_t<R, F, L>::result_type = int]'
/usr/include/boost/function/function_template.hpp:132:42: required from 'static R boost::detail::function::function_obj_invoker3<FunctionObj, R, T0, T1, T2>::invoke(boost::detail::function::function_buffer&, T0, T1, T2) [with FunctionObj = boost::_bi::bind_t<int, int (*)(int, int, int*), boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> > >; R = int; T0 = int; T1 = int; T2 = unsigned int*]'
/usr/include/boost/function/function_template.hpp:907:60: required from 'void boost::function3<R, T1, T2, T3>::assign_to(Functor) [with Functor = boost::_bi::bind_t<int, int (*)(int, int, int*), boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> > >; R = int; T0 = int; T1 = int; T2 = unsigned int*]'
/usr/include/boost/function/function_template.hpp:722:7: required from 'boost::function3<R, T1, T2, T3>::function3(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<int, int (*)(int, int, int*), boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> > >; R = int; T0 = int; T1 = int; T2 = unsigned int*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/usr/include/boost/function/function_template.hpp:1042:16: required from 'boost::function<R(T0, T1, T2)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::_bi::bind_t<int, int (*)(int, int, int*), boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> > >; R = int; T0 = int; T1 = int; T2 = unsigned int*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/build/buildd/compiz-0.9.8.4+bzr3407bzr3462pkg0quantal0/plugins/opengl/src/screen.cpp:1896:22: required from here
/usr/include/boost/bind/bind.hpp:382:98: error: invalid conversion from 'unsigned int*' to 'int*' [-fpermissive]
make[3]: *** [plugins/opengl/CMakeFiles/opengl.dir/src/screen.cpp.o] Error 1

Related branches

Changed in compiz:
importance: Undecided → High
Changed in compiz:
status: In Progress → Fix Committed
Changed in compiz (Ubuntu):
assignee: nobody → Łukasz Zemczak (sil2100)
importance: Undecided → High
status: New → Fix Committed
Changed in compiz:
status: Fix Committed → Fix Released
Changed in compiz (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers