cycle between ncurses/termcap linker scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncurses (Ubuntu) |
Fix Released
|
High
|
Matthias Klose | ||
Oneiric |
Fix Released
|
High
|
Matthias Klose |
Bug Description
libncurses.so.5 is a link to libtermcap. libtermcap.so is a linker script linking back to libncurses.so.5
$ ll /usr/lib/
lrwxrwxrwx 1 root root 13 2011-08-18 19:24 /usr/lib/
$ cat /usr/lib/
INPUT(libncurse
This creates problems when linking:
//compile with gcc file -lncurses
char use_default_colors ();
int
main ()
{
return use_default_colors ();
}
gcc file -lncurses
/usr/bin/ld: cannot open linker script file /usr/lib/
collect2: ld returned 1 exit status
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libncurses5 5.9-1ubuntu2
ProcVersionSign
Uname: Linux 3.0.0-9-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sun Aug 28 22:25:01 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110805)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ncurses
UpgradeStatus: No upgrade log present (probably fresh install)
As far as I can tell, the /usr/lib/ libncurses. so.5 symlink, which is the problem, was created by ldconfig pre 5.9-1ubuntu1, and wasn't deleted when 5.9-1ubuntu1 turned /usr/lib/ libncurses. so into a linker script.
ldconfig doesn't appear to delete symlinks in this case (if it does at all, I don't know it in that detail)