Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721366 - app-text/master-pdf-editor-5.4.38: fails with symbol lookup error: masterpdfeditor5: undefined symbol: _ZN10QMutexPool17globalInstanceGetEPKv, version Qt_5_PRIVATE_API
Summary: app-text/master-pdf-editor-5.4.38: fails with symbol lookup error: masterpdfe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: João Santos
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-07 06:19 UTC by Steven Trogdon
Modified: 2020-12-09 09:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Trogdon 2020-05-07 06:19:46 UTC
masterpdfeditor5 is provided by app-text/master-pdf-editor. The installed issue is with app-text/master-pdf-editor-5.4.38.

The failure:
$ masterpdfeditor5
masterpdfeditor5: symbol lookup error: masterpdfeditor5: undefined symbol: _ZN10QMutexPool17globalInstanceGetEPKv, version Qt_5_PRIVATE_API

$ readelf -d /opt/bin/masterpdfeditor5 

Dynamic section at offset 0x186fbd0 contains 39 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libsane.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libnss3.so]
 0x0000000000000001 (NEEDED)             Shared library: [libnspr4.so]
 0x0000000000000001 (NEEDED)             Shared library: [libsmime3.so]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5PrintSupport.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Widgets.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Gui.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Network.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Core.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000f (RPATH)              Library rpath: [/opt/Qt/5.9.8/gcc_64/lib]
 0x000000000000000c (INIT)               0x4683b0
 0x000000000000000d (FINI)               0x13e994c
 0x0000000000000019 (INIT_ARRAY)         0x1de2610
 0x000000000000001b (INIT_ARRAYSZ)       2688 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x1de3090
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x400298
 0x0000000000000005 (STRTAB)             0x411118
 0x0000000000000006 (SYMTAB)             0x400978
 0x000000000000000a (STRSZ)              95273 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x1e70000
 0x0000000000000002 (PLTRELSZ)           51312 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x45bb40
 0x0000000000000007 (RELA)               0x429e60
 0x0000000000000008 (RELASZ)             204000 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x429b40
 0x000000006fffffff (VERNEEDNUM)         13
 0x000000006ffffff0 (VERSYM)             0x428542
 0x0000000000000000 (NULL)               0x0

which suggests that perhaps the libraries provided with the tarball should be installed under /opt/Qt/5.9.8/gcc_64/lib. Manually installing the provided libraries under /opt/Qt/5.9.8/gcc_64/lib then gives.

 $ masterpdfeditor5
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted

So, this is not the complete fix. The ebuild requires
RDEPEND="
    >=dev-qt/qtcore-5.9.8:5
    >=dev-qt/qtgui-5.9.8:5
    >=dev-qt/qtnetwork-5.9.8:5
    >=dev-qt/qtprintsupport-5.9.8:5
    >=dev-qt/qtsvg-5.9.8:5
    >=media-gfx/sane-backends-1.0
"

I have
=dev-qt/qtcore-5.14.1-r1
=dev-qt/qtgui-5.14.1-r4
=dev-qt/qtnetwork-5.14.1
=dev-qt/qtprintsupport-5.14.1-r1
=dev-qt/qtsvg-5.14.1
=media-gfx/sane-backends-1.0.27-r3

installed.
Comment 1 Steven Trogdon 2020-05-07 16:44:35 UTC
The tarball has a masterpdfeditor5.sh script that exports LD_LIBRARY_PATH which may be needed to get things to work.
Comment 2 Steven Trogdon 2020-05-10 00:41:18 UTC
Running  masterpdfeditors5.sh, which exports a defined LD_LIBRARY_PATH:

/var/tmp/portage/app-text/master-pdf-editor-5.4.38/work/master-pdf-editor-5/masterpdfeditor5.sh

does open the GUI interface.
Comment 3 João Santos 2020-05-11 18:12:58 UTC
Are you using the latest app-text/master-pdf-editor-5.4.38-r1 ebuild?

