[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?
Hi,
powertop is a weird piece of code;)
Using this defconfig
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_POWERTOP=y
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
additions.
Regards, Bernd
PS: Upstream of the powertop tarball is problematic:
http://autobuild.buildroot.net/results/50e/50e70b0c7c3533ddb7397fa7542a9369bf
7a7249/build-end.log
More information about the buildroot
mailing list