Ncurses problems

Ever since I upgraded to Debian "Trixie" i've been having problems with ncurses (ncurses-dev) being noticed.

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[2]: *** [/home/ignatius/PROJ/scripts/kconfig/lxdialog/Makefile:15: scripts/kconfig/lxdialog/dochecklxdialog] Error 1
make[1]: *** [/home/ignatius/PROJ/scripts/kconfig/Makefile:14: menuconfig] Error 2
make: *** [Makefile:444: menuconfig] Error 2

Here's the output from make

https://anonpaste.io/share/4fd42ffd59

Here's the ncurses shared libraries:

ignatius@ghost /lib> ls -l libncurses*
-rw-r--r-- 1 root root  156140 Sep  4 22:59 libncurses++.a
-rw-r--r-- 1 root root  749608 Sep  4 22:59 libncurses.a
-rw-r--r-- 1 root root  825812 Sep  4 22:59 libncurses++_g.a
-rw-r--r-- 1 root root 4635726 Sep  4 22:59 libncurses_g.a
lrwxrwxrwx 1 root root      15 Sep  4 22:59 libncurses.so -> libncurses.so.6*
lrwxrwxrwx 1 root root      17 Sep  4 22:59 libncurses.so.6 -> libncurses.so.6.5*
-rwxr-xr-x 1 root root  453296 Sep  4 22:59 libncurses.so.6.5*
-rw-r--r-- 1 root root  161316 Sep  4 21:51 libncurses++w.a
-rw-r--r-- 1 root root  866424 Sep  4 21:51 libncursesw.a
-rw-r--r-- 1 root root  825748 Sep  4 21:51 libncurses++w_g.a
-rw-r--r-- 1 root root 5508734 Sep  4 21:51 libncursesw_g.a
lrwxrwxrwx 1 root root      18 Sep  4 21:51 libncurses++w.so -> libncurses++w.so.6*
lrwxrwxrwx 1 root root      16 Sep  4 21:51 libncursesw.so -> libncursesw.so.6*
lrwxrwxrwx 1 root root      20 Sep  4 21:51 libncurses++w.so.6 -> libncurses++w.so.6.5*
lrwxrwxrwx 1 root root      18 Sep  4 21:51 libncursesw.so.6 -> libncursesw.so.6.5*
-rwxr-xr-x 1 root root  105344 Sep  4 21:51 libncurses++w.so.6.5*
-rwxr-xr-x 1 root root  530248 Sep  4 21:51 libncursesw.so.6.5*
ignatius@ghost /l/x86_64-linux-gnu> ls -l libncurses*
-rw-r--r-- 1 root root 160340 May  9 01:58 libncurses++.a
-rw-r--r-- 1 root root 320708 May  9 01:58 libncurses.a
-rw-r--r-- 1 root root     31 May  9 01:58 libncurses.so
lrwxrwxrwx 1 root root     17 May  9 01:58 libncurses.so.6 -> libncurses.so.6.5
-rw-r--r-- 1 root root 169904 May  9 01:58 libncurses.so.6.5
-rw-r--r-- 1 root root 160340 May  9 01:58 libncurses++w.a
-rw-r--r-- 1 root root 439718 May  9 01:58 libncursesw.a
-rw-r--r-- 1 root root     32 May  9 01:58 libncursesw.so
lrwxrwxrwx 1 root root     18 May  9 01:58 libncursesw.so.6 -> libncursesw.so.6.5
-rw-r--r-- 1 root root 235440 May  9 01:58 libncursesw.so.6.5
ignatius@ghost /u/lib> ls -l libncurses*
-rw-r--r-- 1 root root  156140 Sep  4 22:59 libncurses++.a
-rw-r--r-- 1 root root  749608 Sep  4 22:59 libncurses.a
-rw-r--r-- 1 root root  825812 Sep  4 22:59 libncurses++_g.a
-rw-r--r-- 1 root root 4635726 Sep  4 22:59 libncurses_g.a
lrwxrwxrwx 1 root root      15 Sep  4 22:59 libncurses.so -> libncurses.so.6*
lrwxrwxrwx 1 root root      17 Sep  4 22:59 libncurses.so.6 -> libncurses.so.6.5*
-rwxr-xr-x 1 root root  453296 Sep  4 22:59 libncurses.so.6.5*
-rw-r--r-- 1 root root  161316 Sep  4 21:51 libncurses++w.a
-rw-r--r-- 1 root root  866424 Sep  4 21:51 libncursesw.a
-rw-r--r-- 1 root root  825748 Sep  4 21:51 libncurses++w_g.a
-rw-r--r-- 1 root root 5508734 Sep  4 21:51 libncursesw_g.a
lrwxrwxrwx 1 root root      18 Sep  4 21:51 libncurses++w.so -> libncurses++w.so.6*
lrwxrwxrwx 1 root root      16 Sep  4 21:51 libncursesw.so -> libncursesw.so.6*
lrwxrwxrwx 1 root root      20 Sep  4 21:51 libncurses++w.so.6 -> libncurses++w.so.6.5*
lrwxrwxrwx 1 root root      18 Sep  4 21:51 libncursesw.so.6 -> libncursesw.so.6.5*
-rwxr-xr-x 1 root root  105344 Sep  4 21:51 libncurses++w.so.6.5*
-rwxr-xr-x 1 root root  530248 Sep  4 21:51 libncursesw.so.6.5*
ignatius@ghost /u/l/x86_64-linux-gnu> ls -l libncurses*
-rw-r--r-- 1 root root 160340 May  9 01:58 libncurses++.a
-rw-r--r-- 1 root root 320708 May  9 01:58 libncurses.a
-rw-r--r-- 1 root root     31 May  9 01:58 libncurses.so
lrwxrwxrwx 1 root root     17 May  9 01:58 libncurses.so.6 -> libncurses.so.6.5
-rw-r--r-- 1 root root 169904 May  9 01:58 libncurses.so.6.5
-rw-r--r-- 1 root root 160340 May  9 01:58 libncurses++w.a
-rw-r--r-- 1 root root 439718 May  9 01:58 libncursesw.a
-rw-r--r-- 1 root root     32 May  9 01:58 libncursesw.so
lrwxrwxrwx 1 root root     18 May  9 01:58 libncursesw.so.6 -> libncursesw.so.6.5
-rw-r--r-- 1 root root 235440 May  9 01:58 libncursesw.so.6.5

