cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
180 stars 47 forks source link

🐛 [Bug Report] [Boost] [Warning] The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated #3739

Open adellaci opened 4 months ago

adellaci commented 4 months ago

Bug Details

Boost version 1.74.0 C & C++ compiler 12.3.0

In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
                 from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
                 from /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
                 from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42,
                 from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/boost/date_time/time_clock.hpp:17,
                 from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:10,
                 from /usr/include/boost/asio/time_traits.hpp:23,
                 from /usr/include/boost/asio/detail/timer_queue_ptime.hpp:22,
                 from /usr/include/boost/asio/detail/deadline_timer_service.hpp:29,
                 from /usr/include/boost/asio/basic_deadline_timer.hpp:25,
                 from /usr/include/boost/asio.hpp:25,
                 from /home/mangos/cmangos/wotlk/src/mangosd/Master.h:29,
                 from /home/mangos/cmangos/wotlk/src/mangosd/Master.cpp:24:
/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(
      | ^~~~~~~~~~~~~~~~~~~~

Steps to Reproduce

  1. Compile

  2. cmake \~/cmangos/wotlk -DCMAKE_INSTALL_PREFIX=~\/wow-servers/wotlk -DBUILD_EXTRACTORS=ON -DBUILD_SCRIPTDEV=ON -DBUILD_AHBOT=ON -DBUILD_PLAYERBOT=OFF -DBUILD_DEPRECATED_PLAYERBOT=ON -DPCH=1 -DDEBUG=0 -DBUILD_RECASTDEMOMOD=OFF -DBUILD_DOCS=OFF -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF; make -j12

Expected behavior

No response

Suggested Workaround

No response

Crash Log

No response

Core SHA1 Commit Hash

547c0eb3d21ea2cc6c3e3f3f33677444e2a4a245

Database SHA1 Commit Hash

N?A

Operating System

Ubuntu Server LTS 22.04

Client Version

3.3.5a (Wrath of the Lich King)