Ticket #4801 (closed task: wontfix)
Installation problem
| Reported by: | westend | Owned by: | kovidgoyal |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | Default | Version: | |
| Keywords: | Cc: |
Description
After recent update of libjpeg and libpng required and all dependent packages in Archlinux, installation of Calibre is finished with message:
"Setting up desktop integration... /bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_filename_rewrite_hook
WARNING Setting up desktop integration failed with error:
Traceback (most recent call last):
File "/home/kovid/build/calibre/src/calibre/linux.py", line 356, in setup_desktop_integration File "/usr/lib64/python2.6/subprocess.py", line 488, in check_call
Called Process Error?: Command 'xdg-icon-resource install --noupdate --context mimetypes --size 128 calibre-lrf.png application-lrf' returned non-zero exit status 127
There were 1 warnings
- Setting up desktop integration failed with error:"
It is still possible to run Calibre, but any feature does not work. For example, an attempt to view a book is finished with error:
ERROR: ERROR: Unhandled exception: <b>Critical Error?</b>:Failed to launch worker process: Traceback (most recent call last):
File "/home/kovid/build/calibre/src/calibre/utils/ipc/server.py", line 143, in do_launch File "/usr/lib64/python2.6/multiprocessing/connection.py", line 110, in accept File "/usr/lib64/python2.6/multiprocessing/connection.py", line 232, in accept File "/usr/lib64/python2.6/socket.py", line 195, in accept
error: [Errno 4] Interrupted system call
Traceback (most recent call last):
File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 1662, in view_book File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 1700, in _view_books File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 1583, in view_format File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 1628, in _view_file File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 1609, in _launch_viewer File "/home/kovid/build/calibre/src/calibre/gui2/jobs.py", line 205, in launch_gui_app File "/home/kovid/build/calibre/src/calibre/utils/ipc/server.py", line 160, in run_job File "/home/kovid/build/calibre/src/calibre/utils/ipc/server.py", line 135, in launch_worker
Critical Error?: Failed to launch worker process: Traceback (most recent call last):
File "/home/kovid/build/calibre/src/calibre/utils/ipc/server.py", line 143, in do_launch File "/usr/lib64/python2.6/multiprocessing/connection.py", line 110, in accept File "/usr/lib64/python2.6/multiprocessing/connection.py", line 232, in accept File "/usr/lib64/python2.6/socket.py", line 195, in accept
error: [Errno 4] Interrupted system call
The version from AUR also can not be installed.
Attachments
Change History
comment:1 Changed 7 months ago by kovidgoyal
- Status changed from new to closed
- Resolution set to invalid
comment:2 Changed 7 months ago by westend
- Status changed from closed to reopened
- Resolution invalid deleted
Other shell scripts are working without problem.
comment:3 Changed 7 months ago by kovidgoyal
- Status changed from reopened to closed
- Resolution set to wontfix
in that case it's some sort of library conflict between the bundled libraries in the calibre binary and the libraries on your system. Unfortunately I dont run Arch, so I can't really help with that.
The symbol rl_filename_rewrite_hook is probably defined in libreadline.so so that's the first place to look. I'm closing this ticket, as it's something specific to Arch, but feel free to continue posting to the ticket if you need more help.
comment:4 Changed 7 months ago by westend
I already mentioned the recent update of libjpg/libpng in Arch. It was more than 500 Mb rebuilds to update. Probably, the rebuilt libraries have the conflict. It seems, I need to wait for similar updates in major distributives or to wait for updated version in AUR.
"The new versions of libjpeg and libpng required a rebuild of all dependent packages.
The libjpeg/libpng rebuilds are now complete and are moving from [testing] into the main repos.
Due to the large number of rebuilds required, packages will take a while to propagate to the mirrors. It is advisable to check the state of your mirror before updating ( https://www.archlinux.de/?page=MirrorStatus).
Remember to check your unofficial packages (AUR and third party repos) for required rebuilds."
comment:5 Changed 7 months ago by westend
libreadline.so is symbol link to new libreadline.so.6.1 I am attaching it here. Maybe you will give some additional helpful idea. Thanks.
comment:6 follow-up: ↓ 7 Changed 7 months ago by kovidgoyal
seems to be something else. I'm afraid debugging it is going to require some technical expertise. If you want to try read the man page for ld and then use the LD debug environment variables to figure out where the conflicting library is being loaded from.
comment:7 in reply to: ↑ 6 Changed 7 months ago by westend
Meanwhile, the AUR version was updated. I installed it without any problem. Thank you anyway. You are making the great software. I prefer to use Calibre instead of original Sony library.
comment:9 follow-up: ↓ 10 Changed 2 months ago by Martin DeMello
Deleting calibre/libreadline.so.6 fixed the issue (it was likely shadowing the proper libreadline.so.6.1 from arch)
comment:10 in reply to: ↑ 9 Changed 2 months ago by westend
Replying to Martin DeMello:
Deleting calibre/libreadline.so.6 fixed the issue (it was likely shadowing the proper libreadline.so.6.1 from arch)
I already 5 months use AUR versions. It works okay. Anyway, thank you for the information.


/bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_filename_rewrite_hook
That error indicates you have a broken system. /bin/sh is the standard interpreter for shell scripts, if that's not working, your system is badly broken.