On Tue, Dec 18, 2001 at 09:20:55PM +1100, CaT wrote:
> > If I try and follow those instructions and rebuild lxdialog, I get this
> >
> > fred:/usr/src/linux/scripts/lxdialog # make clean all
> > rm -f core *.o *~ lxdialog
> > /bin/sh: -lncurses: command not found
>
> This is because it's no longer an independant makefile and the doco's
> misleading. It needs the base makefile.
I sent my other email before I read this one. "HOSTCC=gcc make all" seems
to work ok for me, but at least one other variable HOSTCFLAGS is used that
gets set in /usr/src/Makefile. So CaT's right, you can't really do that
anymore.
Try: find /usr/include/ -name "*curses.h" -ls
On my system I have
/usr/include/curses.h
/usr/include/ncurses.h -> curses.h (ie a symlink)
You appear to have a /usr/include/ncurses/curses.h, but do you have any
others?
If I look in my curses.h file, it has #define NCURSES_VERSION "5.2", which
matches up to the curses dev package thats installed.
> dialog.h:130: parse error before `attributes'
> dialog.h:130: warning: type defaults to `int' in declaration of
> `attributes'
I don't know C very well, but line 130 in my dialog.h (which I hope is
the same as your dialog.h :) is
extern chtype attributes[];
chtype is mentioned in curses.h
typedef unsigned long chtype;
So I'm guessing your curses.h file isn't typedefing chtype to unsigned long,
so its default to an int.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug