[Toybox] compiling toybox
stephen Turner
stephen.n.turner at gmail.com
Mon Jun 9 13:42:03 PDT 2014
I was compiling toybox using musl and received some errors that i believe
are related to the code of toybox? I'm not sure if this is something you
want to address right now but just in case it is here is the output i
receive. please let me know if there is anything you need/want outside of
this error output.
scripts/make.sh
Make generated/config.h from .config.
Extract configuration information from toys/*.c files...
Generate headers from toys/*/*.c...
generated/newtoys.h generated/flags.h generated/globals.h generated/help.h
Library probe...
Compile toybox...
In file included from lib/help.c:8:0:
./generated/help.h:415:22: warning: missing terminating " character
#define help_killall "usage: killall [-l] [-iqv] [-SIGNAL|-s SIGNAL]
PROCESS_NAME...\n\nSend a signal (default: TERM) to all processes with the
given n
^
In file included from ./toys.h:8:0,
from lib/help.c:3:
lib/help.c:12:32: error: expected ',' or ';' before 'help_dmesg'
#define NEWTOY(name,opt,flags) help_##name "\0"
^
./generated/config.h:6:24: note: in definition of macro 'USE_DMESG'
#define USE_DMESG(...) __VA_ARGS__
^
./generated/newtoys.h:36:11: note: in expansion of macro 'NEWTOY'
USE_DMESG(NEWTOY(dmesg, "s#n#c", TOYFLAG_BIN))
^
In file included from lib/help.c:15:0:
./generated/newtoys.h:76:1: error: missing terminating " character
USE_KILLALL(NEWTOY(killall, "?s:lqvi", TOYFLAG_USR|TOYFLAG_BIN))
^
toys/other/acpi.c: In function 'acpi_callback':
toys/other/acpi.c:59:28: error: 'FLAG_b' undeclared (first use in this
function)
if ((toys.optflags & FLAG_b) || (!toys.optflags)) {
^
toys/other/acpi.c:59:28: note: each undeclared identifier is reported only
once for each function it appears in
toys/other/acpi.c:69:52: error: 'TT' undeclared (first use in this function)
if (cap >= 0) printf("Battery %d: %d%%\n", TT.bat++, cap);
^
toys/other/acpi.c:71:32: error: 'FLAG_a' undeclared (first use in this
function)
} else if (toys.optflags & FLAG_a) {
^
Makefile:8: recipe for target 'toybox' failed
make: *** [toybox] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140609/ee43fc52/attachment.htm>
More information about the Toybox
mailing list