I forgot to add these. Part of the patch from vodz
No binary (build failed)
—
$ git checkout -f c223ced0eab3d7b579b42c4626bb40686bd81c9a
HEAD is now at c223ced0e I forgot to add these. Part of the patch from vodz
$ git clean -fdx
Removing .menuconfig.log
Removing MCmenu0
Removing MCmenu1
Removing MCmenu2
Removing MCmenu3
Removing MCmenu4
Removing include/config/
Removing scripts/lxdialog/checklist.o
Removing scripts/lxdialog/inputbox.o
Removing scripts/lxdialog/lxdialog
Removing scripts/lxdialog/lxdialog.o
Removing scripts/lxdialog/menubox.o
Removing scripts/lxdialog/msgbox.o
Removing scripts/lxdialog/textbox.o
Removing scripts/lxdialog/util.o
Removing scripts/lxdialog/yesno.o
$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh defconfig
make: *** No rule to make target 'defconfig'. Stop.
$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh allnoconfig
make: *** No rule to make target 'allnoconfig'. Stop.
$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh include/bb_config.h
make: *** No rule to make target 'include/bb_config.h'. Stop.
$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh -j3 V=1
mkdir -p /root/asi_db/builds/busybox/_worktrees/w0/include/config
make -C scripts/lxdialog all
make[1]: Entering directory '/root/asi_db/builds/busybox/_worktrees/w0/scripts/lxdialog'
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o checklist.o checklist.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o menubox.o menubox.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o textbox.o textbox.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o yesno.o yesno.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o inputbox.o inputbox.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o util.o util.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o lxdialog.o lxdialog.c
/root/asi_db/compat/cc-wrapper.sh -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<ncurses.h>" -c -o msgbox.o msgbox.c
/root/asi_db/compat/cc-wrapper.sh -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o -lncurses
make[1]: Leaving directory '/root/asi_db/builds/busybox/_worktrees/w0/scripts/lxdialog'
/bin/bash scripts/Menuconfig sysdeps/linux/config.in
Using defaults found in sysdeps/linux/defconfig
Preparing scripts: functions, parsingAwk died with error code 137. Giving up.
.....done.
Your BusyBox configuration changes were NOT saved.
lxtemp.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main() {}
| ^~~~
textbox.c: In function ‘dialog_textbox’:
textbox.c:42:10: warning: variable ‘search_term’ set but not used [-Wunused-but-set-variable]
42 | char search_term[MAX_LEN + 1];
| ^~~~~~~~~~~
textbox.c: In function ‘print_line’:
textbox.c:462:12: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
462 | int y, x;
| ^
textbox.c:462:9: warning: variable ‘y’ set but not used [-Wunused-but-set-variable]
462 | int y, x;
| ^
inputbox.c: In function ‘dialog_inputbox’:
inputbox.c:107:17: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
107 | strcpy (instr, init);
| ^~~~~
| |
| unsigned char *
In file included from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/sys/sysmacros.h:22,
from /root/asi_db/compat/compat_stime.h:9,
from <command-line>:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:77:1: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
77 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
| ^~~~~
inputbox.c:109:23: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
109 | input_x = strlen (instr);
| ^~~~~
| |
| unsigned char *
In file included from dialog.h:27,
from inputbox.c:22:
/usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
In file included from dialog.h:29,
from inputbox.c:22:
inputbox.c:117:26: warning: pointer targets in passing argument 2 of ‘waddnstr’ differ in signedness [-Wpointer-sign]
117 | waddstr (dialog, instr);
| ^~~~~
| |
| unsigned char *
/usr/include/curses.h:830:47: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
830 | extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int); /* implemented */
| ^~~~~~~~~~~~
inputbox.c:147:43: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
147 | input_x = strlen (instr) - scroll;
| ^~~~~
| |
| unsigned char *
In file included from dialog.h:27,
from inputbox.c:22:
/usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
407 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
lxdialog.c: In function ‘j_inputbox’:
lxdialog.c:211:25: warning: pointer targets in passing argument 2 of ‘fprintf’ differ in signedness [-Wpointer-sign]
211 | fprintf(stderr, dialog_input_result);
| ^~~~~~~~~~~~~~~~~~~
| |
| unsigned char *
In file included from /usr/include/stdio.h:894,
from /usr/include/curses.h:232,
from dialog.h:29,
from lxdialog.c:22:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:103:60: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
lxdialog.c:211:25: warning: format not a string literal and no format arguments [-Wformat-security]
211 | fprintf(stderr, dialog_input_result);
| ^~~~~~~~~~~~~~~~~~~
scripts/Menuconfig: line 559: 4033732 Killed awk "$1"
Error opening terminal: unknown.
| @@ -0,0 +1,30 @@ | |
| + | /* |
| + | * stolen from net-tools-1.59 and stripped down for busybox by |
| + | * Erik Andersen <[email protected]> |
| + | * |
| + | * Heavily modified by Manuel Novoa III Mar 12, 2001 |
| + | * |
| + | * Version: $Id: inet_common.h,v 1.1 2001/11/10 12:18:42 andersen Exp $ |
| + | * |
| + | */ |
| + | |
| + | #include <features.h> |
| + | #include <sys/types.h> |
| + | #include <sys/socket.h> |
| + | #include <arpa/inet.h> |
| + | |
| + | |
| + | extern const char bb_INET_default[]; /* = "default" */ |
| + | |
| + | /* hostfirst!=0 If we expect this to be a hostname, |
| + | try hostname database first |
| + | */ |
| + | extern int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst); |
| + | |
| + | |
| + | /* numeric: & 0x8000: default instead of *, |
| + | * & 0x4000: host instead of net, |
| + | * & 0x0fff: don't resolve |
| + | */ |
| + | extern int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, |
| + | int numeric, unsigned int netmask); |
| @@ -0,0 +1,174 @@ | |
| + | /* |
| + | * stolen from net-tools-1.59 and stripped down for busybox by |
| + | * Erik Andersen <[email protected]> |
| + | * |
| + | * Heavily modified by Manuel Novoa III Mar 12, 2001 |
| + | * |
| + | * Version: $Id: inet_common.c,v 1.1 2001/11/10 12:18:42 andersen Exp $ |
| + | * |
| + | */ |
| + | |
| + | #include "inet_common.h" |
| + | #include <stdio.h> |
| + | #include <errno.h> |
| + | #include <stdlib.h> |
| + | #include <string.h> |
| + | #include <unistd.h> |
| + | #include "libbb.h" |
| + | |
| + | const char bb_INET_default[]="default"; |
| + | |
| + | int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) |
| + | { |
| + | struct hostent *hp; |
| + | struct netent *np; |
| + | |
| + | /* Grmpf. -FvK */ |
| + | s_in->sin_family = AF_INET; |
| + | s_in->sin_port = 0; |
| + | |
| + | /* Default is special, meaning 0.0.0.0. */ |
| + | if (!strcmp(name, bb_INET_default)) { |
| + | s_in->sin_addr.s_addr = INADDR_ANY; |
| + | return (1); |
| + | } |
| + | /* Look to see if it's a dotted quad. */ |
| + | if (inet_aton(name, &s_in->sin_addr)) { |
| + | return 0; |
| + | } |
| + | /* If we expect this to be a hostname, try hostname database first */ |
| + | #ifdef DEBUG |
| + | if (hostfirst) fprintf (stderr, "gethostbyname (%s)\n", name); |
| + | #endif |
| + | if (hostfirst && |
| + | (hp = gethostbyname(name)) != (struct hostent *) NULL) { |
| + | memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0], |
| + | sizeof(struct in_addr)); |
| + | return 0; |
| + | } |
| + | /* Try the NETWORKS database to see if this is a known network. */ |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "getnetbyname (%s)\n", name); |
| + | #endif |
| + | if ((np = getnetbyname(name)) != (struct netent *) NULL) { |
| + | s_in->sin_addr.s_addr = htonl(np->n_net); |
| + | return 1; |
| + | } |
| + | if (hostfirst) { |
| + | /* Don't try again */ |
| + | errno = h_errno; |
| + | return -1; |
| + | } |
| + | #ifdef DEBUG |
| + | res_init(); |
| + | _res.options |= RES_DEBUG; |
| + | #endif |
| + | |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "gethostbyname (%s)\n", name); |
| + | #endif |
| + | if ((hp = gethostbyname(name)) == (struct hostent *) NULL) { |
| + | errno = h_errno; |
| + | return -1; |
| + | } |
| + | memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0], |
| + | sizeof(struct in_addr)); |
| + | |
| + | return 0; |
| + | } |
| + | |
| + | /* cache */ |
| + | struct addr { |
| + | struct sockaddr_in addr; |
| + | char *name; |
| + | int host; |
| + | struct addr *next; |
| + | }; |
| + | |
| + | static struct addr *INET_nn = NULL; /* addr-to-name cache */ |
| + | |
| + | /* numeric: & 0x8000: default instead of *, |
| + | * & 0x4000: host instead of net, |
| + | * & 0x0fff: don't resolve |
| + | */ |
| + | int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, |
| + | int numeric, unsigned int netmask) |
| + | { |
| + | struct hostent *ent; |
| + | struct netent *np; |
| + | struct addr *pn; |
| + | unsigned long ad, host_ad; |
| + | int host = 0; |
| + | |
| + | /* Grmpf. -FvK */ |
| + | if (s_in->sin_family != AF_INET) { |
| + | #ifdef DEBUG |
| + | fprintf(stderr, _("rresolve: unsupport address family %d !\n"), s_in->sin_family); |
| + | #endif |
| + | errno = EAFNOSUPPORT; |
| + | return (-1); |
| + | } |
| + | ad = (unsigned long) s_in->sin_addr.s_addr; |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "rresolve: %08lx, mask %08x, num %08x \n", ad, netmask, numeric); |
| + | #endif |
| + | if (ad == INADDR_ANY) { |
| + | if ((numeric & 0x0FFF) == 0) { |
| + | if (numeric & 0x8000) |
| + | safe_strncpy(name, bb_INET_default, len); |
| + | else |
| + | safe_strncpy(name, "*", len); |
| + | return (0); |
| + | } |
| + | } |
| + | if (numeric & 0x0FFF) { |
| + | safe_strncpy(name, inet_ntoa(s_in->sin_addr), len); |
| + | return (0); |
| + | } |
| + | |
| + | if ((ad & (~netmask)) != 0 || (numeric & 0x4000)) |
| + | host = 1; |
| + | #if 0 |
| + | INET_nn = NULL; |
| + | #endif |
| + | pn = INET_nn; |
| + | while (pn != NULL) { |
| + | if (pn->addr.sin_addr.s_addr == ad && pn->host == host) { |
| + | safe_strncpy(name, pn->name, len); |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "rresolve: found %s %08lx in cache\n", (host? "host": "net"), ad); |
| + | #endif |
| + | return (0); |
| + | } |
| + | pn = pn->next; |
| + | } |
| + | |
| + | host_ad = ntohl(ad); |
| + | np = NULL; |
| + | ent = NULL; |
| + | if (host) { |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "gethostbyaddr (%08lx)\n", ad); |
| + | #endif |
| + | ent = gethostbyaddr((char *) &ad, 4, AF_INET); |
| + | if (ent != NULL) |
| + | safe_strncpy(name, ent->h_name, len); |
| + | } else { |
| + | #ifdef DEBUG |
| + | fprintf (stderr, "getnetbyaddr (%08lx)\n", host_ad); |
| + | #endif |
| + | np = getnetbyaddr(host_ad, AF_INET); |
| + | if (np != NULL) |
| + | safe_strncpy(name, np->n_name, len); |
| + | } |
| + | if ((ent == NULL) && (np == NULL)) |
| + | safe_strncpy(name, inet_ntoa(s_in->sin_addr), len); |
| + | pn = (struct addr *) xmalloc(sizeof(struct addr)); |
| + | pn->addr = *s_in; |
| + | pn->next = INET_nn; |
| + | pn->host = host; |
| + | pn->name = xstrdup(name); |
| + | INET_nn = pn; |
| + | |
| + | return (0); |
| + | } |