Cycle between libncurses.so and libncurses.so.5

Bug #1248704 reported by part1zan_
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)
New
Undecided
Unassigned

Bug Description

I try to compile a really simple C program using ncurses using `cc -lncurses file.c -o file`, and that's what I get:
cc -lncurses -lpanel -o test curses.c
curses.c: In function 'print_in_middle':
curses.c:111:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
/usr/bin/ld: cannot open linker script file /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libncurses.so.5: Too many open files
collect2: ld returned 1 exit status
make: *** [test] Error 1

In Debian, that program compiles and runs seamlessly. Here is the data:
$ dpkg -l | grep ncurses
ii libncurses5 5.9-4 shared libraries for terminal handling
ii libncurses5:i386 5.9-4 shared libraries for terminal handling
ii libncurses5-dev 5.9-4 developer's libraries for ncurses
ii libncursesw5 5.9-4 shared libraries for terminal handling (wide character support)
ii libncursesw5:i386 5.9-4 shared libraries for terminal handling (wide character support)
ii libncursesw5-dev 5.9-4 developer's libraries for ncursesw
ii mtr-tiny 0.80-1ubuntu1 Full screen ncurses traceroute tool
ii ncmpcpp 0.5.6-2 ncurses-based client for the Music Player Daemon (MPD)
ii ncurses-base 5.9-4 basic terminal type definitions
ii ncurses-bin 5.9-4 terminal-related programs and man pages
ii ncurses-examples 5.9-4 test programs and examples for ncurses
ii rtorrent 0.8.9-2 ncurses BitTorrent client based on LibTorrent from rakshasa

$ dpkg -l | grep binutils
ii binutils 2.22-6ubuntu1.1 GNU assembler, linker and binary utilities

$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
NAME="Ubuntu"
VERSION="12.04.3 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.3 LTS)"
VERSION_ID="12.04"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.