[lfs-support] One of the files of ncurses don't exist

Bruce Dubbs bruce.dubbs at gmail.com
Wed Aug 17 14:11:52 PDT 2016

Albert Pinto Gil wrote:
> Hello Chris,
> This is the log of the compilation and installation of ncurses. I have
> looked for the file in /usr/lib and /lib and it was not there. As you can
> see, I cannot move that file because it don't exist.
> 2016-08-17 20:25 GMT+02:00 Chris Staub <chris at beaker67.com>:
>> On 08/17/2016 02:02 PM, Albert Pinto Gil wrote:
>>> Hi, when installing psmisc I realised that the file /libncursesw.6*/,
>>> which in theory has to been in /usr/lib, do not exist. I'm sure to have
>>> done everything correctly in the previous chapters.
>>> Is there any way to solve it? I need to continue the project
>>> Not without more information. Do you have logs or at least command output
>> of your installation of Ncurses?

*****Do not top post on this list.******

Read the footer of any message.

Your problem is here:

make[1]: Entering directory '/sources/ncurses-6.0/ncurses'
  -DNDEBUG -O2 --param max-inline-insns-single=1200 -fPIC -c 
../ncurses/lib_gen.c -o ../obj_s/lib_gen.o
In file included from ./curses.priv.h:325:0,
                  from ../ncurses/lib_gen.c:19:
_4187.c:1372:15: error: expected ')' before 'int'
../include/curses.h:1943:56: note: in definition of macro 'mouse_trafo'
  #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
Makefile:1034: recipe for target '../obj_s/lib_gen.o' failed

I do not know why it says 'make[1]'.  My log has:

make[2]: Leaving directory '/sources/ncurses-6.0/include'
cd ncurses && make -w -- BREAKPOINT= DESTDIR="" RPATH_LIST="/usr/lib" install
make[2]: Entering directory '/sources/ncurses-6.0/ncurses'
linking /usr/lib/libncursesw.so.6.0

My build does not even try to build lib_gen.o at this point.  It is built 
much earlier without problem.

What you need to do is delete the ncurses directory and re-extract it from 
the tarball.  Then follow the book's instructions carefully from within 

   -- Bruce

More information about the lfs-support mailing list