Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#46336 - Some packages depends on ncurses crashes or cannot start after upgrade to ncurses 6.0-3

Attached to Project: Arch Linux
Opened by Bingqing (jetpie) - Friday, 18 September 2015, 07:03 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 18 September 2015, 07:21 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgraded ncurses from 5.9 to 6.0, some packages depends on ncurses 5.9 crashes or simply cannot start (e.g readline and readline)

The reason caused this is in /usr/lib, there is not link for libncurses.so.5 or libncursesw.so.5
lrwxrwxrwx 1 root root 13 Sep 15 11:47 libcurses.so -> libncurses.so
-rw-r--r-- 1 root root 18 Sep 15 11:47 libncurses.so
-rw-r--r-- 1 root root 20 Sep 15 11:47 libncurses++.so
lrwxrwxrwx 1 root root 18 Sep 15 11:47 libncurses++w.so -> libncurses++w.so.6
lrwxrwxrwx 1 root root 16 Sep 15 11:47 libncursesw.so -> libncursesw.so.6
lrwxrwxrwx 1 root root 20 Sep 15 11:47 libncurses++w.so.6 -> libncurses++w.so.6.0
lrwxrwxrwx 1 root root 18 Sep 15 11:47 libncursesw.so.6 -> libncursesw.so.6.0
-rwxr-xr-x 1 root root 76K Sep 15 11:47 libncurses++w.so.6.0
-rwxr-xr-x 1 root root 435K Sep 15 11:47 libncursesw.so.6.0

For me, I cannot login to my user after reboot. And I solve this by ln -s libncursesw.so libncursesw.so.5 under root and su back.

Additional info:

* package version(s)
ncurses 6.0-3
* config and/or log files etc
[2015-09-18 10:15] [PACMAN] synchronizing package lists
[2015-09-18 10:15] [PACMAN] starting full system upgrade
[2015-09-18 10:21] [ALPM] transaction started
[2015-09-18 10:21] [ALPM] upgraded ncurses (5.9-7 -> 6.0-3)
[2015-09-18 10:21] [ALPM] upgraded readline (6.3.008-1 -> 6.3.008-2)
[2015-09-18 10:21] [ALPM-SCRIPTLET] /usr/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

I solved this compile error for readline by making a soft link to libncursesw.so.6.

BUT, this method does not solve the matlab problem. When start matlab, it reports:
/home/username/Program_Files/MATLAB/R2015a/bin/glnxa64/need_softwareopengl: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
MATLAB is selecting SOFTWARE OPENGL rendering.
/home/username/Program_Files/MATLAB/R2015a/bin/glnxa64/MATLAB: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I think the method to solve this is to leave a version 5 ncurses library in /usr/lib for some packages depends on this.

Steps to reproduce:
$ pacman -Syu
$ matlab
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Friday, 18 September 2015, 07:21 GMT
Reason for closing:  None
Comment by Bartłomiej Piotrowski (Barthalion) - Friday, 18 September 2015, 07:21 GMT
Linking anything to old ABI libraries is asking for trouble and is completely unsupported, because it isn't a solution.

There is almost no useful information in your bug report. You cannot login using what? DM? tty? All packages linking to ncurses were rebuilt, so it looks like partial upgrade to me. Closing.

Loading...