Opened 13 months ago

Last modified 13 months ago

#68523 new defect

botan1 @1.10.17_2 Error: no template named 'function' in namespace 'std'

Reported by: jariperttunen Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: botan1

Description

macOS 14.0 Apple M1 iMac Xcode 15.0.1

--->  Computing dependencies for botan1
--->  Fetching archive for botan1
--->  Attempting to fetch botan1-1.10.17_2.darwin_23.arm64.tbz2 from https://packages.macports.org/botan1
--->  Attempting to fetch botan1-1.10.17_2.darwin_23.arm64.tbz2 from https://cph.dk.packages.macports.org/botan1
--->  Attempting to fetch botan1-1.10.17_2.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/botan1
--->  Building botan1
Error: Failed to build botan1: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_botan1/botan1/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port botan1 failed

Attachments (1)

main.log (159.7 KB) - added by jariperttunen 13 months ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 13 months ago by jariperttunen

Attachment: main.log added

main.log

comment:1 Changed 13 months ago by jmroot (Joshua Root)

Port: qt4-creator-mac removed
Summary: botan1 @1.10.17_2 Error: Failed to build botan1: command execution failedbotan1 @1.10.17_2 Error: no template named 'function' in namespace 'std'
:info:build In file included from src/ssl/c_kex.cpp:8:
:info:build In file included from build/include/botan/internal/tls_messages.h:11:
:info:build build/include/botan/tls_record.h:55:26: error: no template named 'function' in namespace 'std'
:info:build       Record_Writer(std::function<void (const byte[], size_t)> output_fn);
:info:build                     ~~~~~^

comment:2 Changed 13 months ago by kencu (Ken)

Relevant:

https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes

The _LIBCPP_ENABLE_CXX03_FUNCTION macro that allowed re-enabling the now-deprecated C++03 implementation of std::function has been removed. Users who need to use std::function should switch to C++11 and above.

comment:3 Changed 13 months ago by jariperttunen

Regarding comment2 by kencu is the problem in MacPorts configuration of the botan1 (corrected by the botan1 port provider some day in the future)
or do the user of the port (i.e. me) have to try to figure out to do something on the basis of the Xcode 15 release notes to be able to install the port?
(qt4-creator-mac is the port I need but it depends on botan1)?

Note: See TracTickets for help on using tickets.