ros-noetic-arch / ros-noetic-rosbag

ros-noetic-rosbag AUR package
0 stars 2 forks source link

error: #error This header is deprecated and will be removed. #4

Open petronny opened 1 year ago

petronny commented 1 year ago
[ 20%] Building CXX object CMakeFiles/encrypt.dir/src/encrypt.cpp.o
[ 20%] Building CXX object CMakeFiles/rosbag.dir/src/player.cpp.o
In file included from /build/ros-noetic-rosbag/src/ros_comm-1.16.0/tools/rosbag/src/encrypt.cpp:39:
/usr/include/boost/progress.hpp:23:3: error: #error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.)
   23 | # error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.)
      |   ^~~~~
In file included from /usr/include/boost/progress.hpp:29:
/usr/include/boost/timer.hpp:21:3: error: #error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.)
   21 | # error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.)
      |   ^~~~~
In file included from /usr/include/boost/smart_ptr/detail/requires_cxx11.hpp:9,
                 from /usr/include/boost/smart_ptr/scoped_ptr.hpp:13,
                 from /usr/include/boost/scoped_ptr.hpp:13,
                 from /build/ros-noetic-rosbag/src/ros_comm-1.16.0/tools/rosbag/src/encrypt.cpp:37:
/usr/include/boost/progress.hpp:27:1: note: ‘#pragma message: This header is deprecated. Use the facilities in <boost/timer/timer.hpp> or <boost/timer/progress_display.hpp> instead.’
   27 | BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp> or <boost/timer/progress_display.hpp>" )
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/timer.hpp:25:1: note: ‘#pragma message: This header is deprecated. Use the facilities in <boost/timer/timer.hpp> instead.’
   25 | BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp>" )
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/smart_ptr/detail/requires_cxx11.hpp:9,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /opt/ros/noetic/include/ros/forwards.h:37,
                 from /opt/ros/noetic/include/ros/common.h:37,
                 from /opt/ros/noetic/include/ros/ros.h:43,
                 from /build/ros-noetic-rosbag/src/ros_comm-1.16.0/tools/rosbag/include/rosbag/player.h:50,
                 from /build/ros-noetic-rosbag/src/ros_comm-1.16.0/tools/rosbag/src/player.cpp:35:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/encrypt.dir/build.make:76: CMakeFiles/encrypt.dir/src/encrypt.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1019: CMakeFiles/encrypt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

https://github.com/arch4edu/cactus/actions/runs/6144561289/job/16670207594

phansel commented 1 year ago

+1 reproduced on my side.

cybaol commented 1 year ago

@petronny Solution is here: https://github.com/ros/ros_comm/pull/2346

petronny commented 1 year ago

@cybaol Thanks for the link to the patch.

Fixing this bug just for this package is easy. However I believe this bug also affects other packages in the ros/rocm_comm repository and maybe other ros repositories. I'm afraid that we have to fix them all.

cybaol commented 1 year ago

https://github.com/ros-noetic-arch/ros-noetic-rosbag/pull/5

acxz commented 11 months ago

I'm afraid that we have to fix them all.

This will definitely be concerning. Again thanks for the report and discussions!

patched with 824620b