Bug 2278547 - mame won't start "symbol lookup error: mame: undefined symbol"
Summary: mame won't start "symbol lookup error: mame: undefined symbol"
Keywords:
Status: CLOSED DUPLICATE of bug 2277557
Alias: None
Product: Fedora
Classification: Fedora
Component: mame
Version: 40
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Julian Sikorski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-01 23:34 UTC by skierpage
Modified: 2024-05-01 23:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-01 23:37:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description skierpage 2024-05-01 23:34:01 UTC
Description of problem:
After upgrading to Fedora 40, /usr/bin/mame fails to start

Version-Release number of selected component (if applicable):
mame-0.264-1.fc40.src.rpm

How reproducible:
Every time.

Steps to Reproduce:
0. (optional) rename existing ~/.mame just in case.
1. /usr/bin/mame
2. echo $?

Actual results:
mame: symbol lookup error: mame: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm, version Qt_6

exit code 127

Expected results:
At least it starts.

Additional info:
Mame worked fine on Fedora 39 for me, though I hadn't run it for a few months.
I did `sudo dnf reinstall mame` just in case.

I looked for this symbol /usr/bin/mame and many of its libraries seem to invoke it:
  % eu-readelf --all /usr/bin/mame | rg '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmm'
  0x0000000012cba0b8  X86_64_JUMP_SLOT 000000000000000000      +0 _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm

Mame uses /usr/lib64/libQt6Core.so.6, `ldd` reports its dependencies, and I found something like the missing symbol in libstdc++ :
  % eu-readelf /usr/lib64/libstdc++.so.6  --symbols $i | rg 'basic_string.*char_traits.*mutate' 
   5334: 0000000000159f10    298 FUNC    WEAK   DEFAULT       14 _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm@@GLIBCXX_3.4.21

but I don't really understand library symbol resolution.

Comment 1 skierpage 2024-05-01 23:37:46 UTC
I think this is a dupe of an existing bug (I looked before filing, maybe I searched for "symbol lookup error", not "undefined symbol")

*** This bug has been marked as a duplicate of bug 2277557 ***


Note You need to log in before you can comment on or make changes to this bug.