ncurses compile problem

Chris Lingard chris at stockwith.co.uk
Tue Jan 14 02:49:25 PST 2003


Ruth Kerr wrote:

> Greetings
> 
> I've been compiling LFS 3.1 on a Powerbook 5300 and have run into a small
> snag.
> 
> During the ncurses compile make quits with,
> 
> make [1]: Entering directory '/mnt/lfs/usr/src'/ncurses-5.2/c++'
> cd ../obj_s; c++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -DNDEBUG -I.
> -I../include -O2 -fPIC -c
> ../c++/curses.cc
> ../c++/curses.cc:  In method 'int MCursesWindow::scanw(const char *, ..)':
> ../c++/curses.cc:  ANSI C++ forbids casting to an array type
> ../c++/curses.cc:  In method 'int MCursesWindow::scanw(int, int, const
> char *, ...)':
> ../c++/curses.cc:  ANSI C++ forbids casting to an array type
> make[1]:  *** [../obj_s/cursesw.o]  Error 1
> make[1]:  Leaving directory '/mnt/lfs/usr/src'/ncurses-5.2/c++'
> make:  *** [all] Error 2

But what version of gcc are you using.  This error is given when
using gcc-3.x or later.  You need to get the patch from lfs packages
4.0,  this used gcc-3.x with your old version of ncurses.

You could also download ncurses-5.3, or you could downgrade your
compiler to gcc-2.95.3.

Chris




-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list