<div dir="ltr">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.<div>
<br></div><div><div>scripts/make.sh</div><div>Make generated/config.h from .config.</div><div>Extract configuration information from toys/*.c files...</div><div>Generate headers from toys/*/*.c...</div><div>generated/newtoys.h generated/flags.h generated/globals.h generated/help.h</div>
<div>Library probe...</div><div>Compile toybox...</div><div>In file included from lib/help.c:8:0:</div><div>./generated/help.h:415:22: warning: missing terminating " character</div><div>Â #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</div>
<div>Â Â Â Â Â Â Â Â Â Â Â ^</div><div>In file included from ./toys.h:8:0,</div><div>Â Â Â Â Â Â Â Â Â from lib/help.c:3:</div><div>lib/help.c:12:32: error: expected ',' or ';' before 'help_dmesg'</div>
<div>Â #define NEWTOY(name,opt,flags) help_##name "\0"</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>./generated/config.h:6:24: note: in definition of macro 'USE_DMESG'</div><div>Â #define USE_DMESG(...) __VA_ARGS__</div>
<div>Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>./generated/newtoys.h:36:11: note: in expansion of macro 'NEWTOY'</div><div>Â USE_DMESG(NEWTOY(dmesg, "s#n#c", TOYFLAG_BIN))</div><div>Â Â Â Â Â Â ^</div><div>In file included from lib/help.c:15:0:</div>
<div>./generated/newtoys.h:76:1: error: missing terminating " character</div><div>Â USE_KILLALL(NEWTOY(killall, "?s:lqvi", TOYFLAG_USR|TOYFLAG_BIN))</div><div>Â ^</div><div>toys/other/acpi.c: In function 'acpi_callback':</div>
<div>toys/other/acpi.c:59:28: error: 'FLAG_b' undeclared (first use in this function)</div><div>Â Â Â Â if ((toys.optflags & FLAG_b) || (!toys.optflags)) {</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>toys/other/acpi.c:59:28: note: each undeclared identifier is reported only once for each function it appears in</div>
<div>toys/other/acpi.c:69:52: error: 'TT' undeclared (first use in this function)</div><div>Â Â Â Â Â if (cap >= 0) printf("Battery %d: %d%%\n", TT.bat++, cap);</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div>
<div>toys/other/acpi.c:71:32: error: 'FLAG_a' undeclared (first use in this function)</div><div>Â Â Â } else if (toys.optflags & FLAG_a) {</div><div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^</div><div>Makefile:8: recipe for target 'toybox' failed</div>
<div>make: *** [toybox] Error 1</div></div><div><br></div></div>