After Upgrade to Boost 1.53 Build Fails

Bug #1131864 reported by Bt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Medium
Sam Spilsbury
Unity for Arch Project
Fix Released
Undecided
Andrew Gunnerson
compiz (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Here's the print out:

[ 16%] Building CXX object src/CMakeFiles/compiz_core.dir/screen.cpp.o
cd /home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build/src && /usr/bin/c++ -DHAVE_CONFIG_H -DHAVE_SCANDIR_POSIX -Dcompiz_core_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -O2 -g -DNDEBUG -fPIC -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build/generated -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/startup-notification-1.0 -I/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/string/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/string/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/logmessage/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/logmessage/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/timer/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/timer/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/pluginclasshandler/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/pluginclasshandler/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/point/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/point/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/rect/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/rect/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/servergrab/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/servergrab/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/region/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/region/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry-saver/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry-saver/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/extents/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/extents/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/constrainment/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/constrainment/src -DPLUGINDIR=\"/usr/lib64/compiz\" -DSHAREDIR=\"/usr/share/compiz/\" -DMETADATADIR=\"/usr/share/compiz\" -o CMakeFiles/compiz_core.dir/screen.cpp.o -c /home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/screen.cpp
/usr/bin/cmake -E cmake_progress_report /home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build/CMakeFiles

[ 16%] Building CXX object src/CMakeFiles/compiz_core.dir/window.cpp.o
cd /home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build/src && /usr/bin/c++ -DHAVE_CONFIG_H -DHAVE_SCANDIR_POSIX -Dcompiz_core_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -fPIC -Wall -Wno-unused-private-field -Wno-deprecated-declarations -O2 -g -DNDEBUG -fPIC -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build/generated -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/startup-notification-1.0 -I/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/string/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/string/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/logmessage/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/logmessage/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/timer/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/timer/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/pluginclasshandler/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/pluginclasshandler/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/point/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/point/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/rect/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/rect/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/servergrab/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/servergrab/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/region/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/region/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry-saver/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/geometry-saver/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/extents/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/extents/src -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/constrainment/include -I/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window/constrainment/src -DPLUGINDIR=\"/usr/lib64/compiz\" -DSHAREDIR=\"/usr/share/compiz/\" -DMETADATADIR=\"/usr/share/compiz\" -o CMakeFiles/compiz_core.dir/window.cpp.o -c /home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp: In function 'bool isPendingRestack(compiz::X11::PendingEvent::Ptr)':
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:2953:50: error: 'shared_static_cast' is not a member of 'boost'
     compiz::X11::PendingConfigureEvent::Ptr pc = boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                  ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:2953:111: error: expected primary-expression before '>' token
     compiz::X11::PendingConfigureEvent::Ptr pc = boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                                                                               ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp: In function 'bool isExistingRequest(compiz::X11::PendingEvent::Ptr, XWindowChanges&, unsigned int)':
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:2960:50: error: 'shared_static_cast' is not a member of 'boost'
     compiz::X11::PendingConfigureEvent::Ptr pc = boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                  ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:2960:111: error: expected primary-expression before '>' token
     compiz::X11::PendingConfigureEvent::Ptr pc = boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                                                                               ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp: In member function 'void PrivateWindow::reconfigureXWindow(unsigned int, XWindowChanges*)':
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:3186:7: error: 'shared_static_cast' is not a member of 'boost'
       boost::shared_static_cast<compiz::X11::PendingEvent> (compiz::X11::PendingConfigureEvent::Ptr (
       ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:3186:58: error: expected primary-expression before '>' token
       boost::shared_static_cast<compiz::X11::PendingEvent> (compiz::X11::PendingConfigureEvent::Ptr (
                                                          ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp: In member function 'int PrivateWindow::addWindowStackChanges(XWindowChanges*, CompWindow*)':
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:3977:8: error: 'shared_static_cast' is not a member of 'boost'
        boost::shared_static_cast<compiz::X11::PendingEvent> (compiz::X11::PendingConfigureEvent::Ptr (
        ^
/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/src/window.cpp:3977:59: error: expected primary-expression before '>' token
        boost::shared_static_cast<compiz::X11::PendingEvent> (compiz::X11::PendingConfigureEvent::Ptr (
                                                           ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-unused-private-field" [enabled by default]
make[2]: *** [src/CMakeFiles/compiz_core.dir/window.cpp.o] Error 1
make[2]: Leaving directory `/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build'
make[1]: *** [src/CMakeFiles/compiz_core.dir/all] Error 2
make[1]: Leaving directory `/home/bobby/rpmbuild/BUILD/compiz-0.9.9.0/build'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.YXLZO1 (%build)

From the looks of it boost may have done away with shared_static_cast in this release, maybe. Also, the same error occurs in main branch of bzr launchpad.

Thanks for the great work by the way! Compiz is my desktop environment. I'm running fedora rawhide just in case that makes a difference. I did a rebuild because the boost update messed with a little program I'm working on.

Bobby

Related branches

Changed in compiz:
importance: Undecided → Medium
assignee: nobody → Sam Spilsbury (smspillaz)
status: New → In Progress
Revision history for this message
raveit65 (raveit65) wrote :

after using the patch in current snapshot i get those errors in fedora rawhide.

[ 12%] Building CXX object src/CMakeFiles/compiz_core.dir/window.cpp.o
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp: In function ‘bool isPendingRestack(const Ptr&)’:
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp:3028:2: error: ‘shared_static_cast’ is not a member of ‘boost’
  boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
  ^
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp:3028:63: error: expected primary-expression before ‘>’ token
  boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                               ^
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp: In function ‘bool isExistingRequest(const Ptr&, XWindowChanges&, unsigned int)’:
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp:3038:6: error: ‘shared_static_cast’ is not a member of ‘boost’
      boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
      ^
/run/media/rave/Jackass/Downloads/f19/compiz/0.9.9/compiz/~compiz-team/compiz/0.9.9/src/window.cpp:3038:67: error: expected primary-expression before ‘>’ token
      boost::shared_static_cast <compiz::X11::PendingConfigureEvent> (p);
                                                                   ^
At global scope:
cc1plus: error: unrecognized command line option "-Wno-unused-private-field" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-unused-private-field" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-unused-private-field" [-Werror]
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/compiz_core.dir/window.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/compiz_core.dir/all] Error 2

I'm the current compiz maintainer in fedora and i use 0.8.8 for the moment.
But i'm thinking about to update if compiling works.

regards,
Wolfgang Ulbrich

Revision history for this message
MC Return (mc-return) wrote :

raveit65, I can confirm your observation. Still some compiling errors with Boost 1.53 left.

Revision history for this message
MC Return (mc-return) wrote :

@raveit65:
Sam fixed the compilation now.
If you build the linked branch without BUILD_GLES, BUILD_XORG_GTEST, BUILD_TESTING and COMPIZ_BUILD_TESTING it should work for you as well. :)

Revision history for this message
Bt (thepalindrome) wrote :

First bug I've reported is squashed. Now it builds, installs, runs well. A quick plug for an update of compiz for Fedora @raveit. Thanks :)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:compiz at revision None, scheduled for release in compiz, milestone 0.9.9.2

Changed in compiz:
status: In Progress → Fix Committed
Revision history for this message
raveit65 (raveit65) wrote :

Thank you for quick fixing the build issue.
Unfortunately compiz start without a windows-decorator.
But cmake is new for me.
@MC Return
Is there a irc chanel or better a mailing list (i prefer a writen word) for
questions about 0.9.x series?
I'm also maintaining MATE desktop in fedora and i'm part of MATE upstream.
My goal is to get next 1.0.x release working for MATE.
So, a way to communicate with yours would be nice.
http://forums.mate-desktop.org/index.php?sid=410ec75e591b29f6f334e87e18aecf57
Here you see that a lot of unbuntu users using MATE desktop. :)

Revision history for this message
MC Return (mc-return) wrote :

@raveit65:
If you have questions, the best place to ask those would be here:
https://answers.launchpad.net/compiz

Maybe you can already find some answers there as well ;)

Regarding the IRC channels: There are #compiz-dev and #unity-dev on freenode.
Sometimes you may find Compiz devs there, but questions there also might get lost in the virtual space-time continuum ;)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.9.9~daily13.04.05-0ubuntu1

---------------
compiz (1:0.9.9~daily13.04.05-0ubuntu1) raring; urgency=low

  [ Daniel van Vugt ]
  [Daniel van Vugt]
  * Merge lp:compiz/raring back in to lp:compiz/0.9.9 so we can maintain
    raring from lp:compiz/0.9.9. The last common revision was 3629, so...
  * Automatic snapshot from revision 3629

  [ MC Return <email address hidden>, Sam Spilsbury <email address hidden>, Sam Spilsbury ]
  * Workspacenames plugin: Damage handling is broken and the plugin
    damages the full screen instead of just the painted part of it (LP:
    #1162246)
  * [regression-r3320] Workspacenames Plug-in: Flickering background on
    appearance, fade-out seems smooth (LP: #1075578)

  [ Brandon Schaefer ]
  * [regression] Shortcut overlay does not hide when modifier key is
    pressed (LP: #1075207)
  * Unity blocks other programs from binding globally to Super+* (* =
    any key) (LP: #950160)

  [ Sam Spilsbury <email address hidden>, Sam <email address hidden>, Sam Spillaz <email address hidden>, Sam Spilsbury <email address hidden>, Sam Spilsbury <email address hidden>, MC Return <email address hidden>, Sam Spilsbury <email address hidden>, users <warlock@banana.(none)>, Scott Moreau <email address hidden>, Danny Baumann <email address hidden>, warlock <email address hidden>, Sam Spilsbury <smspillaz@XPS-U.(none)>, warlock <email address hidden>, Roland Bär ]
  * [needs-packaging] Wishlist: Missing plug-In: Freewins (Freely
    Transformable Windows) (LP: #1012194)

  [ MC Return <email address hidden>, Sam Spilsbury <email address hidden>, Sam Spilsbury ]
  * Showdesktop plugin: Wishlist/Feature-Request: Implement "Random"
    movement direction option (LP: #1161343)

  [ MC Return ]
  * Wall plugin: Redundant if (screen->otherGrabExist ("wall", 0)) check
    in WallScreen::initiateFlip (LP: #1160878)
  * CompWindow::syncPosition () function is empty and calls to it
    redundant (LP: #1160624)
  * Showdesktop plugin: Wishlist/Feature-Request: Implement "Random"
    movement direction option (LP: #1161343)
  * Multimonitor: Grid plugin: Wrong calculation of top left mouse-grid-
    resize corner coordinates (LP: #1139835)

  [ Sam Spilsbury ]
  * After Upgrade to Boost 1.53 Build Fails (LP: #1131864)
  * Showdesktop plugin: Wishlist/Feature-Request: Implement "Random"
    movement direction option (LP: #1161343)
  * [regression] Unmaximized windows can't be closed, minimized, moved
    (LP: #1158161)
  * Latest compiz update breaks Java Swing decorations (LP: #1138517)
  * [regression-r3635] Guake window appears placed by offset non-
    existent decoration (LP: #1159324)
  * [regression-r3623] Wallpaper bleeds through on top right when a
    window is opened maximized (LP: #1140505)
  * xiphos crashed with SIGSEGV in sword::VerseKey::copyFrom() (LP:
    #1159234)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 3644
 -- Ubuntu daily release <email address hidden> Fri, 05 Apr 2013 04:03:10 +0000

Changed in compiz (Ubuntu):
status: New → Fix Released
Revision history for this message
Andrew Gunnerson (cxl) wrote :

I'd like to point out that this fix is *not* released. The released version is built from BZR revision 3629. The fix was merged in revision 3637.

Changed in unity-for-arch:
status: New → In Progress
assignee: nobody → Xiao-Long Chen (cxl)
Andrew Gunnerson (cxl)
Changed in unity-for-arch:
status: In Progress → Fix Released
Revision history for this message
Duane Voth (duanev) wrote :

Could the boost 1.53.0 patch be posted so we don't have to wait for 0.9.9.2?

Revision history for this message
Andrew Gunnerson (cxl) wrote :

Duane, just click this link on this bug report page :) http://i.imgur.com/wEuiOoZ.png

Stephen M. Webb (bregma)
Changed in compiz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.