[MacPorts] #71116: clucene @2.3.3.4: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'? (was: Build of libreoffice fails)

MacPorts noreply at macports.org
Fri Oct 18 18:32:35 UTC 2024


#71116: clucene @2.3.3.4: error: no template named 'binary_function' in namespace
'std'; did you mean '__binary_function'?
--------------------------+-----------------------------
  Reporter:  graywolf-s1  |      Owner:  dinh.viet.hoa@…
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.10.2
Resolution:               |   Keywords:
      Port:  clucene      |
--------------------------+-----------------------------
Changes (by ryandesign):

 * owner:  Tatsh => dinh.viet.hoa@…
 * port:  libreoffice => clucene


Comment:

 The log shows the problem configuring libreoffice is:

 {{{
 configure:24502: checking for CLucene/analysis/cjk/CJKAnalyzer.h
 configure:24502: /usr/bin/clang++ -c -pipe
 -I/opt/local/libexec/boost/1.76/include -Os -std=gnu++17 -stdlib=libc++
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk
 -arch arm64 -isystem /opt/local/include/CLucene/ext
 -I/opt/local/libexec/boost/1.76/include -I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk
 -isystem /opt/local/include/CLucene/ext conftest.cpp >&5
 In file included from conftest.cpp:92:
 In file included from /opt/local/include/CLucene.h:12:
 In file included from /opt/local/include/CLucene/index/IndexReader.h:12:
 In file included from /opt/local/include/CLucene/util/VoidList.h:10:
 /opt/local/include/CLucene/util/Equators.h:25:53: error: no template named
 'binary_function' in namespace 'std'; did you mean '__binary_function'?
 }}}

 `std::binary_function` used to be part of C++ but was deprecated in C++11
 and removed in C++17.

 clucene will need to be updated or patched so that it no longer uses
 `std::binary_function`.

-- 
Ticket URL: <https://trac.macports.org/ticket/71116#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list