TIA.

show the makefile pls.

Hi @ignatius,

try apt install libncurses-dev.

from his posting it looks like they're already installed ...

you're right, I should have read more thoroughly...

Here's the Makefile:

https://anonpaste.io/share/c1a1d8ddcf

np, :sunglasses:

1 Like

image

3times, so not trying again

Do you know of another pastebin-like site that allows uploads?

Found one. Here's the Makefile once again.

https://paste.c-net.org/SendsDakota

can you try to compile this

cat test.c
#include <ncurses.h>
#include <stdlib.h>

int main(void)
{
    initscr();

    addstr("-----------------\n| ncurses problem Ignatius |\n| ncurses Demo  |\n-----------------\n\n");
    refresh();

    addstr("\npress any key to exit...");
    refresh();

    getch();

    endwin();

    return EXIT_SUCCESS;
}

gcc -o test test.c -lncurses
./test

It works.

so, ncurses are there ...

what's this makefile you've given supposed to be doing ?
how are you invoking it (show the actual command line)
can you run it with verbose settings and capture the output - stick that into a pastebin

I type make and it compiles the source code, in this case, telnet.c.

Here's the output of make

https://anonpaste.io/share/a06183cc2f

Thanks.

EDIT: I just realized I already posted this information.

you've not posted that link here before ....

there's no mention of errors/warning wrt curses in the log but it is strewn with serious issues.

also, i don't see any mention of the command line used to invoke ....

Like I said, I used make as the command line to invoke it.

Hmm. I transfered the source code to my shell account, and it compiles fine. So, the problem is definitely with my computer and not the shell account.

I'm going to mark this thread as "solved" because I, at least can compile it on a different computer (and that's good enough).

Thanks for everyone's input. It's appreciated.