This one makes master pdf editor use the bundled libraries so that this: "masterpdfeditor5: symbol lookup error: masterpdfeditor5: undefined symbol: _ZN10QMutexPool17globalInstanceGetEPKv, version Qt_5_PRIVATE_API", doesn't happen.
Comment 4 Steven Trogdon 2020-05-11 18:34:02 UTC
(In reply to João Santos from comment #3)
> Are you using the latest app-text/master-pdf-editor-5.4.38-r1 ebuild?
> 
> This one makes master pdf editor use the bundled libraries so that this:
> "masterpdfeditor5: symbol lookup error: masterpdfeditor5: undefined symbol:
> _ZN10QMutexPool17globalInstanceGetEPKv, version Qt_5_PRIVATE_API", doesn't
> happen.

Oh my! I thought my sync was up to date, but apparently no. OK, with -r1 I see

 * QA Notice: Unresolved soname dependencies:
 * 
 *      /opt/master-pdf-editor/platforms/libqeglfs.so: libQt5EglFSDeviceIntegration.so.5

and when the GUI starts (it does start) I see a bunch of qt.network.ssl complaints:

qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings
qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup
qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init
qt.network.ssl: QSslSocket: cannot resolve sk_new_null
qt.network.ssl: QSslSocket: cannot resolve sk_push
qt.network.ssl: QSslSocket: cannot resolve sk_free
qt.network.ssl: QSslSocket: cannot resolve sk_num
qt.network.ssl: QSslSocket: cannot resolve sk_pop_free
qt.network.ssl: QSslSocket: cannot resolve sk_value
qt.network.ssl: QSslSocket: cannot resolve SSL_library_init
qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
qt.network.ssl: QSslSocket: cannot resolve SSLeay
qt.network.ssl: QSslSocket: cannot resolve SSLeay_version
qt.network.ssl: QSslSocket: cannot call unresolved function SSLeay
qt.network.ssl: Incompatible version of OpenSSL

# eix -I dev-libs/openssl
[I] dev-libs/openssl
     Available versions:  1.0.2u^td ~1.1.0l(0/1.1)^td 1.1.1d-r3(0/1.1)^td 1.1.1f(0/1.1)^td 1.1.1g(0/1.1)^td {+asm bindist gmp kerberos rfc3779 sctp sslv2 (+)sslv3 static-libs test (+)tls-heartbeat vanilla zlib ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="sse2" ELIBC="musl"}
     Installed versions:  1.1.1g(0/1.1)^td(02:42:15 PM 04/23/2020)(asm zlib -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" ELIBC="-musl")
     Homepage:            https://www.openssl.org/
     Description:         full-strength general purpose cryptography library (including SSL and TLS)

Perhaps of no consequence.
Comment 5 João Santos 2020-05-12 09:19:09 UTC
(In reply to Steven Trogdon from comment #4)
> (In reply to João Santos from comment #3)
> > Are you using the latest app-text/master-pdf-editor-5.4.38-r1 ebuild?
> > 
> > This one makes master pdf editor use the bundled libraries so that this:
> > "masterpdfeditor5: symbol lookup error: masterpdfeditor5: undefined symbol:
> > _ZN10QMutexPool17globalInstanceGetEPKv, version Qt_5_PRIVATE_API", doesn't
> > happen.
> 
> Oh my! I thought my sync was up to date, but apparently no. OK, with -r1 I
> see
> 
>  * QA Notice: Unresolved soname dependencies:
>  * 
>  *      /opt/master-pdf-editor/platforms/libqeglfs.so:
> libQt5EglFSDeviceIntegration.so.5
> 
> and when the GUI starts (it does start) I see a bunch of qt.network.ssl
> complaints:
> 
> qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
> qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
> qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
> qt.network.ssl: QSslSocket: cannot resolve ERR_free_strings
> qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_cleanup
> qt.network.ssl: QSslSocket: cannot resolve EVP_CIPHER_CTX_init
> qt.network.ssl: QSslSocket: cannot resolve sk_new_null
> qt.network.ssl: QSslSocket: cannot resolve sk_push
> qt.network.ssl: QSslSocket: cannot resolve sk_free
> qt.network.ssl: QSslSocket: cannot resolve sk_num
> qt.network.ssl: QSslSocket: cannot resolve sk_pop_free
> qt.network.ssl: QSslSocket: cannot resolve sk_value
> qt.network.ssl: QSslSocket: cannot resolve SSL_library_init
> qt.network.ssl: QSslSocket: cannot resolve SSL_load_error_strings
> qt.network.ssl: QSslSocket: cannot resolve SSL_get_ex_new_index
> qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
> qt.network.ssl: QSslSocket: cannot resolve SSLv23_client_method
> qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
> qt.network.ssl: QSslSocket: cannot resolve SSLv23_server_method
> qt.network.ssl: QSslSocket: cannot resolve X509_STORE_CTX_get_chain
> qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
> qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
> qt.network.ssl: QSslSocket: cannot resolve SSLeay
> qt.network.ssl: QSslSocket: cannot resolve SSLeay_version
> qt.network.ssl: QSslSocket: cannot call unresolved function SSLeay
> qt.network.ssl: Incompatible version of OpenSSL
> 
> # eix -I dev-libs/openssl
> [I] dev-libs/openssl
>      Available versions:  1.0.2u^td ~1.1.0l(0/1.1)^td 1.1.1d-r3(0/1.1)^td
> 1.1.1f(0/1.1)^td 1.1.1g(0/1.1)^td {+asm bindist gmp kerberos rfc3779 sctp
> sslv2 (+)sslv3 static-libs test (+)tls-heartbeat vanilla zlib ABI_MIPS="n32
> n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32"
> CPU_FLAGS_X86="sse2" ELIBC="musl"}
>      Installed versions:  1.1.1g(0/1.1)^td(02:42:15 PM 04/23/2020)(asm zlib
> -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla
> ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64"
> ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" ELIBC="-musl")
>      Homepage:            https://www.openssl.org/
>      Description:         full-strength general purpose cryptography library
> (including SSL and TLS)
> 
> Perhaps of no consequence.

I have the same unresolved dependencies, but I am not sure how to fix it at the moment.

Despite this, everything seems to be working so I will investigate this but maybe we can close the bug?
Comment 6 Martin Mokrejš 2020-11-04 15:28:29 UTC
5.6.49 is out.
Comment 7 Steven Trogdon 2020-11-06 01:29:07 UTC
Version app-text/master-pdf-editor-5.6.42 in the main tree seems to be function properly.
Comment 8 Larry the Git Cow gentoo-dev 2020-12-09 09:42:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcefad64f0ea2f1527567595fe9b54c3c4a25597

commit bcefad64f0ea2f1527567595fe9b54c3c4a25597
Author:     Joao Santos <joaompssantos@gmail.com>
AuthorDate: 2020-12-03 10:29:51 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-12-09 09:42:41 +0000

    app-text/master-pdf-editor: version bump to 5.6.80
    
    Closes: https://bugs.gentoo.org/721366
    Closes: https://bugs.gentoo.org/740212
    Closes: https://bugs.gentoo.org/722478
    Closes: https://bugs.gentoo.org/626722
    Signed-off-by: João Santos <joaompssantos@gmail.com>
    Package-Manager: Portage-3.0.11, Repoman-3.0.2
    Closes: https://github.com/gentoo/gentoo/pull/18483
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-text/master-pdf-editor/Manifest                |  1 +
 .../master-pdf-editor-5.6.80.ebuild                | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)