FS#63633 - [calibre] ebook-convert

Attached to Project: Community Packages
Opened by Phil Schaf (flying-sheep) - Tuesday, 03 September 2019, 06:54 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 03 September 2019, 11:56 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

 FS#45612  resurfaced. The package author says it’s not an upstream bug: https://bugs.launchpad.net/calibre/+bug/1842344

The full error indicates that some private API is used. I used the env variable LD_DEBUG to tease it into telling us more:

15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=python2 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libpthread.so.0 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libc.so.6 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libpython2.7.so.1.0 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/lib64/ld-linux-x86-64.so.2 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libdl.so.2 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libutil.so.1 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libm.so.6 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/calibre/calibre/plugins/libheadless.so [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libfontconfig.so.1 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libfreetype.so.6 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libglib-2.0.so.0 [0]
15635: symbol=_ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb; lookup in file=/usr/lib/libQt5Gui.so.5 [0]
15635: /usr/lib/calibre/calibre/plugins/libheadless.so: error: relocation error: symbol _ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference (fatal)
15635:
15635: file=/usr/lib/calibre/calibre/plugins/libheadless.so [0]; destroying link map
15635:
15635: file=/usr/lib/libfontconfig.so.1 [0]; destroying link map
Cannot load library /usr/lib/calibre/calibre/plugins/libheadless.so: (/usr/lib/calibre/calibre/plugins/libheadless.so: symbol _ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/usr/lib/calibre/calibre/plugins/libheadless.so" : "Cannot load library /usr/lib/calibre/calibre/plugins/libheadless.so: (/usr/lib/calibre/calibre/plugins/libheadless.so: symbol _ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)"
qt.qpa.plugin: Could not find the Qt platform plugin "headless" in "/usr/lib/calibre/calibre/plugins"
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: headless (from /usr/lib/calibre/calibre/plugins), wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

[1] 15635 abort (core dumped) QT_DEBUG_PLUGINS=1 LD_DEBUG=all ebook-convert ward.html ward.mobi --authors
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 03 September 2019, 11:56 GMT
Reason for closing:  Not a bug
Additional comments about closing:  AUR package was not rebuilt for qt5 update.
Comment by Phil Schaf (flying-sheep) - Tuesday, 03 September 2019, 06:55 GMT
Sorry, the title should have been “ebook-convert crashes with Qt 5.13”
Comment by Antonio Rojas (arojas) - Tuesday, 03 September 2019, 08:13 GMT
This doesn't make any sense. That symbol was removed in Qt 5.13 so there's no way that Calibre compiled against 5.13 can use it. Are you sure you're using the latest, unmodified, calibre version from the repos?
Comment by Eli Schwartz (eschwartz) - Tuesday, 03 September 2019, 11:05 GMT
As I said in that very bug, "Arch Linux has built calibre using qt5.13 since June 19 and it works fine". So I second what arojas said...
Comment by Phil Schaf (flying-sheep) - Tuesday, 03 September 2019, 11:12 GMT
Sorry, my fault: I forgot that I installed calibre-git to try out calibre-python3-git.
Comment by Eli Schwartz (eschwartz) - Tuesday, 03 September 2019, 11:56 GMT
That's why I specifically asked on the upstream bug report "are you using a distribution package or self compiled package" and "usually this means you need to rebuild".

:/

Loading...