Opened 3 weeks ago
Last modified 3 weeks ago
#71116 assigned defect
clucene @2.3.3.4: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
Reported by: | graywolf-s1 | Owned by: | dinh.viet.hoa@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.2 |
Keywords: | haspatch | Cc: | |
Port: | clucene |
Description
I tried to install libreoffice but the build seems to fail:
$ sudo port install libreoffice ---> Computing dependencies for libreoffice ---> Fetching archive for libreoffice ---> Attempting to fetch libreoffice-7.6.4.1_0.darwin_23.arm64.tbz2 from https://vie.at.packages.macports.org/libreoffice ---> Attempting to fetch libreoffice-7.6.4.1_0.darwin_23.arm64.tbz2 from https://packages.macports.org/libreoffice ---> Attempting to fetch libreoffice-7.6.4.1_0.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/libreoffice ---> Fetching distfiles for libreoffice ---> Attempting to fetch libreoffice-7.6.4.1.tar.xz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch libreoffice-dictionaries-7.6.4.1.tar.xz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch libreoffice-translations-7.6.4.1.tar.xz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch dtoa-20180411.tgz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch libcmis-0.6.1.tar.xz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch skia-m111-a31e897fb3dcbc96b2b40999751611d029bf5404.tar.xz from https://vie.at.distfiles.macports.org/libreoffice ---> Attempting to fetch nss-3.90-with-nspr-4.35.tar.gz from https://vie.at.distfiles.macports.org/libreoffice ---> Verifying checksums for libreoffice ---> Extracting libreoffice ---> Applying patches to libreoffice ---> Configuring libreoffice Error: Failed to configure libreoffice: consult /opt/local/var/macports/build/_Users_tomas.volf_src_ports_office_libreoffice/libreoffice/work/libreoffice-7.6.4.1/config.log Error: Failed to configure libreoffice: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_Users_tomas.volf_src_ports_office_libreoffice/libreoffice/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port libreoffice failed
Looking into the build log, I see this error:
:info:configure checking for CLucene/analysis/cjk/CJKAnalyzer.h... no :info:configure configure: error: Your version of libclucene has contribs-lib missing.
Full build log attached.
Attachments (2)
Change History (6)
Changed 3 weeks ago by graywolf-s1
comment:1 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to Tatsh |
---|---|
Status: | new → assigned |
Please attach the config.log.
comment:3 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from Tatsh to dinh.viet.hoa@… |
---|---|
Port: | clucene added; libreoffice removed |
Summary: | Build of libreoffice fails → clucene @2.3.3.4: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'? |
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
.
comment:4 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
clucene development appears to have come to an end in 2013 but a patch for this problem is available from gentoo and was copied by freebsd.
Note: See
TracTickets for help on using
tickets.
Build log