[Bug 1248704] [NEW] Cycle between libncurses.so and libncurses.so.5

part1zan_ 1248704 at bugs.launchpad.net
Wed Nov 6 20:42:27 UTC 2013


Public bug reported:

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"

** Affects: ncurses (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ncurses in Ubuntu.
https://bugs.launchpad.net/bugs/1248704

Title:
  Cycle between libncurses.so and libncurses.so.5

Status in “ncurses” package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/1248704/+subscriptions



More information about the foundations-bugs mailing list