build: boost, prevent use of std::unary_function#640
Merged
Conversation
For Boost 1.72 we should use -D_HAS_AUTO_PTR_ETC=0, for newer versions -DBOOST_NO_CXX98_FUNCTION_BASE. - boostorg/container_hash@fd310d2 - boostorg/functional@6a573e4 - bitcoin/bitcoin@880d4aa - bitcoin/bitcoin@d4c59da - DeckerSU/KomodoOcean@0742048 This will remove warnings like the one shown below during build with GCC 13: ``` /home/decker/komodo/depends/x86_64-unknown-linux-gnu/share/../include/boost/container_hash/hash.hpp:130:33: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations] 130 | struct hash_base : std::unary_function<T, std::size_t> {}; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/13/string:49, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /home/decker/komodo/depends/x86_64-unknown-linux-gnu/share/../include/gtest/gtest.h:55, from test-komodo/test_legacy_events.cpp:1: /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ```
TheComputerGenie
pushed a commit
to ComputerGenieCo/komodo
that referenced
this pull request
Sep 12, 2025
* build: boost, prevent use of std::unary_function For Boost 1.72 we should use -D_HAS_AUTO_PTR_ETC=0, for newer versions -DBOOST_NO_CXX98_FUNCTION_BASE. - boostorg/container_hash@fd310d2 - boostorg/functional@6a573e4 - bitcoin/bitcoin@880d4aa - bitcoin/bitcoin@d4c59da - DeckerSU/KomodoOcean@0742048 This will remove warnings like the one shown below during build with GCC 13: ``` /home/decker/komodo/depends/x86_64-unknown-linux-gnu/share/../include/boost/container_hash/hash.hpp:130:33: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations] 130 | struct hash_base : std::unary_function<T, std::size_t> {}; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/13/string:49, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /home/decker/komodo/depends/x86_64-unknown-linux-gnu/share/../include/gtest/gtest.h:55, from test-komodo/test_legacy_events.cpp:1: /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ ``` * build: add BOOST_CPPFLAGS display for configure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Boost 1.72 we should use -D_HAS_AUTO_PTR_ETC=0, for newer versions
-DBOOST_NO_CXX98_FUNCTION_BASE.
This will remove warnings like the one shown below during build with GCC 13: