FS#62752 - [libmatroska] Not linked to libebml

Attached to Project: Arch Linux
Opened by Batou (Batou) - Monday, 27 May 2019, 01:36 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 27 May 2019, 14:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When starting the GUI, I get this error:

mkvtoolnix-gui: symbol lookup error: /usr/lib/libmatroska.so.6: undefined symbol: _ZTIN7libebml10EbmlMasterE

and the program fails to start.

Additional info:
* package version(s)

mkvtoolnix-cli 34.0.0-1
mkvtoolnix-gui 34.0.0-1
libmatroska-1.5.1-1

Steps to reproduce:
Just run /usr/bin/mkvtoolnix-gui from the command line.

I've tried reinstalling extra/libmatroska but that did not fix it.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Monday, 27 May 2019, 14:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  libebml-1.3.9-1
libmatroska-1.5.2-1
Comment by Antonio Rojas (arojas) - Monday, 27 May 2019, 06:15 GMT
pacman -Qs libebml ?
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 08:08 GMT
MKVToolNix author here. It seems that the Arch package maintainers for libebml/libmatroska compiled those packages wrong, or in the wrong order or something like that. I can see your problem with the current Arch packages (libebml = 1.3.8-1, libmatroska = 1.5.1-1). I cannot even compile & link MKVToolNix from source against those two versions.

However, when I compile libebml 1.3.8 and libmatroska 1.5.1 from source, I can compile MKVToolNix against those self-compiled libraries, and the resulting mkvmerge works fine.

The solution should be to rebuild libebml 1.3.8 first, then rebuild libmatroska 1.5.1.
Comment by Antonio Rojas (arojas) - Monday, 27 May 2019, 08:19 GMT
No, libmatroska is correctly compiled against libebml 1.3.8. Please attach the full output of 'LD_DEBUG=files mkvtoolnix-gui'
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 08:28 GMT
Using mkvmerge, not mkvtoolnix-gui; same issue.
Comment by Antonio Rojas (arojas) - Monday, 27 May 2019, 08:35 GMT
and 'ldd /lib/libmatroska.so.6'?
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 08:40 GMT
It seems to happen in release mode only. This is rather bad, obviously — I'll open a bug for libEBML & libMatroska shortly. For the time being please either pull both library updates & revert to the previous versions or rebuild the current versions without -DCMAKE_BUILD_TYPE=Release. Thanks.
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 08:43 GMT
$ ldd /usr/lib/libmatroska.so.6
linux-vdso.so.1 (0x00007fff295f7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f983790a000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f98378f0000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f983772b000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f98375e5000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f9837b62000)
$

Not linked to libebml, it seems.

The problem is not due to building shared libraries. It happens with static versions, too; in that case when trying to link any of the MKVToolNix binaries.
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 08:57 GMT
This is the bug for libEBML tracking the problem: https://github.com/Matroska-Org/libebml/issues/50
Comment by Moritz Bunkus (mbunkus) - Monday, 27 May 2019, 14:00 GMT
New releases of both libraries have been made which should fix the issue.
Comment by Maxime Gauduin (Alucryd) - Monday, 27 May 2019, 14:34 GMT
New releases are up, fix confirmed!

Loading...