I can reproduced the problem here with a Oneiric chroot and cowbuilder . But the problem also appears with a small testcase so something must be broken in libncurses5-dev.
return(0);
}
root@x200:~# gcc -lncurses ncurses-test.c
/tmp/ccDnNL1b.o: In function `main':
ncurses-test.c:(.text+0x5): undefined reference to `initscr'
collect2: ld returned 1 exit status
root@x200:~#
I can reproduced the problem here with a Oneiric chroot and cowbuilder . But the problem also appears with a small testcase so something must be broken in libncurses5-dev.
root@x200:~# cat ncurses-test.c
#include <curses.h>
int main (void) {
initscr();
return(0); test.c: (.text+ 0x5): undefined reference to `initscr'
}
root@x200:~# gcc -lncurses ncurses-test.c
/tmp/ccDnNL1b.o: In function `main':
ncurses-
collect2: ld returned 1 exit status
root@x200:~#