[Buildroot] [PATCH 1/2] package/powertop: needs ncursesw

Bernd Kuhls bernd.kuhls at t-online.de
Fri Mar 27 17:16:47 UTC 2015

[posted and mailed]

Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
@public.gmane.org> wrote in news:20150327173446.779683cf at free-electrons.com:

> Am I missing something?


powertop is a weird piece of code;)

Using this defconfig


configure works

checking for NCURSES... no
checking for library containing delwin... -lncurses

but then this happens:

lib.cpp: In function 'void align_string(char*, size_t, size_t)':
lib.cpp:271:59: error: 'mbsrtowcs' was not declared in this scope
  sz = mbsrtowcs(NULL, (const char **)&buffer, max_sz, NULL);

Afaics mbsrtowcs() is a function which is only available with a wchar-enabled 
toolchain, so my patch does the right thing, but the description needs some 

Regards, Bernd

PS: Upstream of the powertop tarball is problematic:

More information about the buildroot mailing list