/var/tmp/portage/media-libs/audiofile-0.3.6-r5/temp/build.log http://0x0.st/HOmT.log /etc/portage/make.conf http://0x0.st/HOmA.conf clang profile + lto + O3 + debug symbols + native error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct rshift : public std::unary_function<Arg, Result>b
/var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:128:40: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:133:40: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct unsignedToSigned : public std::unary_function<SignedType, UnsignedType> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:326:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct intToFloat : public std::unary_function<Arg, Result> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:392:29: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct lshift : public std::unary_function<Arg, Result> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:398:29: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct rshift : public std::unary_function<Arg, Result> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:494:35: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct floatToFloat : public std::unary_function<Arg, Result> ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ In file included from /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/ALAC.cpp:29: /var/tmp/portage/media-libs/audiofile-0.3.6-r5/work/audiofile-0.3.6/libaudiofile/modules/SimpleModule.h:544:13: warning: private field 'm_inFormat' is not used [-Wunused-private-field] FormatCode m_inFormat, m_outFormat; ^ 1 warning and 6 errors generated.
successfully compiles if CXXFLAGS="${CXXFLAGS_CLANG} -stdlib=libstdc++"
Created attachment 870820 [details] build log from portage
Created attachment 870821 [details] /etc/portage/make.conf . clang profile.
Upstream bug report: https://github.com/mpruett/audiofile/issues/65
Created attachment 887658 [details, diff] resolves the Clang deprecation errors
The patch applies and works as expected. Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8bb7f1065bf5701e62f118b5ef7cf727543d0de commit b8bb7f1065bf5701e62f118b5ef7cf727543d0de Author: NHOrus <jy6x2b32pie9@yahoo.com> AuthorDate: 2024-04-02 08:13:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-09 00:34:07 +0000 media-libs/audiofile: replace deprecated template unary_function Adds the patch from the bug to the tree. [sam: Add bug ref to patch.] Closes: https://bugs.gentoo.org/914349 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/36054 Signed-off-by: Sam James <sam@gentoo.org> media-libs/audiofile/audiofile-0.3.6-r6.ebuild | 59 +++++++++++++++++++ .../files/audiofile-0.3.6-clang-deprecation.patch | 68 ++++++++++++++++++++++ 2 files changed, 127 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a3620bbf11ca091249fb40f523f0f3444d9065f commit 7a3620bbf11ca091249fb40f523f0f3444d9065f Author: Sam James <sam@gentoo.org> AuthorDate: 2024-05-09 00:47:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-09 00:47:39 +0000 media-libs/audiofile: add upstream bug ref to patch Bug: https://bugs.gentoo.org/914349 Signed-off-by: Sam James <sam@gentoo.org> media-libs/audiofile/files/audiofile-0.3.6-clang-deprecation.patch | 1 + 1 file changed, 1 insertion(+)