Advertisement
Guest User

lfs log 2

a guest
May 5th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.15 KB | None | 0 0
  1. checking for netdb.h... yes
  2. checking for pwd.h... yes
  3. checking for grp.h... yes
  4. checking for strings.h... (cached) yes
  5. checking for regex.h... yes
  6. checking for syslog.h... yes
  7. checking for ulimit.h... yes
  8. checking for sys/pte.h... no
  9. checking for sys/stream.h... no
  10. checking for sys/select.h... yes
  11. checking for sys/file.h... yes
  12. checking for sys/ioctl.h... yes
  13. checking for sys/mman.h... yes
  14. checking for sys/param.h... (cached) yes
  15. checking for sys/random.h... yes
  16. checking for sys/socket.h... yes
  17. checking for sys/stat.h... (cached) yes
  18. checking for sys/time.h... (cached) yes
  19. checking for sys/times.h... yes
  20. checking for sys/types.h... (cached) yes
  21. checking for sys/wait.h... yes
  22. checking for netinet/in.h... yes
  23. checking for arpa/inet.h... yes
  24. checking for sys/ptem.h... no
  25. checking for sys/resource.h... yes
  26. checking for working alloca.h... (cached) yes
  27. checking for alloca... (cached) checking for uid_t in sys/types.h... yes
  28. checking for working chown... yes
  29. checking whether getpgrp requires zero arguments... yes
  30. checking for working strcoll... yes
  31. checking for __setostype... no
  32. checking for wait3... yes
  33. checking for mkfifo... yes
  34. checking for dup2... yes
  35. checking for eaccess... yes
  36. checking for fcntl... yes
  37. checking for getdtablesize... yes
  38. checking for getentropy... yes
  39. checking for getgroups... yes
  40. checking for gethostname... yes
  41. checking for getpagesize... (cached) yes
  42. checking for getpeername... yes
  43. checking for getrandom... yes
  44. checking for getrlimit... yes
  45. checking for getrusage... yes
  46. checking for gettimeofday... yes
  47. checking for kill... yes
  48. checking for killpg... yes
  49. checking for lstat... yes
  50. checking for pselect... yes
  51. checking for readlink... yes
  52. checking for select... yes
  53. checking for setdtablesize... no
  54. checking for setitimer... yes
  55. checking for tcgetpgrp... yes
  56. checking for uname... yes
  57. checking for ulimit... yes
  58. checking for waitpid... yes
  59. checking for rename... yes
  60. checking for bcopy... yes
  61. checking for bzero... yes
  62. checking for confstr... yes
  63. checking for faccessat... yes
  64. checking for fnmatch... yes
  65. checking for getaddrinfo... yes
  66. checking for gethostbyname... yes
  67. checking for getservbyname... yes
  68. checking for getservent... yes
  69. checking for inet_aton... yes
  70. checking for imaxdiv... yes
  71. checking for memmove... yes
  72. checking for pathconf... yes
  73. checking for putenv... (cached) yes
  74. checking for raise... yes
  75. checking for random... yes
  76. checking for regcomp... yes
  77. checking for regexec... yes
  78. checking for setenv... (cached) yes
  79. checking for setlinebuf... yes
  80. checking for setlocale... (cached) yes
  81. checking for setvbuf... yes
  82. checking for siginterrupt... yes
  83. checking for strchr... yes
  84. checking for sysconf... yes
  85. checking for syslog... yes
  86. checking for tcgetattr... yes
  87. checking for times... yes
  88. checking for ttyname... yes
  89. checking for tzset... yes
  90. checking for unsetenv... yes
  91. checking for vasprintf... yes
  92. checking for asprintf... (cached) yes
  93. checking for isascii... yes
  94. checking for isblank... yes
  95. checking for isgraph... yes
  96. checking for isprint... yes
  97. checking for isspace... yes
  98. checking for isxdigit... yes
  99. checking for getpwent... yes
  100. checking for getpwnam... yes
  101. checking for getpwuid... yes
  102. checking for mkstemp... yes
  103. checking for mkdtemp... yes
  104. checking for arc4random... yes
  105. checking for getcwd... (cached) yes
  106. checking for memset... yes
  107. checking for strcasecmp... (cached) yes
  108. checking for strcasestr... yes
  109. checking for strerror... yes
  110. checking for strftime... yes
  111. checking for strnlen... (cached) yes
  112. checking for strpbrk... yes
  113. checking for strstr... yes
  114. checking for strtod... yes
  115. checking for strtol... yes
  116. checking for strtoul... (cached) yes
  117. checking for strtoll... yes
  118. checking for strtoull... yes
  119. checking for strtoumax... yes
  120. checking for dprintf... yes
  121. checking for strchrnul... yes
  122. checking for strdup... (cached) yes
  123. checking for libaudit.h... no
  124. checking whether AUDIT_USER_TTY is declared... yes
  125. checking whether confstr is declared... yes
  126. checking whether printf is declared... yes
  127. checking whether sbrk is declared... yes
  128. checking whether setregid is declared... yes
  129. checking whether strcpy is declared... yes
  130. checking whether strsignal is declared... yes
  131. checking for setresuid... yes
  132. checking for setresgid... yes
  133. checking whether strtold is declared... yes
  134. checking for broken strtold... no
  135. checking whether strtol is declared... yes
  136. checking whether strtoll is declared... yes
  137. checking whether strtoul is declared... yes
  138. checking whether strtoull is declared... yes
  139. checking whether strtoumax is declared... yes
  140. checking for working mktime... no
  141. checking for argz.h... (cached) yes
  142. checking for errno.h... yes
  143. checking for fcntl.h... yes
  144. checking for malloc.h... yes
  145. checking for stdio_ext.h... yes
  146. checking for working mmap... (cached) yes
  147. checking for __argz_count... yes
  148. checking for __argz_next... yes
  149. checking for __argz_stringify... yes
  150. checking for dcgettext... yes
  151. checking for mempcpy... (cached) yes
  152. checking for munmap... (cached) yes
  153. checking for mremap... yes
  154. checking for stpcpy... (cached) yes
  155. checking for strcspn... yes
  156. checking for wctype.h... yes
  157. checking for wchar.h... (cached) yes
  158. checking for langinfo.h... yes
  159. checking for mbstr.h... no
  160. checking for mbrlen... yes
  161. checking for mbscasecmp... no
  162. checking for mbscmp... no
  163. checking for mbsnrtowcs... yes
  164. checking for mbsrtowcs... yes
  165. checking for mbschr... no
  166. checking for wcrtomb... (cached) yes
  167. checking for wcscoll... yes
  168. checking for wcsdup... yes
  169. checking for wcwidth... yes
  170. checking for wctype... yes
  171. checking for wcswidth... yes
  172. checking whether mbrtowc and mbstate_t are properly declared... (cached) yes
  173. checking for iswlower... yes
  174. checking for iswupper... yes
  175. checking for towlower... yes
  176. checking for towupper... yes
  177. checking for iswctype... yes
  178. checking for wchar_t in wchar.h... yes
  179. checking for wctype_t in wctype.h... yes
  180. checking for wint_t in wctype.h... yes
  181. checking for wcwidth broken with unicode combining characters... no
  182. checking for locale_charset... no
  183. checking size of wchar_t... 4
  184. checking for dlopen in -ldl... yes
  185. checking for dlopen... yes
  186. checking for dlclose... yes
  187. checking for dlsym... yes
  188. checking type of array argument to getgroups... gid_t
  189. checking for off_t... yes
  190. checking for mode_t... yes
  191. checking for uid_t in sys/types.h... (cached) yes
  192. checking for pid_t... yes
  193. checking for size_t... (cached) yes
  194. checking for uintptr_t... yes
  195. checking for ssize_t... yes
  196. checking for time_t... yes
  197. checking for long long int... (cached) yes
  198. checking for unsigned long long int... (cached) yes
  199. checking for sig_atomic_t in signal.h... yes
  200. checking size of char... 1
  201. checking size of short... 2
  202. checking size of int... 4
  203. checking size of long... 8
  204. checking size of char *... 8
  205. checking size of size_t... 8
  206. checking size of double... 8
  207. checking size of long long... 8
  208. checking for u_int... yes
  209. checking for u_long... yes
  210. checking for bits16_t... no
  211. checking for u_bits16_t... no
  212. checking for bits32_t... no
  213. checking for u_bits32_t... no
  214. checking for bits64_t... no
  215. checking for ptrdiff_t... (cached) yes
  216. checking whether stat file-mode macros are broken... no
  217. checking whether #! works in shell scripts... yes
  218. checking if dup2 fails to clear the close-on-exec flag... configure: WARNING: cannot check dup2 if cross compiling -- defaulting to no
  219. no
  220. checking whether pgrps need synchronization... configure: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no
  221. no
  222. checking for type of signal functions... posix
  223. checking for sys_errlist and sys_nerr... yes
  224. checking whether sys_siglist is declared... no
  225. checking for sys_siglist in system C library... configure: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no
  226. no
  227. checking for _sys_siglist in signal.h or unistd.h... no
  228. checking for _sys_siglist in system C library... configure: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no
  229. no
  230. checking for clock_t... yes
  231. checking for sigset_t... yes
  232. checking for socklen_t... yes
  233. checking for quad_t... yes
  234. checking for type of struct rlimit fields... rlim_t
  235. checking for intmax_t... yes
  236. checking for uintmax_t... yes
  237. checking size of intmax_t... 8
  238. checking for struct termios.c_line... yes
  239. checking for struct termio.c_line... yes
  240. checking for struct dirent.d_ino... checking for struct dirent.d_ino... yes
  241. yes
  242. checking for struct dirent.d_fileno... checking for struct dirent.d_fileno... yes
  243. yes
  244. checking for struct dirent.d_namlen... checking for struct dirent.d_namlen... no
  245. no
  246. checking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.h
  247. checking for struct timeval in sys/time.h and time.h... yes
  248. checking for struct stat.st_blocks... yes
  249. checking whether struct tm is in sys/time.h or time.h... time.h
  250. checking for struct tm.tm_zone... yes
  251. checking for struct timezone in sys/time.h and time.h... yes
  252. checking for offset of exit status in return status from wait... configure: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0
  253. 0
  254. checking for struct timespec in <time.h>... yes
  255. checking for struct stat.st_atim.tv_nsec... yes
  256. checking whether struct stat.st_atim is of type struct timespec... yes
  257. checking for sbrk... yes
  258. checking for working sbrk... configure: WARNING: cannot check working sbrk if cross-compiling
  259. yes
  260. checking for the existence of strsignal... yes
  261. checking if opendir() opens non-directories... configure: WARNING: cannot check opendir if cross compiling -- defaulting to no
  262. no
  263. checking whether ulimit can substitute for getdtablesize... configure: WARNING: cannot check ulimit if cross compiling -- defaulting to no
  264. no
  265. checking whether fpurge is declared... no
  266. checking to see if getenv can be redefined... configure: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes
  267. yes
  268. checking if getcwd() will dynamically allocate memory with 0 size... configure: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no
  269. no
  270. checking for presence of POSIX-style sigsetjmp/siglongjmp... configure: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to yes
  271. present
  272. checking whether or not strcoll and strcmp differ... configure: WARNING: cannot check strcoll if cross compiling -- defaulting to no
  273. no
  274. checking for standard-conformant snprintf... configure: WARNING: cannot check standard snprintf if cross-compiling
  275. yes
  276. checking for standard-conformant vsnprintf... configure: WARNING: cannot check standard vsnprintf if cross-compiling
  277. yes
  278. checking for usable strtoimax... checking for strtoimax... yes
  279. checking whether strtoimax is declared... yes
  280. yes
  281. checking for standard-conformant putenv declaration... yes
  282. checking for standard-conformant unsetenv declaration... yes
  283. checking for printf floating point output in hex notation... configure: WARNING: cannot check printf if cross compiling -- defaulting to no
  284. no
  285. checking whether fnmatch can be used to check bracket equivalence classes... configure: WARNING: cannot check fnmatch if cross compiling -- defaulting to no
  286. no
  287. checking if signal handlers must be reinstalled when invoked... configure: WARNING: cannot check signal handling if cross compiling -- defaulting to no
  288. no
  289. checking for presence of necessary job control definitions... present
  290. checking for presence of named pipes... configure: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing
  291. missing
  292. checking whether termios.h defines TIOCGWINSZ... no
  293. checking whether sys/ioctl.h defines TIOCGWINSZ... yes
  294. checking for TIOCSTAT in sys/ioctl.h... no
  295. checking for FIONREAD in sys/ioctl.h... yes
  296. checking whether WCONTINUED flag to waitpid is unavailable or available but broken... configure: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no
  297. no
  298. checking for speed_t in sys/types.h... no
  299. checking whether getpw functions are declared in pwd.h... yes
  300. checking for unusable real-time signals due to large values... configure: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes
  301. yes
  302. checking for tgetent... no
  303. checking for tgetent in -ltermcap... no
  304. checking for tgetent in -ltinfo... no
  305. checking for tgetent in -lcurses... no
  306. checking for tgetent in -lncurses... yes
  307. checking which library has the termcap functions... using libncurses
  308. checking whether /dev/fd is available... standard
  309. checking whether /dev/stdin stdout stderr are available... present
  310. checking for default mail directory... /var/mail
  311. checking shared object configuration for loadable builtins... supported
  312. configure: creating ./config.status
  313. config.status: creating Makefile
  314. config.status: creating builtins/Makefile
  315. config.status: creating lib/readline/Makefile
  316. config.status: creating lib/glob/Makefile
  317. config.status: creating lib/intl/Makefile
  318. config.status: creating lib/malloc/Makefile
  319. config.status: creating lib/sh/Makefile
  320. config.status: creating lib/termcap/Makefile
  321. config.status: creating lib/tilde/Makefile
  322. config.status: creating doc/Makefile
  323. config.status: creating support/Makefile
  324. config.status: creating po/Makefile.in
  325. config.status: creating examples/loadables/Makefile
  326. config.status: creating examples/loadables/Makefile.inc
  327. config.status: creating examples/loadables/Makefile.sample
  328. config.status: creating examples/loadables/perl/Makefile
  329. config.status: creating support/bash.pc
  330. config.status: creating support/bashbug.sh
  331. config.status: creating config.h
  332. config.status: executing po-directories commands
  333. config.status: creating po/POTFILES
  334. config.status: creating po/Makefile
  335. config.status: executing stamp-h commands
  336. lfs:/mnt/lfs/sources/bash-5.2.37$ make | tee make1.txt
  337. rm -f mksyntax
  338. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -rdynamic -g -DCROSS_COMPILING -o mksyntax ./mksyntax.c
  339. rm -f mksignames.o
  340. rm -f buildsignames.o
  341. rm -f unwind_prot.o
  342. make[1]: warning: -j16 forced in submake: resetting jobserver mode.
  343. make[1]: Entering directory '/mnt/lfs/sources/bash-5.2.37/builtins'
  344. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -DBUILDTOOL -c ./support/mksignames.c
  345. gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -DBUILDTOOL -o buildsignames.o -c ./support/signames.c
  346. rm -f alias.o
  347. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c unwind_prot.c
  348. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c alias.c
  349. rm -f xmalloc.o
  350. rm -f mkbuiltins.o
  351. rm -f signames.o
  352. gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING mkbuiltins.c
  353. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c xmalloc.c
  354. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c ./support/signames.c
  355. rm -f shell.o
  356. rm -f eval.o
  357. rm -f general.o
  358. rm -f make_cmd.o
  359. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c shell.c
  360. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c eval.c
  361. rm -f print_cmd.o
  362. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c general.c
  363. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c make_cmd.c
  364. rm -f dispose_cmd.o
  365. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c print_cmd.c
  366. rm -f copy_cmd.o
  367. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c dispose_cmd.c
  368. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c copy_cmd.c
  369. make[1]: warning: -j16 forced in submake: resetting jobserver mode.
  370. make[1]: Entering directory '/mnt/lfs/sources/bash-5.2.37/support'
  371. rm -f man2html.o
  372. gcc -c -DHAVE_CONFIG_H -DSHELL -I/mnt/lfs/sources/bash-5.2.37 -I.. -Wno-parentheses -Wno-format-security -g man2html.c
  373. mkbuiltins.c: In function 'main':
  374. mkbuiltins.c:232:1: warning: old-style function definition [-Wold-style-definition]
  375. 232 | main (argc, argv)
  376. | ^~~~
  377. mkbuiltins.c:267:29: error: too many arguments to function 'xmalloc'; expected 0, have 1
  378. 267 | error_directory = xmalloc (2 + strlen (argv[arg_index]));
  379. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  380. mkbuiltins.c:62:14: note: declared here
  381. 62 | static char *xmalloc (), *xrealloc ();
  382. | ^~~~~~~
  383. mkbuiltins.c:307:34: error: too many arguments to function 'xmalloc'; expected 0, have 1
  384. 307 | temp_struct_filename = xmalloc (15);
  385. | ^~~~~~~ ~~
  386. mkbuiltins.c:62:14: note: declared here
  387. 62 | static char *xmalloc (), *xrealloc ();
  388. | ^~~~~~~
  389. mkbuiltins.c:312:13: error: too many arguments to function 'file_error'; expected 0, have 1
  390. 312 | file_error (temp_struct_filename);
  391. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
  392. mkbuiltins.c:206:6: note: declared here
  393. 206 | void file_error ();
  394. | ^~~~~~~~~~
  395. mkbuiltins.c:320:13: error: too many arguments to function 'file_error'; expected 0, have 1
  396. 320 | file_error (extern_filename);
  397. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~
  398. mkbuiltins.c:206:6: note: declared here
  399. 206 | void file_error ();
  400. | ^~~~~~~~~~
  401. mkbuiltins.c:324:7: error: too many arguments to function 'write_file_headers'; expected 0, have 2
  402. 324 | write_file_headers (structfile, externfile);
  403. | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
  404. mkbuiltins.c:209:6: note: declared here
  405. 209 | void write_file_headers ();
  406. | ^~~~~~~~~~~~~~~~~~
  407. mkbuiltins.c:341:7: error: too many arguments to function 'extract_info'; expected 0, have 3
  408. 341 | extract_info (arg, structfile, externfile);
  409. | ^~~~~~~~~~~~ ~~~
  410. mkbuiltins.c:204:6: note: declared here
  411. 204 | void extract_info ();
  412. | ^~~~~~~~~~~~
  413. mkbuiltins.c:348:7: error: too many arguments to function 'write_file_footers'; expected 0, have 2
  414. 348 | write_file_footers (structfile, externfile);
  415. | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
  416. mkbuiltins.c:210:6: note: declared here
  417. 210 | void write_file_footers ();
  418. | ^~~~~~~~~~~~~~~~~~
  419. mkbuiltins.c:352:11: error: too many arguments to function 'write_longdocs'; expected 0, have 2
  420. 352 | write_longdocs (structfile, saved_builtins);
  421. | ^~~~~~~~~~~~~~ ~~~~~~~~~~
  422. mkbuiltins.c:214:6: note: declared here
  423. 214 | void write_longdocs ();
  424. | ^~~~~~~~~~~~~~
  425. ./support/mksignames.c: In function 'write_signames':
  426. ./support/mksignames.c:48:1: warning: old-style function definition [-Wold-style-definition]
  427. 48 | write_signames (stream)
  428. | ^~~~~~~~~~~~~~
  429. mkbuiltins.c: In function 'array_create':
  430. mkbuiltins.c:387:1: warning: old-style function definition [-Wold-style-definition]
  431. 387 | array_create (width)
  432. | ^~~~~~~~~~~~
  433. mkbuiltins.c:392:20: error: too many arguments to function 'xmalloc'; expected 0, have 1
  434. 392 | array = (ARRAY *)xmalloc (sizeof (ARRAY));
  435. | ^~~~~~~ ~~~~~~~~~~~~~~
  436. ./support/mksignames.c: In function 'main':
  437. ./support/mksignames.c:74:1: warning: old-style function definition [-Wold-style-definition]
  438. 74 | main (argc, argv)
  439. | ^~~~
  440. mkbuiltins.c:62:14: note: declared here
  441. 62 | static char *xmalloc (), *xrealloc ();
  442. | ^~~~~~~
  443. mkbuiltins.c: In function 'copy_string_array':
  444. mkbuiltins.c:407:1: warning: old-style function definition [-Wold-style-definition]
  445. 407 | copy_string_array (array)
  446. | ^~~~~~~~~~~~~~~~~
  447. mkbuiltins.c:422:26: error: too many arguments to function 'xmalloc'; expected 0, have 1
  448. 422 | copy->array = (char **)xmalloc ((1 + array->sindex) * sizeof (char *));
  449. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  450. ./mksyntax.c: In function 'cdesc':
  451. mkbuiltins.c:62:14: note: declared here
  452. 62 | static char *xmalloc (), *xrealloc ();
  453. | ^~~~~~~
  454. ./mksyntax.c:108:1: warning: old-style function definition [-Wold-style-definition]
  455. 108 | cdesc (i)
  456. | ^~~~~
  457. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  458. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  459. | ^~~~~~~ ~~~~~~~~~~~~~~
  460. mkbuiltins.c:425:22: note: in expansion of macro 'savestring'
  461. 425 | copy->array[i] = savestring (array->array[i]);
  462. | ^~~~~~~~~~
  463. mkbuiltins.c:62:14: note: declared here
  464. 62 | static char *xmalloc (), *xrealloc ();
  465. | ^~~~~~~
  466. mkbuiltins.c: In function 'array_add':
  467. mkbuiltins.c:434:1: warning: old-style function definition [-Wold-style-definition]
  468. 434 | array_add (element, array)
  469. | ^~~~~~~~~
  470. mkbuiltins.c:439:29: error: too many arguments to function 'xrealloc'; expected 0, have 2
  471. 439 | array->array = (char **)xrealloc
  472. | ^~~~~~~~
  473. 440 | (array->array, (array->size += array->growth_rate) * array->width);
  474. | ~~~~~~~~~~~~
  475. ./mksyntax.c: In function 'getcstr':
  476. ./mksyntax.c:152:1: warning: old-style function definition [-Wold-style-definition]
  477. 152 | getcstr (f)
  478. | ^~~~~~~
  479. mkbuiltins.c:62:27: note: declared here
  480. 62 | static char *xmalloc (), *xrealloc ();
  481. | ^~~~~~~~
  482. ./mksyntax.c: In function 'addcstr':
  483. ./mksyntax.c:164:1: warning: old-style function definition [-Wold-style-definition]
  484. 164 | addcstr (str, flag)
  485. | ^~~~~~~
  486. mkbuiltins.c: In function 'array_free':
  487. ./mksyntax.c: In function 'addcchar':
  488. ./mksyntax.c:186:1: warning: old-style function definition [-Wold-style-definition]
  489. 186 | addcchar (c, flag)
  490. | ^~~~~~~~
  491. mkbuiltins.c:448:1: warning: old-style function definition [-Wold-style-definition]
  492. 448 | array_free (array)
  493. | ^~~~~~~~~~
  494. mkbuiltins.c: In function 'find_directive':
  495. ./mksyntax.c: In function 'dump_lflags':
  496. mkbuiltins.c:497:1: warning: old-style function definition [-Wold-style-definition]
  497. 497 | find_directive (directive)
  498. | ^~~~~~~~~~~~~~
  499. ./mksyntax.c:255:1: warning: old-style function definition [-Wold-style-definition]
  500. 255 | dump_lflags (fp, ind)
  501. | ^~~~~~~~~~~
  502. mkbuiltins.c: In function 'extract_info':
  503. mkbuiltins.c:527:1: warning: old-style function definition [-Wold-style-definition]
  504. 527 | extract_info (filename, structfile, externfile)
  505. | ^~~~~~~~~~~~
  506. mkbuiltins.c:530:1: error: number of arguments doesn't match prototype
  507. 530 | {
  508. | ^
  509. ./mksyntax.c: In function 'wcomment':
  510. ./mksyntax.c:281:1: warning: old-style function definition [-Wold-style-definition]
  511. 281 | wcomment (fp, i)
  512. | ^~~~~~~~
  513. ./mksyntax.c: In function 'dump_lsyntax':
  514. ./mksyntax.c:293:1: warning: old-style function definition [-Wold-style-definition]
  515. 293 | dump_lsyntax (fp)
  516. | ^~~~~~~~~~~~
  517. mkbuiltins.c:204:6: error: prototype declaration
  518. 204 | void extract_info ();
  519. | ^~~~~~~~~~~~
  520. ./mksyntax.c: In function 'main':
  521. mkbuiltins.c:539:5: error: too many arguments to function 'file_error'; expected 0, have 1
  522. 539 | file_error (filename);
  523. | ^~~~~~~~~~ ~~~~~~~~
  524. ./mksyntax.c:314:1: warning: old-style function definition [-Wold-style-definition]
  525. 314 | main(argc, argv)
  526. | ^~~~
  527. mkbuiltins.c:206:6: note: declared here
  528. 206 | void file_error ();
  529. | ^~~~~~~~~~
  530. mkbuiltins.c:544:5: error: too many arguments to function 'file_error'; expected 0, have 1
  531. 544 | file_error (filename);
  532. | ^~~~~~~~~~ ~~~~~~~~
  533. mkbuiltins.c:206:6: note: declared here
  534. 206 | void file_error ();
  535. | ^~~~~~~~~~
  536. mkbuiltins.c:547:12: error: too many arguments to function 'xmalloc'; expected 0, have 1
  537. 547 | buffer = xmalloc (1 + file_size);
  538. | ^~~~~~~ ~~~~~~~~~~~~~
  539. mkbuiltins.c:62:14: note: declared here
  540. 62 | static char *xmalloc (), *xrealloc ();
  541. | ^~~~~~~
  542. mkbuiltins.c:550:5: error: too many arguments to function 'file_error'; expected 0, have 1
  543. 550 | file_error (filename);
  544. | ^~~~~~~~~~ ~~~~~~~~
  545. mkbuiltins.c:206:6: note: declared here
  546. 206 | void file_error ();
  547. | ^~~~~~~~~~
  548. mkbuiltins.c:566:22: error: too many arguments to function 'xmalloc'; expected 0, have 1
  549. 566 | defs = (DEF_FILE *)xmalloc (sizeof (DEF_FILE));
  550. | ^~~~~~~ ~~~~~~~~~~~~~~~~~
  551. mkbuiltins.c:62:14: note: declared here
  552. 62 | static char *xmalloc (), *xrealloc ();
  553. | ^~~~~~~
  554. mkbuiltins.c:603:23: error: too many arguments to function 'xmalloc'; expected 0, have 1
  555. 603 | directive = xmalloc (j);
  556. | ^~~~~~~ ~
  557. mkbuiltins.c:62:14: note: declared here
  558. 62 | static char *xmalloc (), *xrealloc ();
  559. | ^~~~~~~
  560. mkbuiltins.c:612:15: error: too many arguments to function 'line_error'; expected 0, have 3
  561. 612 | line_error (defs, "Unknown directive `%s'", directive);
  562. | ^~~~~~~~~~ ~~~~
  563. mkbuiltins.c:207:6: note: declared here
  564. 207 | void line_error ();
  565. | ^~~~~~~~~~
  566. mkbuiltins.c:630:13: error: too many arguments to function 'add_documentation'; expected 0, have 2
  567. 630 | add_documentation (defs, line);
  568. | ^~~~~~~~~~~~~~~~~ ~~~~
  569. mkbuiltins.c:220:6: note: declared here
  570. 220 | void add_documentation ();
  571. | ^~~~~~~~~~~~~~~~~
  572. mkbuiltins.c:660:3: error: too many arguments to function 'write_builtins'; expected 0, have 3
  573. 660 | write_builtins (defs, structfile, externfile);
  574. | ^~~~~~~~~~~~~~ ~~~~
  575. mkbuiltins.c:215:6: note: declared here
  576. 215 | void write_builtins ();
  577. | ^~~~~~~~~~~~~~
  578. mkbuiltins.c:663:3: error: too many arguments to function 'free_defs'; expected 0, have 1
  579. 663 | free_defs (defs);
  580. | ^~~~~~~~~ ~~~~
  581. mkbuiltins.c:219:6: note: declared here
  582. 219 | void free_defs ();
  583. | ^~~~~~~~~
  584. mkbuiltins.c: In function 'free_builtin':
  585. mkbuiltins.c:669:1: warning: old-style function definition [-Wold-style-definition]
  586. 669 | free_builtin (builtin)
  587. | ^~~~~~~~~~~~
  588. rm -f error.o
  589. rm -f expr.o
  590. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c error.c
  591. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c expr.c
  592. mkbuiltins.c: In function 'free_defs':
  593. mkbuiltins.c:692:1: warning: old-style function definition [-Wold-style-definition]
  594. 692 | free_defs (defs)
  595. | ^~~~~~~~~
  596. mkbuiltins.c:694:1: error: number of arguments doesn't match prototype
  597. 694 | {
  598. | ^
  599. mkbuiltins.c:219:6: error: prototype declaration
  600. 219 | void free_defs ();
  601. | ^~~~~~~~~
  602. mkbuiltins.c: In function 'strip_whitespace':
  603. mkbuiltins.c:725:1: warning: old-style function definition [-Wold-style-definition]
  604. 725 | strip_whitespace (string)
  605. | ^~~~~~~~~~~~~~~~
  606. mkbuiltins.c:731:3: error: too many arguments to function 'remove_trailing_whitespace'; expected 0, have 1
  607. 731 | remove_trailing_whitespace (string);
  608. | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  609. mkbuiltins.c:223:6: note: declared here
  610. 223 | void remove_trailing_whitespace ();
  611. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  612. mkbuiltins.c: In function 'remove_trailing_whitespace':
  613. mkbuiltins.c:737:1: warning: old-style function definition [-Wold-style-definition]
  614. 737 | remove_trailing_whitespace (string)
  615. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  616. mkbuiltins.c:739:1: error: number of arguments doesn't match prototype
  617. 739 | {
  618. | ^
  619. mkbuiltins.c:223:6: error: prototype declaration
  620. 223 | void remove_trailing_whitespace ();
  621. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  622. mkbuiltins.c: In function 'get_arg':
  623. mkbuiltins.c:755:1: warning: old-style function definition [-Wold-style-definition]
  624. 755 | get_arg (for_whom, defs, string)
  625. | ^~~~~~~
  626. mkbuiltins.c:764:5: error: too many arguments to function 'line_error'; expected 0, have 3
  627. 764 | line_error (defs, "%s requires an argument", for_whom);
  628. | ^~~~~~~~~~ ~~~~
  629. mkbuiltins.c:207:6: note: declared here
  630. 207 | void line_error ();
  631. | ^~~~~~~~~~
  632. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  633. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  634. | ^~~~~~~ ~~~~~~~~~~~~~~
  635. mkbuiltins.c:766:11: note: in expansion of macro 'savestring'
  636. 766 | return (savestring (new));
  637. | ^~~~~~~~~~
  638. mkbuiltins.c:62:14: note: declared here
  639. 62 | static char *xmalloc (), *xrealloc ();
  640. | ^~~~~~~
  641. rm -f flags.o
  642. mkbuiltins.c: In function 'must_be_building':
  643. mkbuiltins.c:771:1: warning: old-style function definition [-Wold-style-definition]
  644. 771 | must_be_building (directive, defs)
  645. | ^~~~~~~~~~~~~~~~
  646. mkbuiltins.c:774:1: error: number of arguments doesn't match prototype
  647. 774 | {
  648. | ^
  649. mkbuiltins.c:222:6: error: prototype declaration
  650. 222 | void must_be_building ();
  651. | ^~~~~~~~~~~~~~~~
  652. mkbuiltins.c:776:5: error: too many arguments to function 'line_error'; expected 0, have 3
  653. 776 | line_error (defs, "%s must be inside of a $BUILTIN block", directive);
  654. | ^~~~~~~~~~ ~~~~
  655. mkbuiltins.c:207:6: note: declared here
  656. 207 | void line_error ();
  657. | ^~~~~~~~~~
  658. mkbuiltins.c: In function 'current_builtin':
  659. mkbuiltins.c:781:1: warning: old-style function definition [-Wold-style-definition]
  660. 781 | current_builtin (directive, defs)
  661. | ^~~~~~~~~~~~~~~
  662. mkbuiltins.c:785:3: error: too many arguments to function 'must_be_building'; expected 0, have 2
  663. 785 | must_be_building (directive, defs);
  664. | ^~~~~~~~~~~~~~~~ ~~~~~~~~~
  665. mkbuiltins.c:771:1: note: declared here
  666. 771 | must_be_building (directive, defs)
  667. | ^~~~~~~~~~~~~~~~
  668. mkbuiltins.c: In function 'add_documentation':
  669. mkbuiltins.c:795:1: warning: old-style function definition [-Wold-style-definition]
  670. 795 | add_documentation (defs, line)
  671. | ^~~~~~~~~~~~~~~~~
  672. mkbuiltins.c:798:1: error: number of arguments doesn't match prototype
  673. 798 | {
  674. | ^
  675. mkbuiltins.c:220:6: error: prototype declaration
  676. 220 | void add_documentation ();
  677. | ^~~~~~~~~~~~~~~~~
  678. mkbuiltins.c:803:3: error: too many arguments to function 'remove_trailing_whitespace'; expected 0, have 1
  679. 803 | remove_trailing_whitespace (line);
  680. | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
  681. mkbuiltins.c:737:1: note: declared here
  682. 737 | remove_trailing_whitespace (string)
  683. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  684. mkbuiltins.c: In function 'builtin_handler':
  685. mkbuiltins.c:816:1: warning: old-style function definition [-Wold-style-definition]
  686. 816 | builtin_handler (self, defs, arg)
  687. | ^~~~~~~~~~~~~~~
  688. mkbuiltins.c:827:7: error: too many arguments to function 'line_error'; expected 0, have 3
  689. 827 | line_error (defs, "%s found before $END", self);
  690. | ^~~~~~~~~~ ~~~~
  691. mkbuiltins.c:207:6: note: declared here
  692. 207 | void line_error ();
  693. | ^~~~~~~~~~
  694. mkbuiltins.c:840:25: error: too many arguments to function 'xmalloc'; expected 0, have 1
  695. 840 | new = (BUILTIN_DESC *)xmalloc (sizeof (BUILTIN_DESC));
  696. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
  697. mkbuiltins.c:62:14: note: declared here
  698. 62 | static char *xmalloc (), *xrealloc ();
  699. | ^~~~~~~
  700. mkbuiltins.c:849:7: error: too many arguments to function 'is_special_builtin'; expected 0, have 1
  701. 849 | if (is_special_builtin (name))
  702. | ^~~~~~~~~~~~~~~~~~ ~~~~
  703. mkbuiltins.c:194:12: note: declared here
  704. 194 | static int is_special_builtin ();
  705. | ^~~~~~~~~~~~~~~~~~
  706. mkbuiltins.c:851:7: error: too many arguments to function 'is_assignment_builtin'; expected 0, have 1
  707. 851 | if (is_assignment_builtin (name))
  708. | ^~~~~~~~~~~~~~~~~~~~~ ~~~~
  709. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c flags.c
  710. mkbuiltins.c:195:12: note: declared here
  711. 195 | static int is_assignment_builtin ();
  712. | ^~~~~~~~~~~~~~~~~~~~~
  713. mkbuiltins.c:853:7: error: too many arguments to function 'is_localvar_builtin'; expected 0, have 1
  714. 853 | if (is_localvar_builtin (name))
  715. | ^~~~~~~~~~~~~~~~~~~ ~~~~
  716. mkbuiltins.c:196:12: note: declared here
  717. 196 | static int is_localvar_builtin ();
  718. | ^~~~~~~~~~~~~~~~~~~
  719. mkbuiltins.c:855:7: error: too many arguments to function 'is_posix_builtin'; expected 0, have 1
  720. 855 | if (is_posix_builtin (name))
  721. | ^~~~~~~~~~~~~~~~ ~~~~
  722. mkbuiltins.c:197:12: note: declared here
  723. 197 | static int is_posix_builtin ();
  724. | ^~~~~~~~~~~~~~~~
  725. mkbuiltins.c:857:7: error: too many arguments to function 'is_arrayvar_builtin'; expected 0, have 1
  726. 857 | if (is_arrayvar_builtin (name))
  727. | ^~~~~~~~~~~~~~~~~~~ ~~~~
  728. mkbuiltins.c:198:12: note: declared here
  729. 198 | static int is_arrayvar_builtin ();
  730. | ^~~~~~~~~~~~~~~~~~~
  731. mkbuiltins.c: In function 'function_handler':
  732. mkbuiltins.c:868:1: warning: old-style function definition [-Wold-style-definition]
  733. 868 | function_handler (self, defs, arg)
  734. | ^~~~~~~~~~~~~~~~
  735. mkbuiltins.c:879:7: error: too many arguments to function 'line_error'; expected 0, have 2
  736. 879 | line_error (defs, "syntax error: no current builtin for $FUNCTION directive");
  737. | ^~~~~~~~~~ ~~~~
  738. mkbuiltins.c:207:6: note: declared here
  739. 207 | void line_error ();
  740. | ^~~~~~~~~~
  741. mkbuiltins.c:883:5: error: too many arguments to function 'line_error'; expected 0, have 4
  742. 883 | line_error (defs, "%s already has a function (%s)",
  743. | ^~~~~~~~~~ ~~~~
  744. mkbuiltins.c:207:6: note: declared here
  745. 207 | void line_error ();
  746. | ^~~~~~~~~~
  747. mkbuiltins.c: In function 'docname_handler':
  748. mkbuiltins.c:893:1: warning: old-style function definition [-Wold-style-definition]
  749. 893 | docname_handler (self, defs, arg)
  750. | ^~~~~~~~~~~~~~~
  751. mkbuiltins.c:903:5: error: too many arguments to function 'line_error'; expected 0, have 4
  752. 903 | line_error (defs, "%s already had a docname (%s)",
  753. | ^~~~~~~~~~ ~~~~
  754. mkbuiltins.c:207:6: note: declared here
  755. 207 | void line_error ();
  756. | ^~~~~~~~~~
  757. mkbuiltins.c: In function 'short_doc_handler':
  758. mkbuiltins.c:913:1: warning: old-style function definition [-Wold-style-definition]
  759. 913 | short_doc_handler (self, defs, arg)
  760. | ^~~~~~~~~~~~~~~~~
  761. mkbuiltins.c:923:5: error: too many arguments to function 'line_error'; expected 0, have 4
  762. 923 | line_error (defs, "%s already has short documentation (%s)",
  763. | ^~~~~~~~~~ ~~~~
  764. mkbuiltins.c:207:6: note: declared here
  765. 207 | void line_error ();
  766. | ^~~~~~~~~~
  767. mkbuiltins.c: In function 'comment_handler':
  768. mkbuiltins.c:933:1: warning: old-style function definition [-Wold-style-definition]
  769. 933 | comment_handler (self, defs, arg)
  770. | ^~~~~~~~~~~~~~~
  771. mkbuiltins.c: In function 'depends_on_handler':
  772. mkbuiltins.c:943:1: warning: old-style function definition [-Wold-style-definition]
  773. 943 | depends_on_handler (self, defs, arg)
  774. | ^~~~~~~~~~~~~~~~~~
  775. mkbuiltins.c: In function 'produces_handler':
  776. mkbuiltins.c:964:1: warning: old-style function definition [-Wold-style-definition]
  777. 964 | produces_handler (self, defs, arg)
  778. | ^~~~~~~~~~~~~~~~
  779. mkbuiltins.c:977:5: error: too many arguments to function 'line_error'; expected 0, have 4
  780. 977 | line_error (defs, "%s already has a %s definition", defs->filename, self);
  781. | ^~~~~~~~~~ ~~~~
  782. mkbuiltins.c:207:6: note: declared here
  783. 207 | void line_error ();
  784. | ^~~~~~~~~~
  785. mkbuiltins.c:988:9: error: too many arguments to function 'file_error'; expected 0, have 1
  786. 988 | file_error (defs->production);
  787. | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
  788. mkbuiltins.c:206:6: note: declared here
  789. 206 | void file_error ();
  790. | ^~~~~~~~~~
  791. mkbuiltins.c: In function 'end_handler':
  792. mkbuiltins.c:998:1: warning: old-style function definition [-Wold-style-definition]
  793. 998 | end_handler (self, defs, arg)
  794. | ^~~~~~~~~~~
  795. mkbuiltins.c:1003:3: error: too many arguments to function 'must_be_building'; expected 0, have 2
  796. 1003 | must_be_building (self, defs);
  797. | ^~~~~~~~~~~~~~~~ ~~~~
  798. mkbuiltins.c:771:1: note: declared here
  799. 771 | must_be_building (directive, defs)
  800. | ^~~~~~~~~~~~~~~~
  801. mkbuiltins.c: In function 'line_error':
  802. mkbuiltins.c:1016:1: warning: old-style function definition [-Wold-style-definition]
  803. 1016 | line_error (defs, format, arg1, arg2)
  804. | ^~~~~~~~~~
  805. mkbuiltins.c:1019:1: error: number of arguments doesn't match prototype
  806. 1019 | {
  807. | ^
  808. mkbuiltins.c:207:6: error: prototype declaration
  809. 207 | void line_error ();
  810. | ^~~~~~~~~~
  811. mkbuiltins.c: In function 'file_error':
  812. mkbuiltins.c:1030:1: warning: old-style function definition [-Wold-style-definition]
  813. 1030 | file_error (filename)
  814. | ^~~~~~~~~~
  815. mkbuiltins.c:1032:1: error: number of arguments doesn't match prototype
  816. 1032 | {
  817. | ^
  818. mkbuiltins.c:206:6: error: prototype declaration
  819. 206 | void file_error ();
  820. | ^~~~~~~~~~
  821. mkbuiltins.c: In function 'xmalloc':
  822. mkbuiltins.c:1046:1: warning: old-style function definition [-Wold-style-definition]
  823. 1046 | xmalloc (bytes)
  824. | ^~~~~~~
  825. mkbuiltins.c: In function 'xrealloc':
  826. mkbuiltins.c:1057:1: warning: old-style function definition [-Wold-style-definition]
  827. 1057 | xrealloc (pointer, bytes)
  828. | ^~~~~~~~
  829. mkbuiltins.c: In function 'copy_builtin':
  830. mkbuiltins.c:1090:1: warning: old-style function definition [-Wold-style-definition]
  831. 1090 | copy_builtin (builtin)
  832. | ^~~~~~~~~~~~
  833. mkbuiltins.c:1095:25: error: too many arguments to function 'xmalloc'; expected 0, have 1
  834. 1095 | new = (BUILTIN_DESC *)xmalloc (sizeof (BUILTIN_DESC));
  835. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
  836. mkbuiltins.c:1046:1: note: declared here
  837. 1046 | xmalloc (bytes)
  838. | ^~~~~~~
  839. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  840. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  841. | ^~~~~~~ ~~~~~~~~~~~~~~
  842. mkbuiltins.c:1097:15: note: in expansion of macro 'savestring'
  843. 1097 | new->name = savestring (builtin->name);
  844. | ^~~~~~~~~~
  845. mkbuiltins.c:1046:1: note: declared here
  846. 1046 | xmalloc (bytes)
  847. | ^~~~~~~
  848. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  849. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  850. | ^~~~~~~ ~~~~~~~~~~~~~~
  851. mkbuiltins.c:1098:19: note: in expansion of macro 'savestring'
  852. 1098 | new->shortdoc = savestring (builtin->shortdoc);
  853. | ^~~~~~~~~~
  854. mkbuiltins.c:1046:1: note: declared here
  855. 1046 | xmalloc (bytes)
  856. | ^~~~~~~
  857. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  858. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  859. | ^~~~~~~ ~~~~~~~~~~~~~~
  860. mkbuiltins.c:1103:25: note: in expansion of macro 'savestring'
  861. 1103 | builtin->function ? savestring (builtin->function) : (char *)NULL;
  862. | ^~~~~~~~~~
  863. mkbuiltins.c:1046:1: note: declared here
  864. 1046 | xmalloc (bytes)
  865. | ^~~~~~~
  866. mkbuiltins.c:68:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  867. 68 | #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
  868. | ^~~~~~~ ~~~~~~~~~~~~~~
  869. mkbuiltins.c:1105:25: note: in expansion of macro 'savestring'
  870. 1105 | builtin->docname ? savestring (builtin->docname) : (char *)NULL;
  871. | ^~~~~~~~~~
  872. mkbuiltins.c:1046:1: note: declared here
  873. 1046 | xmalloc (bytes)
  874. | ^~~~~~~
  875. mkbuiltins.c: In function 'save_builtin':
  876. mkbuiltins.c:1112:1: warning: old-style function definition [-Wold-style-definition]
  877. 1112 | save_builtin (builtin)
  878. | ^~~~~~~~~~~~
  879. mkbuiltins.c: In function 'write_file_headers':
  880. mkbuiltins.c:1190:1: warning: old-style function definition [-Wold-style-definition]
  881. 1190 | write_file_headers (structfile, externfile)
  882. | ^~~~~~~~~~~~~~~~~~
  883. mkbuiltins.c:1192:1: error: number of arguments doesn't match prototype
  884. 1192 | {
  885. | ^
  886. mkbuiltins.c:209:6: error: prototype declaration
  887. 209 | void write_file_headers ();
  888. | ^~~~~~~~~~~~~~~~~~
  889. mkbuiltins.c: In function 'write_file_footers':
  890. mkbuiltins.c:1217:1: warning: old-style function definition [-Wold-style-definition]
  891. 1217 | write_file_footers (structfile, externfile)
  892. | ^~~~~~~~~~~~~~~~~~
  893. mkbuiltins.c:1219:1: error: number of arguments doesn't match prototype
  894. 1219 | {
  895. | ^
  896. mkbuiltins.c:210:6: error: prototype declaration
  897. 210 | void write_file_footers ();
  898. | ^~~~~~~~~~~~~~~~~~
  899. mkbuiltins.c: In function 'write_builtins':
  900. mkbuiltins.c:1233:1: warning: old-style function definition [-Wold-style-definition]
  901. 1233 | write_builtins (defs, structfile, externfile)
  902. | ^~~~~~~~~~~~~~
  903. mkbuiltins.c:1236:1: error: number of arguments doesn't match prototype
  904. 1236 | {
  905. | ^
  906. mkbuiltins.c:215:6: error: prototype declaration
  907. 215 | void write_builtins ();
  908. | ^~~~~~~~~~~~~~
  909. mkbuiltins.c:1253:19: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  910. 1253 | write_ifdefs (externfile, builtin->dependencies->array);
  911. | ^~~~~~~~~~~~ ~~~~~~~~~~
  912. mkbuiltins.c:211:6: note: declared here
  913. 211 | void write_ifdefs ();
  914. | ^~~~~~~~~~~~
  915. mkbuiltins.c:1254:19: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  916. 1254 | write_ifdefs (structfile, builtin->dependencies->array);
  917. | ^~~~~~~~~~~~ ~~~~~~~~~~
  918. mkbuiltins.c:211:6: note: declared here
  919. 211 | void write_ifdefs ();
  920. | ^~~~~~~~~~~~
  921. mkbuiltins.c:1320:21: error: too many arguments to function 'write_endifs'; expected 0, have 2
  922. 1320 | write_endifs (externfile, builtin->dependencies->array);
  923. | ^~~~~~~~~~~~ ~~~~~~~~~~
  924. mkbuiltins.c:212:6: note: declared here
  925. 212 | void write_endifs ();
  926. | ^~~~~~~~~~~~
  927. mkbuiltins.c:1323:21: error: too many arguments to function 'write_endifs'; expected 0, have 2
  928. 1323 | write_endifs (structfile, builtin->dependencies->array);
  929. | ^~~~~~~~~~~~ ~~~~~~~~~~
  930. mkbuiltins.c:212:6: note: declared here
  931. 212 | void write_endifs ();
  932. | ^~~~~~~~~~~~
  933. mkbuiltins.c:1330:15: error: too many arguments to function 'write_documentation'; expected 0, have 4
  934. 1330 | write_documentation
  935. | ^~~~~~~~~~~~~~~~~~~
  936. 1331 | (documentation_file, builtin->longdoc->array, 0, TEXINFO);
  937. | ~~~~~~~~~~~~~~~~~~
  938. mkbuiltins.c:213:6: note: declared here
  939. 213 | void write_documentation ();
  940. | ^~~~~~~~~~~~~~~~~~~
  941. rm -f hashcmd.o
  942. mkbuiltins.c: In function 'write_longdocs':
  943. mkbuiltins.c:1339:1: warning: old-style function definition [-Wold-style-definition]
  944. 1339 | write_longdocs (stream, builtins)
  945. | ^~~~~~~~~~~~~~
  946. mkbuiltins.c:1342:1: error: number of arguments doesn't match prototype
  947. 1342 | {
  948. | ^
  949. mkbuiltins.c:214:6: error: prototype declaration
  950. 214 | void write_longdocs ();
  951. | ^~~~~~~~~~~~~~
  952. mkbuiltins.c:1353:9: error: too many arguments to function 'write_ifdefs'; expected 0, have 2
  953. 1353 | write_ifdefs (stream, builtin->dependencies->array);
  954. | ^~~~~~~~~~~~ ~~~~~~
  955. mkbuiltins.c:211:6: note: declared here
  956. 211 | void write_ifdefs ();
  957. | ^~~~~~~~~~~~
  958. mkbuiltins.c:1362:31: error: too many arguments to function 'xmalloc'; expected 0, have 1
  959. 1362 | sarray[0] = (char *)xmalloc (l + 1);
  960. | ^~~~~~~ ~~~~~
  961. mkbuiltins.c:1046:1: note: declared here
  962. 1046 | xmalloc (bytes)
  963. | ^~~~~~~
  964. mkbuiltins.c:1365:11: error: too many arguments to function 'write_documentation'; expected 0, have 4
  965. 1365 | write_documentation (stream, sarray, 0, STRING_ARRAY|HELPFILE);
  966. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  967. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c hashcmd.c
  968. mkbuiltins.c:213:6: note: declared here
  969. 213 | void write_documentation ();
  970. | ^~~~~~~~~~~~~~~~~~~
  971. mkbuiltins.c:1369:9: error: too many arguments to function 'write_documentation'; expected 0, have 4
  972. 1369 | write_documentation (stream, builtin->longdoc->array, 0, STRING_ARRAY);
  973. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  974. mkbuiltins.c:213:6: note: declared here
  975. 213 | void write_documentation ();
  976. | ^~~~~~~~~~~~~~~~~~~
  977. mkbuiltins.c:1372:9: error: too many arguments to function 'write_endifs'; expected 0, have 2
  978. 1372 | write_endifs (stream, builtin->dependencies->array);
  979. | ^~~~~~~~~~~~ ~~~~~~
  980. mkbuiltins.c:212:6: note: declared here
  981. 212 | void write_endifs ();
  982. | ^~~~~~~~~~~~
  983. mkbuiltins.c: In function 'write_dummy_declarations':
  984. mkbuiltins.c:1378:1: warning: old-style function definition [-Wold-style-definition]
  985. 1378 | write_dummy_declarations (stream, builtins)
  986. | ^~~~~~~~~~~~~~~~~~~~~~~~
  987. mkbuiltins.c: In function 'write_ifdefs':
  988. mkbuiltins.c:1404:1: warning: old-style function definition [-Wold-style-definition]
  989. 1404 | write_ifdefs (stream, defines)
  990. | ^~~~~~~~~~~~
  991. mkbuiltins.c:1407:1: error: number of arguments doesn't match prototype
  992. 1407 | {
  993. | ^
  994. mkbuiltins.c:211:6: error: prototype declaration
  995. 211 | void write_ifdefs ();
  996. | ^~~~~~~~~~~~
  997. mkbuiltins.c: In function 'write_endifs':
  998. mkbuiltins.c:1435:1: warning: old-style function definition [-Wold-style-definition]
  999. 1435 | write_endifs (stream, defines)
  1000. | ^~~~~~~~~~~~
  1001. mkbuiltins.c:1438:1: error: number of arguments doesn't match prototype
  1002. 1438 | {
  1003. | ^
  1004. mkbuiltins.c:212:6: error: prototype declaration
  1005. 212 | void write_endifs ();
  1006. | ^~~~~~~~~~~~
  1007. mkbuiltins.c: In function 'write_documentation':
  1008. mkbuiltins.c:1462:1: warning: old-style function definition [-Wold-style-definition]
  1009. 1462 | write_documentation (stream, documentation, indentation, flags)
  1010. | ^~~~~~~~~~~~~~~~~~~
  1011. mkbuiltins.c:1466:1: error: number of arguments doesn't match prototype
  1012. 1466 | {
  1013. | ^
  1014. mkbuiltins.c:213:6: error: prototype declaration
  1015. 213 | void write_documentation ();
  1016. | ^~~~~~~~~~~~~~~~~~~
  1017. mkbuiltins.c: In function 'write_helpfiles':
  1018. mkbuiltins.c:1593:1: warning: old-style function definition [-Wold-style-definition]
  1019. 1593 | write_helpfiles (builtins)
  1020. | ^~~~~~~~~~~~~~~
  1021. mkbuiltins.c:1595:1: error: number of arguments doesn't match prototype
  1022. 1595 | {
  1023. | ^
  1024. mkbuiltins.c:217:5: error: prototype declaration
  1025. 217 | int write_helpfiles ();
  1026. | ^~~~~~~~~~~~~~~
  1027. mkbuiltins.c:1614:26: error: too many arguments to function 'xmalloc'; expected 0, have 1
  1028. 1614 | helpfile = (char *)xmalloc (hdlen + strlen (bname) + 1);
  1029. | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1030. mkbuiltins.c:1046:1: note: declared here
  1031. 1046 | xmalloc (bytes)
  1032. | ^~~~~~~
  1033. mkbuiltins.c:1625:7: error: too many arguments to function 'write_documentation'; expected 0, have 4
  1034. 1625 | write_documentation (helpfp, builtin->longdoc->array, 4, PLAINTEXT);
  1035. | ^~~~~~~~~~~~~~~~~~~ ~~~~~~
  1036. mkbuiltins.c:1462:1: note: declared here
  1037. 1462 | write_documentation (stream, documentation, indentation, flags)
  1038. | ^~~~~~~~~~~~~~~~~~~
  1039. mkbuiltins.c: In function '_find_in_table':
  1040. mkbuiltins.c:1635:1: warning: old-style function definition [-Wold-style-definition]
  1041. 1635 | _find_in_table (name, name_table)
  1042. | ^~~~~~~~~~~~~~
  1043. mkbuiltins.c: In function 'is_special_builtin':
  1044. mkbuiltins.c:1647:1: warning: old-style function definition [-Wold-style-definition]
  1045. 1647 | is_special_builtin (name)
  1046. | ^~~~~~~~~~~~~~~~~~
  1047. mkbuiltins.c: In function 'is_assignment_builtin':
  1048. mkbuiltins.c:1654:1: warning: old-style function definition [-Wold-style-definition]
  1049. 1654 | is_assignment_builtin (name)
  1050. | ^~~~~~~~~~~~~~~~~~~~~
  1051. mkbuiltins.c: In function 'is_localvar_builtin':
  1052. mkbuiltins.c:1661:1: warning: old-style function definition [-Wold-style-definition]
  1053. 1661 | is_localvar_builtin (name)
  1054. | ^~~~~~~~~~~~~~~~~~~
  1055. mkbuiltins.c: In function 'is_posix_builtin':
  1056. mkbuiltins.c:1668:1: warning: old-style function definition [-Wold-style-definition]
  1057. 1668 | is_posix_builtin (name)
  1058. | ^~~~~~~~~~~~~~~~
  1059. mkbuiltins.c: In function 'is_arrayvar_builtin':
  1060. mkbuiltins.c:1675:1: warning: old-style function definition [-Wold-style-definition]
  1061. 1675 | is_arrayvar_builtin (name)
  1062. | ^~~~~~~~~~~~~~~~~~~
  1063. make[1]: *** [Makefile:223: mkbuiltins.o] Error 1
  1064. make[1]: Leaving directory '/mnt/lfs/sources/bash-5.2.37/builtins'
  1065. rm -f hashlib.o
  1066. x86_64-lfs-linux-gnu-gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-lfs-linux-gnu"' -DCONF_VENDOR='"lfs"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -Wno-parentheses -Wno-format-security -g -O2 -c hashlib.c
  1067. make: *** [Makefile:762: builtins/builtext.h] Error 1
  1068. make: *** Waiting for unfinished jobs....
  1069. gcc -rdynamic -g man2html.o -o man2html -ldl
  1070. make[1]: Leaving directory '/mnt/lfs/sources/bash-5.2.37/support'
  1071.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement