=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/math/units", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent", "PYTHON_VERSION_REQD=313"] ===> Building for units-2.01nb5 --- units.o --- --- getopt.o --- --- getopt1.o --- --- getopt.o --- gcc -DUNITSFILE=\"/opt/pkg/share/units/definitions.units\" -DLOCALEMAP=\"/opt/pkg/share/units/locale.map\" -DREADLINE -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.01\" -DPACKAGE_STRING=\"GNU\ units\ 2.01\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/usr/include -I/opt/pkg/include/python3.13 -I. -c getopt.c --- units.o --- gcc -DUNITSFILE=\"/opt/pkg/share/units/definitions.units\" -DLOCALEMAP=\"/opt/pkg/share/units/locale.map\" -DREADLINE -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.01\" -DPACKAGE_STRING=\"GNU\ units\ 2.01\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/usr/include -I/opt/pkg/include/python3.13 -I. -c units.c --- getopt1.o --- gcc -DUNITSFILE=\"/opt/pkg/share/units/definitions.units\" -DLOCALEMAP=\"/opt/pkg/share/units/locale.map\" -DREADLINE -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.01\" -DPACKAGE_STRING=\"GNU\ units\ 2.01\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/usr/include -I/opt/pkg/include/python3.13 -I. -c getopt1.c In file included from getopt1.c:33: /usr/include/stdio.h:335:17: error: conflicting types for 'getopt'; have 'int(int, char * const*, const char *)' 335 | extern int getopt(int, char *const *, const char *); | ^~~~~~ In file included from getopt1.c:23: getopt.h:110:12: note: previous declaration of 'getopt' with type 'int(void)' 110 | extern int getopt (); | ^~~~~~ getopt1.c: In function 'getopt_long': getopt1.c:59:1: warning: old-style function definition [-Wold-style-definition] 59 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt1.c: In function 'getopt_long_only': getopt1.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ --- getopt.o --- In file included from getopt.c:84: getopt.h:110:12: error: conflicting types for 'getopt'; have 'int(void)' 110 | extern int getopt (); | ^~~~~~ In file included from getopt.c:41: /usr/include/stdio.h:335:17: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 335 | extern int getopt(int, char *const *, const char *); | ^~~~~~ getopt.c: In function 'my_index': getopt.c:181:1: warning: old-style function definition [-Wold-style-definition] 181 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:227:1: warning: old-style function definition [-Wold-style-definition] 227 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:285:1: warning: old-style function definition [-Wold-style-definition] 285 | _getopt_initialize (optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:296:21: error: too many arguments to function 'getenv'; expected 0, have 1 296 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:178:7: note: declared here 178 | char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:375:1: warning: old-style function definition [-Wold-style-definition] 375 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c: At top level: getopt.c:676:1: error: conflicting types for 'getopt'; have 'int(void)' 676 | getopt (argc, argv, optstring) | ^~~~~~ /usr/include/stdio.h:335:17: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 335 | extern int getopt(int, char *const *, const char *); | ^~~~~~ getopt.c: In function 'getopt': getopt.c:676:1: warning: old-style function definition [-Wold-style-definition] 676 | getopt (argc, argv, optstring) | ^~~~~~ --- getopt1.o --- *** [getopt1.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/math/units/work/units-2.01 --- units.o --- In file included from units.c:57: units.h:57:12: error: conflicting types for 'strchr'; have 'char *(void)' 57 | char *strchr(); | ^~~~~~ In file included from /usr/include/string.h:35, from /home/pbulk/work/math/units/work/.buildlink/include/readline/chardefs.h:35, from /home/pbulk/work/math/units/work/.buildlink/include/readline/keymaps.h:35, from /home/pbulk/work/math/units/work/.buildlink/include/readline/readline.h:38, from units.c:49: /usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)' 140 | extern char *strchr(const char *, int); | ^~~~~~ units.h:67:7: error: conflicting types for 'strtok'; have 'char *(void)' 67 | char *strtok(); | ^~~~~~ /usr/include/iso/string_iso.h:84:14: note: previous declaration of 'strtok' with type 'char *(char * restrict, const char * restrict)' 84 | extern char *strtok(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ units.h:68:8: error: conflicting types for 'strtod'; have 'double(void)' 68 | double strtod(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from units.h:48: /usr/include/iso/stdlib_iso.h:156:15: note: previous declaration of 'strtod' with type 'double(const char * restrict, char ** restrict)' 156 | extern double strtod(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD); | ^~~~~~ units.c: In function 'hassubscript': units.c:271:10: error: too many arguments to function 'strchr'; expected 0, have 2 271 | if (!strchr(digits, str[length])) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'spacechars': units.c:287:9: error: too many arguments to function 'strchr'; expected 0, have 2 287 | if (strchr(badchars, *string)) | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ --- getopt.o --- *** [getopt.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/math/units/work/units-2.01 --- units.o --- units.c: In function 'removepadding': units.c:534:43: error: too many arguments to function 'strchr'; expected 0, have 2 534 | for(endptr = in + strlen(in) - 1;*in && strchr(WHITE,*endptr);endptr--) | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'tightprint': units.c:548:9: error: too many arguments to function 'strchr'; expected 0, have 2 548 | if (strchr(WHITE,*p)){ | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'splitline': units.c:593:12: error: too many arguments to function 'strtok'; expected 0, have 2 593 | *first = strtok(line, WHITE); | ^~~~~~ ~~~~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:595:15: error: too many arguments to function 'strtok'; expected 0, have 2 595 | *second = strtok(0, "\n"); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c: In function 'isblankstr': units.c:613:20: error: too many arguments to function 'strchr'; expected 0, have 2 613 | while(*str) if (!strchr(WHITE,*str++)) return 0; | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'newunit': units.c:635:7: error: too many arguments to function 'strchr'; expected 0, have 2 635 | if (strchr(".,23456789", unitname[strlen(unitname)-1]) | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:642:7: error: too many arguments to function 'strchr'; expected 0, have 2 642 | if (strchr(digits, unitname[0])){ | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'newprefix': units.c:684:7: error: too many arguments to function 'strchr'; expected 0, have 2 684 | if (strchr(digits, unitname[0])){ | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'parsepair': units.c:732:11: error: too many arguments to function 'strchr'; expected 0, have 2 732 | start = strchr(input, '['); | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:746:9: error: too many arguments to function 'strchr'; expected 0, have 2 746 | end = strchr(start, ']'); | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:755:12: error: too many arguments to function 'strchr'; expected 0, have 2 755 | middle = strchr(start,delimiter); | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'extract_interval': units.c:785:11: error: too many arguments to function 'strtod'; expected 0, have 2 785 | val = strtod(first, &end); | ^~~~~~ ~~~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c:794:11: error: too many arguments to function 'strtod'; expected 0, have 2 794 | val = strtod(second, &end); | ^~~~~~ ~~~~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c: In function 'newfunction': units.c:835:11: error: too many arguments to function 'strchr'; expected 0, have 2 835 | start = strchr(unitname,'('); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:836:9: error: too many arguments to function 'strchr'; expected 0, have 2 836 | end = strchr(unitname,')'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:839:7: error: too many arguments to function 'strchr'; expected 0, have 2 839 | if (strchr(digits, unitname[0])){ | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:958:9: error: too many arguments to function 'strchr'; expected 0, have 2 958 | inv = strchr(unitdef,FUNCSEPCHAR); | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'newtable': units.c:986:15: error: too many arguments to function 'strchr'; expected 0, have 2 986 | tableunit = strchr(unitname,'['); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:987:9: error: too many arguments to function 'strchr'; expected 0, have 2 987 | end = strchr(unitname,']'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:989:7: error: too many arguments to function 'strchr'; expected 0, have 2 989 | if (strchr(digits, unitname[0])){ | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1021:27: error: too many arguments to function 'strtod'; expected 0, have 2 1021 | tab[tabpt].location = strtod(start,&end); | ^~~~~~ ~~~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c:1033:24: error: too many arguments to function 'strtod'; expected 0, have 2 1033 | tab[tabpt].value = strtod(start,&end); | ^~~~~~ ~~~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c: In function 'newalias': units.c:1071:8: error: too many arguments to function 'strchr'; expected 0, have 2 1071 | if (!strchr(unitdef, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'checkvar': units.c:1118:14: error: too many arguments to function 'strtok'; expected 0, have 2 1118 | listitem = strtok(list,WHITE); | ^~~~~~ ~~~~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1122:16: error: too many arguments to function 'strtok'; expected 0, have 2 1122 | listitem = strtok(0,WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c: In function 'readunits': units.c:1211:22: error: too many arguments to function 'strchr'; expected 0, have 2 1211 | if ((lineptr = strchr(line,COMMENTCHAR))) /* strip comments */ | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1215:20: error: too many arguments to function 'strtok'; expected 0, have 2 1215 | unitname = strtok(line+1, WHITE); | ^~~~~~ ~~~~~~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1227:21: error: too many arguments to function 'strtok'; expected 0, have 2 1227 | unitname=strtok(0,WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1228:20: error: too many arguments to function 'strtok'; expected 0, have 2 1228 | unitdef=strtok(0,"\r\n"); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1266:22: error: too many arguments to function 'strtok'; expected 0, have 2 1266 | unitname = strtok(0, WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1309:23: error: too many arguments to function 'strtok'; expected 0, have 2 1309 | unitname = strtok(0,"\r\n"); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1315:23: error: too many arguments to function 'strtok'; expected 0, have 2 1315 | unitname = strtok(0,WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1316:21: error: too many arguments to function 'strtok'; expected 0, have 2 1316 | unitdef = strtok(0,WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1347:24: error: too many arguments to function 'strtok'; expected 0, have 2 1347 | unitname = strtok(0, WHITE); | ^~~~~~ ~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:1356:17: error: too many arguments to function 'strchr'; expected 0, have 2 1356 | if (strchr(unitname, '/') || strchr(unitname, '\\')) | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1356:42: error: too many arguments to function 'strchr'; expected 0, have 2 1356 | if (strchr(unitname, '/') || strchr(unitname, '\\')) | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1362:48: error: too many arguments to function 'strchr'; expected 0, have 2 1362 | while(pathend != includefile && !strchr("/\\", *pathend)) | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1364:19: error: too many arguments to function 'strchr'; expected 0, have 2 1364 | if (strchr("/\\", *pathend)) | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1407:16: error: too many arguments to function 'strchr'; expected 0, have 2 1407 | else if (strchr(unitname,'[')){ /* table definition */ | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1419:16: error: too many arguments to function 'strchr'; expected 0, have 2 1419 | else if (strchr(unitname,'(')){ /* function definition */ | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'reduceproduct': units.c:1784:14: error: too many arguments to function 'strchr'; expected 0, have 2 1784 | if (strchr(toadd, PRIMITIVECHAR)) | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'ignore_primitive': units.c:1867:13: error: too many arguments to function 'strchr'; expected 0, have 2 1867 | if (ul && strchr(ul->value, PRIMITIVECHAR)) | ^~~~~~ ~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'showdefinition': units.c:2276:10: error: too many arguments to function 'strchr'; expected 0, have 2 2276 | !strchr(unitstr,PRIMITIVECHAR)) { | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'showfuncdefinition': units.c:2299:11: error: too many arguments to function 'strchr'; expected 0, have 2 2299 | if (strchr(digits,fun->tableunit[0])) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'isdecimal': units.c:2405:7: error: too many arguments to function 'strchr'; expected 0, have 2 2405 | if (strchr(digits, c)) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'isfract': units.c:2423:11: error: too many arguments to function 'strtod'; expected 0, have 2 2423 | (void)strtod(unitstr, &enddouble); | ^~~~~~ ~~~~~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c: In function 'parsenumformat': units.c:2461:13: error: too many arguments to function 'strchr'; expected 0, have 2 2461 | if (*p && strchr("+-# '", *p)) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:2468:14: error: too many arguments to function 'strchr'; expected 0, have 2 2468 | if (*p && !strchr("0123456789." FORMAT_TYPES, *p)) { | ^~~~~~ ~~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:2486:41: error: too many arguments to function 'strchr'; expected 0, have 2 2486 | else if (*nonum == '.' && nonum[1] && strchr(FORMAT_TYPES, nonum[1])) { | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:2497:9: error: too many arguments to function 'strchr'; expected 0, have 2 2497 | if (strchr(FORMAT_TYPES, *nonum)) { | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'round_to_displayed': units.c:2549:7: error: too many arguments to function 'strchr'; expected 0, have 2 2549 | if (strchr("Ff", num_format.type)) { | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:2565:13: error: too many arguments to function 'strtod'; expected 0, have 2 2565 | rounded = strtod(buf, NULL); | ^~~~~~ ~~~ units.h:68:8: note: declared here 68 | double strtod(); | ^~~~~~ units.c: In function 'showanswer': units.c:2648:15: error: too many arguments to function 'strchr'; expected 0, have 2 2648 | else if (strchr(havestr,'/')) { | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'addtolist': units.c:2816:9: error: too many arguments to function 'strchr'; expected 0, have 2 2816 | if (strchr(def, PRIMITIVECHAR)) | ^~~~~~ ~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'tryallunits': units.c:2896:14: error: too many arguments to function 'strchr'; expected 0, have 2 2896 | seploc = strchr(firstunit,UNITSEPCHAR); /* Alias definitions allowed in */ | ^~~~~~ ~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'findunitsfile': units.c:3147:11: error: too many arguments to function 'strchr'; expected 0, have 2 3147 | if (strchr(env, ';')) /* MS-DOS */ | ^~~~~~ ~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3151:15: error: too many arguments to function 'strtok'; expected 0, have 2 3151 | direc = strtok(env, separator); | ^~~~~~ ~~~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c:3162:17: error: too many arguments to function 'strtok'; expected 0, have 2 3162 | direc = strtok(NULL, separator); | ^~~~~~ ~~~~ units.h:67:7: note: declared here 67 | char *strtok(); | ^~~~~~ units.c: In function 'processunit': units.c:3421:26: error: too many arguments to function 'strchr'; expected 0, have 2 3421 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'checkunitlist': units.c:3491:24: error: too many arguments to function 'strchr'; expected 0, have 2 3491 | if ((nextunitstr = strchr(unitstr, UNITSEPCHAR)) != 0) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3530:13: error: too many arguments to function 'strchr'; expected 0, have 2 3530 | *(strchr(firstunitstr, UNITSEPCHAR)) = '\0'; | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'processwant': units.c:3571:26: error: too many arguments to function 'strchr'; expected 0, have 2 3571 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR)) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'showunitlist': units.c:3718:24: error: too many arguments to function 'strchr'; expected 0, have 2 3718 | if ((nextunitstr = strchr(wantstr, UNITSEPCHAR))) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'ishelpquery': units.c:3848:10: error: too many arguments to function 'strchr'; expected 0, have 2 3848 | if (!strchr(WHITE,*str)) | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3862:10: error: too many arguments to function 'strchr'; expected 0, have 2 3862 | if (!strchr(WHITE,*str)) | ^~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'checklocale': units.c:3967:12: error: too many arguments to function 'strchr'; expected 0, have 2 3967 | temp = strchr(mylocale,'.'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'remaplocale': units.c:4050:13: error: too many arguments to function 'strchr'; expected 0, have 2 4050 | value=strchr(name,'#'); | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:4052:13: error: too many arguments to function 'strchr'; expected 0, have 2 4052 | value=strchr(name,'\t'); | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function 'main': units.c:4189:11: error: too many arguments to function 'strchr'; expected 0, have 2 4189 | if (strchr(wantstr, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:4235:19: error: too many arguments to function 'strchr'; expected 0, have 2 4235 | else if (strchr(wantstr, UNITSEPCHAR)) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ *** [units.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/math/units/work/units-2.01 bmake: 3 errors bmake: stopped making "all" in /home/pbulk/work/math/units/work/units-2.01 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/math/units *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/math/units