auto_ptr was deprecated in C++11 and removed in C++17. This bug appears to stem from log4cplus, where auto_ptr was replaced with unique_ptr in the 2.0 release. There appears to have been some attempt to fix this in the openvdb upstream with the LOG4CPLUS_VERSION check, but at least for me that variable ends up being undefined. I've put together a patch that includes the log4cplus/version.h header which defines LOG4CPLUS_VERSION but I don't know if it's the best way to go about fixing this. Reproducible: Always Steps to Reproduce: 1. emerge -av1 openvdb
Created attachment 858141 [details] Build log
Created attachment 858143 [details, diff] Patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177134bd1b059a651d7644a0c983444b4d122db4 commit 177134bd1b059a651d7644a0c983444b4d122db4 Author: Violet Purcell <vimproved@inventati.org> AuthorDate: 2023-07-09 14:18:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-07-11 04:34:19 +0000 media-gfx/openvdb: Fix usage of removed std::auto_ptr auto_ptr was deprecated in C++11 and removed in C++17. This bug appears to step from log4cplus, where auto_ptr was replaced with unique_ptr in the 2.0 release. OpenVDB attempts to check for this with the LOG4CPLUS_VERSION macro, however it's defined in the log4cplus/version.h header, which is never included. This patch adds the missing include, which fixes the issue with std::auto_ptr. Closes: https://bugs.gentoo.org/901991 Signed-off-by: Violet Purcell <vimproved@inventati.org> Closes: https://github.com/gentoo/gentoo/pull/31812 Signed-off-by: Sam James <sam@gentoo.org> .../openvdb/files/openvdb-10.0.1-log4cplus-version.patch | 14 ++++++++++++++ media-gfx/openvdb/openvdb-10.0.1.ebuild | 1 + 2 files changed, 15 insertions(+)