[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Incompatibility between ncurses and libc6?



> > > /usr/include/term.h:75: parse error
> > 
> > Maybe you have a different copy, can you send lines 70-80 of this file to
> > me?  I don't see any reason for a parse error in my (probably old) copy.
> > This is where your compile is being killed.

Yes, you do have a different copy, I should probably run my apt-get again.

> Here they are:
> 
>      70 #ifndef NCURSES_CONST
>      71 #define NCURSES_CONST /*nothing*/
>      72 #endif
>      73
>      74 /* Assume Posix termio if we have the header and function */
>      75 #if HAVE_TERMIOS_H && HAVE_TCGETATTR

Yup, that looks like a parse error.  I don't think #if is a valid
preprocessor macro, but I may be wrong.  Personally, I would do it with 2
separate #ifdef lines.  Does someone who knows this a little better than I
do have an ideal fix?  I also don't have my C book handy, but when I get
back to the dorm tonight, I'll let you know what I figure out (assuming
someone doesn't beat me to it).

>      76 #ifndef TERMIOS
>      77 #define TERMIOS 1
>      78 #endif
>      79 #include <termios.h>
>      80 #define TTY struct termios

Good luck,
Brandon

+---                                                              ---+
| Brandon Mitchell * bhmit1@mail.wm.edu * http://bhmit1.home.ml.org/ |
|   Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c)   |


Reply to: