[Clfs-support] Ncurses Chapter 6.10 compilation error

William Harrington kb0iic at berzerkula.org
Sat Jan 16 06:58:08 PST 2016


On Sat, January 16, 2016 09:55, Hellwig Geisse wrote:
> Hi,
>
> I'm trying to use CLFS as a guide for porting Linux to our
> ECO32 system-on-chip. I was running into the same problem
> as Leon, even when using ncurses 6.0.
>
> On Fr, 2016-01-15 at 17:33 +0000, William Harrington wrote:
>> > ../include/curses.h:1631:56: note: in definition of macro
>> 'mouse_trafo'
>> >  #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
>> >                                                         ^
>
> As Leon notes, the problem comes from the generated file
> lib_gen.c, which contains functions as replacements for
> macros (and uses these macros within the function bodies).
> As it seems, the macro "mouse_trafo" is enabled when compiling
> the file, and thus replaces the function header, which is
> wrong. The patch in the attachment applied to the generator
> script MKlib_gen.sh does the trick, at least for me.
>
> Hellwig

Hello,

Does AWK=gawk during configure fix it?

The only time I saw the issue occur is when using Ncurses 5.9. Since
updating to Ncurses 6.0, I have not seen the issue. You can view the
lfs-support lfs-dev and lfs tickets regarding the same issue. I use
slackware and debian hosts when building and moving to Ncurses 6.0 fixed
the issue. We need more information as to why and how.

Sincerely,

William Harrington



More information about the Clfs-support mailing list