Opened 4 months ago

Last modified 4 months ago

#58722 assigned defect

mythtv-core @0.28: Build error on Mojave

Reported by: y-lee (Yeechang Lee) Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: mojave Cc:
Port: mythtv-core.28

Description (last modified by y-lee (Yeechang Lee))

After upgrading to MacOS 10.14 Mojave from 10.13 High Sierra and migrating Macports, I could not build mythtv-core.26 which I'd been maintaining locally after being marked obsolete in the Macports tree. When building mythtv-core.28, I see

:info:build tv_play.cpp:216:34: error: reference member 'm_menu' binds to a temporary object whose lifetime would be shorter than the lifetime of the constructed object                                                                        
:info:build     MenuNodeTuple(void) : m_menu(MenuBase()) {}                     
:info:build                                  ^~~~~~~~~~
:info:build tv_play.cpp:217:21: note: reference member declared here            
:info:build     const MenuBase &m_menu;                                         
:info:build                     ^

Full log attached.

Attachments (1)

main.log (3.9 MB) - added by y-lee (Yeechang Lee) 4 months ago.
Compile log

Change History (4)

Changed 4 months ago by y-lee (Yeechang Lee)

Attachment: main.log added

Compile log

comment:1 Changed 4 months ago by y-lee (Yeechang Lee)

Description: modified (diff)

comment:2 Changed 4 months ago by mf2k (Frank Schima)

Cc: ctreleaven removed
Owner: set to ctreleaven
Status: newassigned

comment:3 Changed 4 months ago by Gribnif

I also ran into this when compiling v30. I changed the code at line 219 of tv_play.cpp to:

const MenuBase m_menu;

and it then compiled.

Note: See TracTickets for help on using tickets.