Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910494 - media-libs/exempi-2.6.3 - In file included from PluginManager.cpp:13: ./XMPAtoms.h:86:29: error: no template named 'binary_function' in namespace 'std' (clang-16)
Summary: media-libs/exempi-2.6.3 - In file included from PluginManager.cpp:13: ./XMPAt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-07-18 15:35 UTC by ernsteiswuerfel
Modified: 2023-08-22 07:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (exempi-2.6.3:20230718-172519.log,500.58 KB, text/plain)
2023-07-18 15:35 UTC, ernsteiswuerfel
Details
emerge --info (file_910494.txt,7.47 KB, text/plain)
2023-07-18 15:35 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-07-18 15:35:20 UTC
Created attachment 865742 [details]
build.log

Fails with clang-16 but builds fine with clang-15.

[...]
libtool: compile:  clang++ "-DPACKAGE_NAME=\"exempi\"" "-DPACKAGE_TARNAME=\"exempi\"" "-DPACKAGE_VERSION=\"2.6.3\"" "-DPACKAGE_STRING=\"exempi 2.6.3\"" "-DPACKAGE_BUGREPORT=\"\"" "-DPACKAGE_URL=\"\"" "-DPACKAGE=\"exempi\"" "-DVERSION=\"2.6.3\"" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 "-DLT_OBJDIR=\".libs/\"" -DHAVE_CXX11=1 -DCHECKED_ENDIANNESS=1 -DHAVE_ICONV=1 -DICONV_CONST= -DTLS=__thread -DHAVE_NATIVE_TLS=1 -I. -I../../.. -I../../../public/include -I../../../XMPFilesPlugins/api/source/ -Wall -DUNIX_ENV=1 -DXMP_IMPL=1 -DXMP_ClientBuild=0 -DXMP_StaticBuild=1 -DBanAllEntityUsage=1 -D_FILE_OFFSET_BITS=64 -DHAVE_EXPAT_CONFIG_H=1 -DXML_STATIC=1 -DDISABLE_QUICKTIME -Wno-multichar -Wno-ctor-dtor-privacy -funsigned-char -fexceptions -fno-strict-aliasing -O2 -march=x86-64-v2 -pipe -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wheader-guard -Wformat -Werror=bitwise-instead-of-logical -Wformat-security -Wlogical-not-parentheses -Werror=misleading-indentation -Wmissing-noreturn -Werror=missing-field-initializers -Woverloaded-virtual -Wpointer-arith -Wgnu-array-member-paren-init -Wpointer-bool-conversion -Wshadow -Wsign-compare -Wnull-conversion -Wunreachable-code -Wunused -Wwrite-strings -c PluginManager.cpp  -fPIC -DPIC -o .libs/PluginManager.o
In file included from PluginManager.cpp:13:
./XMPAtoms.h:86:29: error: no template named 'binary_function' in namespace 'std'; did you
      mean '__binary_function'?
struct StringCompare : std::binary_function<const std::string &, const std::string &, bool>
                       ~~~~~^~~~~~~~~~~~~~~
                            __binary_function
/usr/include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared
      here
using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
^
1 error generated.
make[3]: *** [Makefile:500: PluginManager.lo] Error 1
Comment 1 ernsteiswuerfel archtester 2023-07-18 15:35:47 UTC
Created attachment 865743 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-08-22 07:24:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad4d831484211ce970eb3028a8b4a3dc8e05044b

commit ad4d831484211ce970eb3028a8b4a3dc8e05044b
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-22 09:24:48 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-08-22 06:49:55 +0000

    media-libs/exempi: Fix no template named binary_function in namespace
    
    Closes: https://bugs.gentoo.org/910494
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31997
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-libs/exempi/exempi-2.6.3-r1.ebuild           | 68 ++++++++++++++++++++++
 .../exempi-2.6.3-clang16-binary_function.patch     | 33 +++++++++++
 2 files changed, 101 insertions(+)