Advertisement
Guest User

Untitled

a guest
May 1st, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.17 KB | None | 0 0
  1. lux@parabolica:~/packages/units (master) $ sudo git clean -fdx
  2. lux@parabolica:~/packages/units (master) $ makepkg -i --skippgpcheck
  3. ==> Making package: units 2.24-1 (Thu 01 May 2025 09:54:07 AM CDT)
  4. ==> Checking runtime dependencies...
  5. ==> Checking buildtime dependencies...
  6. ==> Retrieving sources...
  7. -> Downloading units-2.24.tar.gz...
  8. % Total % Received % Xferd Average Speed Time Time Time Current
  9. Dload Upload Total Spent Left Speed
  10.  
  11. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  12. 100 1458k 100 1458k 0 0 2901k 0 --:--:-- --:--:-- --:--:-- 2905k
  13. -> Downloading units-2.24.tar.gz.sig...
  14. % Total % Received % Xferd Average Speed Time Time Time Current
  15. Dload Upload Total Spent Left Speed
  16.  
  17. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  18. 100 119 100 119 0 0 570 0 --:--:-- --:--:-- --:--:-- 572
  19. -> Found units_currency.timer
  20. -> Found units_currency.service
  21. ==> WARNING: Skipping verification of source file PGP signatures.
  22. ==> Validating source files with sha256sums...
  23. units-2.24.tar.gz ... Passed
  24. units-2.24.tar.gz.sig ... Skipped
  25. units_currency.timer ... Passed
  26. units_currency.service ... Passed
  27. ==> Extracting sources...
  28. -> Extracting units-2.24.tar.gz with bsdtar
  29. ==> Starting build()...
  30. checking for gcc... gcc
  31. checking whether the C compiler works... yes
  32. checking for C compiler default output file name... a.out
  33. checking for suffix of executables...
  34. checking whether we are cross compiling... no
  35. checking for suffix of object files... o
  36. checking whether the compiler supports GNU C... yes
  37. checking whether gcc accepts -g... yes
  38. checking for gcc option to enable C11 features... none needed
  39. detected non-mac os: linux-gnu
  40. checking whether C compiler accepts -fpic... yes
  41. checking for an ANSI C-conforming const... yes
  42. checking for a BSD-compatible install... /usr/bin/install -c
  43. checking for a race-free mkdir -p... /usr/bin/mkdir -p
  44. checking for library containing sin... -lm
  45. checking for append_history in -lreadline... yes
  46. checking for gcc options needed to detect all undeclared functions... none needed
  47. checking whether rl_completion_suppress_append is declared... no
  48. checking for stdio.h... yes
  49. checking for stdlib.h... yes
  50. checking for string.h... yes
  51. checking for inttypes.h... yes
  52. checking for stdint.h... yes
  53. checking for strings.h... yes
  54. checking for sys/stat.h... yes
  55. checking for sys/types.h... yes
  56. checking for unistd.h... yes
  57. checking for string.h... (cached) yes
  58. checking for stdlib.h... (cached) yes
  59. checking for strchr... yes
  60. checking for strspn... yes
  61. checking for strtok... yes
  62. checking whether TIOCGWINSZ is declared... yes
  63. checking for setenv... yes
  64. checking for setlocale... yes
  65. checking for locale and UTF-8 support... yes
  66. checking for isfinite... yes
  67. checking for mksinfo... no
  68. checking for python3... /usr/bin/python3
  69. configure: creating ./config.status
  70. config.status: creating Makefile
  71. config.status: creating Windows/Makefile
  72. gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.24\" -DPACKAGE_STRING=\"GNU\ units\ 2.24\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"https://www.gnu.org/software/units/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -fpic -I. -c units.c
  73. In file included from units.c:92:
  74. units.h:57:12: error: conflicting types for ‘strchr’; have ‘char *(void)’
  75. 57 | char *strchr();
  76. | ^~~~~~
  77. In file included from /usr/include/readline/chardefs.h:35,
  78. from /usr/include/readline/keymaps.h:35,
  79. from /usr/include/readline/readline.h:37,
  80. from units.c:84:
  81. /usr/include/string.h:246:14: note: previous declaration of ‘strchr’ with type ‘char *(const char *, int)’
  82. 246 | extern char *strchr (const char *__s, int __c)
  83. | ^~~~~~
  84. units.c: In function ‘hassubscript’:
  85. units.c:495:10: error: too many arguments to function ‘strchr’; expected 0, have 2
  86. 495 | if (!strchr(digits, *ptr))
  87. | ^~~~~~ ~~~~~~
  88. units.h:57:12: note: declared here
  89. 57 | char *strchr();
  90. | ^~~~~~
  91. units.c: In function ‘strip_comment’:
  92. units.c:881:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  93. 881 | if ((line = strchr(line,COMMENTCHAR))) {
  94. | ^~~~~~ ~~~~
  95. units.h:57:12: note: declared here
  96. 57 | char *strchr();
  97. | ^~~~~~
  98. units.c: In function ‘isdecimal’:
  99. units.c:956:10: error: too many arguments to function ‘strchr’; expected 0, have 2
  100. 956 | return strchr(digits, c) != NULL;
  101. | ^~~~~~ ~~~~~~
  102. units.h:57:12: note: declared here
  103. 57 | char *strchr();
  104. | ^~~~~~
  105. units.c: In function ‘checkunitname’:
  106. units.c:977:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  107. 977 | if (strchr(digits, name[0])){
  108. | ^~~~~~ ~~~~~~
  109. units.h:57:12: note: declared here
  110. 57 | char *strchr();
  111. | ^~~~~~
  112. units.c: In function ‘newunit’:
  113. units.c:1016:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  114. 1016 | if (strchr(".,23456789", lastchar(unitname)) && !hassubscript(unitname)){
  115. | ^~~~~~ ~~~~~~~~~~~~
  116. units.h:57:12: note: declared here
  117. 57 | char *strchr();
  118. | ^~~~~~
  119. units.c: In function ‘parsepair’:
  120. units.c:1131:12: error: too many arguments to function ‘strchr’; expected 0, have 2
  121. 1131 | middle = strchr(start,delimiter);
  122. | ^~~~~~ ~~~~~
  123. units.h:57:12: note: declared here
  124. 57 | char *strchr();
  125. | ^~~~~~
  126. units.c: In function ‘newfunction’:
  127. units.c:1296:11: error: too many arguments to function ‘strchr’; expected 0, have 2
  128. 1296 | start = strchr(unitname,'(');
  129. | ^~~~~~ ~~~~~~~~
  130. units.h:57:12: note: declared here
  131. 57 | char *strchr();
  132. | ^~~~~~
  133. units.c:1297:9: error: too many arguments to function ‘strchr’; expected 0, have 2
  134. 1297 | end = strchr(unitname,')');
  135. | ^~~~~~ ~~~~~~~~
  136. units.h:57:12: note: declared here
  137. 57 | char *strchr();
  138. | ^~~~~~
  139. units.c:1463:9: error: too many arguments to function ‘strchr’; expected 0, have 2
  140. 1463 | inv = strchr(unitdef,FUNCSEPCHAR);
  141. | ^~~~~~ ~~~~~~~
  142. units.h:57:12: note: declared here
  143. 57 | char *strchr();
  144. | ^~~~~~
  145. units.c: In function ‘newtable’:
  146. units.c:1496:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  147. 1496 | tableunit = strchr(unitname,'[');
  148. | ^~~~~~ ~~~~~~~~
  149. units.h:57:12: note: declared here
  150. 57 | char *strchr();
  151. | ^~~~~~
  152. units.c:1497:9: error: too many arguments to function ‘strchr’; expected 0, have 2
  153. 1497 | end = strchr(unitname,']');
  154. | ^~~~~~ ~~~~~~~~
  155. units.h:57:12: note: declared here
  156. 57 | char *strchr();
  157. | ^~~~~~
  158. units.c: In function ‘newalias’:
  159. units.c:1593:8: error: too many arguments to function ‘strchr’; expected 0, have 2
  160. 1593 | if (!strchr(unitdef, UNITSEPCHAR)){
  161. | ^~~~~~ ~~~~~~~
  162. units.h:57:12: note: declared here
  163. 57 | char *strchr();
  164. | ^~~~~~
  165. units.c: In function ‘readunits’:
  166. units.c:1983:16: error: too many arguments to function ‘strchr’; expected 0, have 2
  167. 1983 | else if (strchr(unitname,'[')){ /* table definition */
  168. | ^~~~~~ ~~~~~~~~
  169. units.h:57:12: note: declared here
  170. 57 | char *strchr();
  171. | ^~~~~~
  172. units.c:1995:16: error: too many arguments to function ‘strchr’; expected 0, have 2
  173. 1995 | else if (strchr(unitname,'(')){ /* function definition */
  174. | ^~~~~~ ~~~~~~~~
  175. units.h:57:12: note: declared here
  176. 57 | char *strchr();
  177. | ^~~~~~
  178. units.c: In function ‘reduceproduct’:
  179. units.c:2366:14: error: too many arguments to function ‘strchr’; expected 0, have 2
  180. 2366 | if (strchr(toadd, PRIMITIVECHAR))
  181. | ^~~~~~ ~~~~~
  182. units.h:57:12: note: declared here
  183. 57 | char *strchr();
  184. | ^~~~~~
  185. units.c: In function ‘ignore_primitive’:
  186. units.c:2470:13: error: too many arguments to function ‘strchr’; expected 0, have 2
  187. 2470 | if (ul && strchr(ul->value, PRIMITIVECHAR))
  188. | ^~~~~~ ~~~~~~~~~
  189. units.h:57:12: note: declared here
  190. 57 | char *strchr();
  191. | ^~~~~~
  192. units.c: In function ‘showdefinition’:
  193. units.c:3063:13: error: too many arguments to function ‘strchr’; expected 0, have 2
  194. 3063 | && !strchr(unitstr,PRIMITIVECHAR)) {
  195. | ^~~~~~ ~~~~~~~
  196. units.h:57:12: note: declared here
  197. 57 | char *strchr();
  198. | ^~~~~~
  199. units.c: In function ‘checksigdigits’:
  200. units.c:3328:14: error: too many arguments to function ‘strchr’; expected 0, have 2
  201. 3328 | else if (strchr("EeGg", num_format.type) && ival > MAXPRECISION) {
  202. | ^~~~~~ ~~~~~~
  203. units.h:57:12: note: declared here
  204. 57 | char *strchr();
  205. | ^~~~~~
  206. units.c: In function ‘parsenumformat’:
  207. units.c:3430:12: error: too many arguments to function ‘strchr’; expected 0, have 2
  208. 3430 | dotptr = strchr(num_format.format, '.');
  209. | ^~~~~~ ~~~~~~~~~~~~~~~~~
  210. units.h:57:12: note: declared here
  211. 57 | char *strchr();
  212. | ^~~~~~
  213. units.c:3440:16: error: too many arguments to function ‘strchr’; expected 0, have 2
  214. 3440 | while (*p && strchr(format_flags, *p)) {
  215. | ^~~~~~ ~~~~~~~~~~~~
  216. units.h:57:12: note: declared here
  217. 57 | char *strchr();
  218. | ^~~~~~
  219. units.c:3499:9: error: too many arguments to function ‘strchr’; expected 0, have 2
  220. 3499 | if (strchr(format_types, *nonum)) {
  221. | ^~~~~~ ~~~~~~~~~~~~
  222. units.h:57:12: note: declared here
  223. 57 | char *strchr();
  224. | ^~~~~~
  225. units.c: In function ‘round_output’:
  226. units.c:3589:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  227. 3589 | if (strchr("Ff", num_format.type)) {
  228. | ^~~~~~ ~~~~
  229. units.h:57:12: note: declared here
  230. 57 | char *strchr();
  231. | ^~~~~~
  232. units.c:3599:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  233. 3599 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type))
  234. | ^~~~~~ ~~~~~~~~~~~~~~~~~
  235. units.h:57:12: note: declared here
  236. 57 | char *strchr();
  237. | ^~~~~~
  238. units.c:3599:42: error: too many arguments to function ‘strchr’; expected 0, have 2
  239. 3599 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type))
  240. | ^~~~~~ ~~~~~~
  241. units.h:57:12: note: declared here
  242. 57 | char *strchr();
  243. | ^~~~~~
  244. units.c: In function ‘displays_as’:
  245. units.c:3701:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  246. 3701 | if (strchr("Ff", num_format.type)) {
  247. | ^~~~~~ ~~~~
  248. units.h:57:12: note: declared here
  249. 57 | char *strchr();
  250. | ^~~~~~
  251. units.c:3711:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  252. 3711 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type))
  253. | ^~~~~~ ~~~~~~~~~~~~~~~~~
  254. units.h:57:12: note: declared here
  255. 57 | char *strchr();
  256. | ^~~~~~
  257. units.c:3711:42: error: too many arguments to function ‘strchr’; expected 0, have 2
  258. 3711 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type))
  259. | ^~~~~~ ~~~~~~
  260. units.h:57:12: note: declared here
  261. 57 | char *strchr();
  262. | ^~~~~~
  263. units.c: In function ‘showanswer’:
  264. units.c:3806:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  265. 3806 | else if (strchr(havestr,'/')) {
  266. | ^~~~~~ ~~~~~~~
  267. units.h:57:12: note: declared here
  268. 57 | char *strchr();
  269. | ^~~~~~
  270. units.c: In function ‘addtolist’:
  271. units.c:4045:9: error: too many arguments to function ‘strchr’; expected 0, have 2
  272. 4045 | if (strchr(def, PRIMITIVECHAR))
  273. | ^~~~~~ ~~~
  274. units.h:57:12: note: declared here
  275. 57 | char *strchr();
  276. | ^~~~~~
  277. units.c: In function ‘tryallunits’:
  278. units.c:4172:14: error: too many arguments to function ‘strchr’; expected 0, have 2
  279. 4172 | seploc = strchr(firstunit,UNITSEPCHAR); /* Alias definitions allowed in */
  280. | ^~~~~~ ~~~~~~~~~
  281. units.h:57:12: note: declared here
  282. 57 | char *strchr();
  283. | ^~~~~~
  284. units.c: In function ‘getprogdir’:
  285. units.c:1675:25: error: too many arguments to function ‘strchr’; expected 0, have 2
  286. 1675 | # define hasdirsep(s) strchr((s),'/')
  287. | ^~~~~~ ~~~
  288. units.c:4491:44: note: in expansion of macro ‘hasdirsep’
  289. 4491 | if (!progdir && (isfullpath(progname) || hasdirsep(progname)))
  290. | ^~~~~~~~~
  291. units.h:57:12: note: declared here
  292. 57 | char *strchr();
  293. | ^~~~~~
  294. units.c:4523:21: error: too many arguments to function ‘strchr’; expected 0, have 2
  295. 4523 | direc_end = strchr(direc,PATHSEP);
  296. | ^~~~~~ ~~~~~
  297. units.h:57:12: note: declared here
  298. 57 | char *strchr();
  299. | ^~~~~~
  300. units.c: In function ‘processargs’:
  301. units.c:5380:11: error: too many arguments to function ‘strchr’; expected 0, have 2
  302. 5380 | temp = strchr(mylocale,'.');
  303. | ^~~~~~ ~~~~~~~~
  304. units.h:57:12: note: declared here
  305. 57 | char *strchr();
  306. | ^~~~~~
  307. units.c: In function ‘processunit’:
  308. units.c:5459:26: error: too many arguments to function ‘strchr’; expected 0, have 2
  309. 5459 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR)){
  310. | ^~~~~~ ~~~~~~~
  311. units.h:57:12: note: declared here
  312. 57 | char *strchr();
  313. | ^~~~~~
  314. units.c: In function ‘definevariable’:
  315. units.c:5505:17: error: too many arguments to function ‘strchr’; expected 0, have 2
  316. 5505 | char *value = strchr(def,'=');
  317. | ^~~~~~ ~~~
  318. units.h:57:12: note: declared here
  319. 57 | char *strchr();
  320. | ^~~~~~
  321. units.c: In function ‘checkunitlist’:
  322. units.c:5621:24: error: too many arguments to function ‘strchr’; expected 0, have 2
  323. 5621 | if ((nextunitstr = strchr(unitstr, UNITSEPCHAR)) != 0)
  324. | ^~~~~~ ~~~~~~~
  325. units.h:57:12: note: declared here
  326. 57 | char *strchr();
  327. | ^~~~~~
  328. units.c:5664:13: error: too many arguments to function ‘strchr’; expected 0, have 2
  329. 5664 | *(strchr(firstunitstr, UNITSEPCHAR)) = '\0';
  330. | ^~~~~~ ~~~~~~~~~~~~
  331. units.h:57:12: note: declared here
  332. 57 | char *strchr();
  333. | ^~~~~~
  334. units.c: In function ‘processwant’:
  335. units.c:5706:26: error: too many arguments to function ‘strchr’; expected 0, have 2
  336. 5706 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR))
  337. | ^~~~~~ ~~~~~~~
  338. units.h:57:12: note: declared here
  339. 57 | char *strchr();
  340. | ^~~~~~
  341. units.c: In function ‘checkunits’:
  342. units.c:5767:11: error: too many arguments to function ‘strchr’; expected 0, have 2
  343. 5767 | if (strchr(uptr->value, PRIMITIVECHAR))
  344. | ^~~~~~ ~~~~~~~~~~~
  345. units.h:57:12: note: declared here
  346. 57 | char *strchr();
  347. | ^~~~~~
  348. units.c: In function ‘showunitlist’:
  349. units.c:5866:24: error: too many arguments to function ‘strchr’; expected 0, have 2
  350. 5866 | if ((nextunitstr = strchr(wantstr, UNITSEPCHAR)))
  351. | ^~~~~~ ~~~~~~~
  352. units.h:57:12: note: declared here
  353. 57 | char *strchr();
  354. | ^~~~~~
  355. units.c: In function ‘issetting’:
  356. units.c:6415:7: error: too many arguments to function ‘strchr’; expected 0, have 2
  357. 6415 | if (strchr("Ee", num_format.type))
  358. | ^~~~~~ ~~~~
  359. units.h:57:12: note: declared here
  360. 57 | char *strchr();
  361. | ^~~~~~
  362. units.c:6462:11: error: too many arguments to function ‘strchr’; expected 0, have 2
  363. 6462 | if (strchr("EeGg", num_format.type))
  364. | ^~~~~~ ~~~~~~
  365. units.h:57:12: note: declared here
  366. 57 | char *strchr();
  367. | ^~~~~~
  368. units.c:6511:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  369. 6511 | if (strchr(p2, '=')) {
  370. | ^~~~~~ ~~
  371. units.h:57:12: note: declared here
  372. 57 | char *strchr();
  373. | ^~~~~~
  374. units.c:6635:20: error: too many arguments to function ‘strchr’; expected 0, have 2
  375. 6635 | else if (strchr("EeGg", num_format.type) && value > MAXPRECISION) {
  376. | ^~~~~~ ~~~~~~
  377. units.h:57:12: note: declared here
  378. 57 | char *strchr();
  379. | ^~~~~~
  380. units.c:6649:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  381. 6649 | if (strchr("Ee", num_format.type))
  382. | ^~~~~~ ~~~~
  383. units.h:57:12: note: declared here
  384. 57 | char *strchr();
  385. | ^~~~~~
  386. units.c:6669:38: error: too many arguments to function ‘strchr’; expected 0, have 2
  387. 6669 | printf(" %s = %s\n", tag, strchr("Ee", num_format.type) ? YES_STR : NO_STR);
  388. | ^~~~~~ ~~~~
  389. units.h:57:12: note: declared here
  390. 57 | char *strchr();
  391. | ^~~~~~
  392. units.c:6677:16: error: too many arguments to function ‘strchr’; expected 0, have 2
  393. 6677 | if (!strchr("Ee", num_format.type)) {
  394. | ^~~~~~ ~~~~
  395. units.h:57:12: note: declared here
  396. 57 | char *strchr();
  397. | ^~~~~~
  398. units.c:6682:15: error: too many arguments to function ‘strchr’; expected 0, have 2
  399. 6682 | if (strchr("Gg", num_format.type))
  400. | ^~~~~~ ~~~~
  401. units.h:57:12: note: declared here
  402. 57 | char *strchr();
  403. | ^~~~~~
  404. units.c:6690:19: error: too many arguments to function ‘strchr’; expected 0, have 2
  405. 6690 | if (strchr("Gg", lastformattype))
  406. | ^~~~~~ ~~~~
  407. units.h:57:12: note: declared here
  408. 57 | char *strchr();
  409. | ^~~~~~
  410. units.c: In function ‘checklocale’:
  411. units.c:6766:12: error: too many arguments to function ‘strchr’; expected 0, have 2
  412. 6766 | temp = strchr(mylocale,'.');
  413. | ^~~~~~ ~~~~~~~~
  414. units.h:57:12: note: declared here
  415. 57 | char *strchr();
  416. | ^~~~~~
  417. units.c: In function ‘remaplocale’:
  418. units.c:6859:19: error: too many arguments to function ‘strchr’; expected 0, have 2
  419. 6859 | if ((hyphen = strchr(mylocale, '-')))
  420. | ^~~~~~ ~~~~~~~~
  421. units.h:57:12: note: declared here
  422. 57 | char *strchr();
  423. | ^~~~~~
  424. units.c:6865:13: error: too many arguments to function ‘strchr’; expected 0, have 2
  425. 6865 | value=strchr(name,'#');
  426. | ^~~~~~ ~~~~
  427. units.h:57:12: note: declared here
  428. 57 | char *strchr();
  429. | ^~~~~~
  430. units.c:6867:13: error: too many arguments to function ‘strchr’; expected 0, have 2
  431. 6867 | value=strchr(name,'\t');
  432. | ^~~~~~ ~~~~
  433. units.h:57:12: note: declared here
  434. 57 | char *strchr();
  435. | ^~~~~~
  436. units.c: In function ‘main’:
  437. units.c:7069:12: error: too many arguments to function ‘strchr’; expected 0, have 2
  438. 7069 | if (strchr("Ee", num_format.type))
  439. | ^~~~~~ ~~~~
  440. units.h:57:12: note: declared here
  441. 57 | char *strchr();
  442. | ^~~~~~
  443. units.c:7168:10: error: too many arguments to function ‘strchr’; expected 0, have 2
  444. 7168 | if (strchr(wantstr, UNITSEPCHAR)){
  445. | ^~~~~~ ~~~~~~~
  446. units.h:57:12: note: declared here
  447. 57 | char *strchr();
  448. | ^~~~~~
  449. units.c:7251:17: error: too many arguments to function ‘strchr’; expected 0, have 2
  450. 7251 | else if (strchr(wantstr, UNITSEPCHAR))
  451. | ^~~~~~ ~~~~~~~
  452. units.h:57:12: note: declared here
  453. 57 | char *strchr();
  454. | ^~~~~~
  455. make: *** [Makefile:82: units.o] Error 1
  456. ==> ERROR: A failure occurred in build().
  457. Aborting...
  458.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement