Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#68276 closed defect (fixed)

qt5-qtmultimedia @5.15.10: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?

Reported by: ddrum2000 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: chrstphrchvz (Christopher Chavez), MaddTheSane (C.W. Betts)
Port: qt5-qtmultimedia

Description

This port recently stopped building. I think the relevant line from the log are:

:info:build ld: warning: -single_module is obsolete
:info:build mv -f libdeclarative_audioengine.dylib ../../../qml/QtAudioEngine/libdeclarative_audioengine.dylib
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/work/qtmultimedia-everywhere-src-5.15.10/src/imports/audioengine'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/work/qtmultimedia-everywhere-src-5.15.10/src/imports'
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/work/qtmultimedia-everywhere-src-5.15.10/src'
:info:build make: *** [sub-src-make_first] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/work/qtmultimedia-everywhere-src-5.15.10'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/work/qtmultimedia-everywhere-src-5.15.10" && /usr/bin/make -j8 -w 
:info:build Exit code: 2
:error:build Failed to build qt5-qtmultimedia: command execution failed
:debug:build Error code: CHILDSTATUS 98211 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtmultimedia/main.log for details.

I've attached the whole log as well. Thanks ahead of time.

Attachments (1)

main.log (1.1 MB) - added by ddrum2000 14 months ago.

Download all attachments as: .zip

Change History (12)

Changed 14 months ago by ddrum2000

Attachment: main.log added

comment:1 Changed 14 months ago by chrstphrchvz (Christopher Chavez)

Fix for qt5-qtmultimedia proposed in https://github.com/macports/macports-ports/pull/20629

To the reporter: please remember to set a ticket’s port field and to specify maintainer(s) in owner/cc fields. https://guide.macports.org/chunked/project.html#project.tickets.guidelines

Last edited 14 months ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:2 Changed 14 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:3 Changed 14 months ago by ddrum2000

Port: qt5-qtmultimedia added

comment:4 Changed 14 months ago by ddrum2000

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:5 in reply to:  1 Changed 14 months ago by ddrum2000

Replying to chrstphrchvz:

Fix proposed in https://github.com/macports/macports-ports/pull/20629

To the reporter: please remember to set a ticket’s port field and to specify maintainer(s) in owner/cc fields. https://guide.macports.org/chunked/project.html#project.tickets.guidelines

Sorry about that. Hopefully I addressed your request

comment:6 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added
Summary: qt5-qtmultimedia @5.15.10qt5-qtmultimedia @5.15.10: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?

comment:7 Changed 14 months ago by MaddTheSane (C.W. Betts)

This also affects qt6-qtmultimedia.

comment:8 Changed 14 months ago by MaddTheSane (C.W. Betts)

Cc: MaddTheSane added

comment:9 in reply to:  7 Changed 14 months ago by chrstphrchvz (Christopher Chavez)

Replying to MaddTheSane:

This also affects qt6-qtmultimedia.

The fix for qt6-qtmultimedia is proposed in https://github.com/macports/macports-ports/pull/20633

comment:10 Changed 14 months ago by Mark Mentovai <mark@…>

Resolution: fixed
Status: assignedclosed

In 90c8819f31d3c7e78ebf8e1516cbf6447c7d42bd/macports-ports (master):

qt5-qtmultimedia: fix build in Xcode 15

In Xcode 15 clang in C++17 mode, std::unary_function, deprecated since
C++11, has been removed.

Fixes: #68276

comment:11 Changed 14 months ago by chrstphrchvz (Christopher Chavez)

In 8e9fc400d8a6dee51041faed118bdd443212aef7/macports-ports (master):

qt6-qtmultimedia: prevent Xcode 15 build failure

See: #68276#comment:7

Note: See TracTickets for help on using tickets.