lnav icon indicating copy to clipboard operation
lnav copied to clipboard

‘mvwin_wchnstr’ was not declared in this scope when building with --without-ncursesw

Open bowlofeggs opened this issue 3 years ago • 0 comments

lnav version 0.9.0

Describe the bug A Gentoo maintainer has reported that lnav fails to compile. I noticed that they had been building with --without-ncursesw, which seems to be a reproducer for me as well. This is the snippet of the error message that I see when I reproduce it:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"' -I./fmtlib -Wall    -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE  -O2 -pipe -fomit-frame-pointer -march=native -frecord-gcc-switches -c -o listview_curses.o listvi
ew_curses.cc                                                                                                           
mands.cc                                                   
listview_curses.cc: In member function ‘virtual void listview_curses::do_update()’:
listview_curses.cc:289:13: error: ‘mvwin_wchnstr’ was not declared in this scope; did you mean ‘mvwinchnstr’?          
  289 |             mvwin_wchnstr(this->lv_window, y, this->lv_x, row_ch, width - 1);                                  
      |             ^~~~~~~~~~~~~                                                                                      
      |             mvwinchnstr                                                                                        
listview_curses.cc:293:13: error: ‘mvwadd_wchnstr’ was not declared in this scope; did you mean ‘mvwaddchnstr’?        
  293 |             mvwadd_wchnstr(this->lv_window, y, this->lv_x, row_ch, width - 1);                                 
      |             ^~~~~~~~~~~~~~                                                                                     
      |             mvwaddchnstr

The original bug report is here: https://bugs.gentoo.org/777981

To Reproduce Steps to reproduce the behavior:

  • git checkout 0.9.0
  • ./autogen.sh
  • ./configure --without-ncursesw
  • make -j8 (I don't think the -j8 is important, but that's the way I built it.)

bowlofeggs avatar May 25 '21 02:05 bowlofeggs