=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/misc/getopt", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for getopt-1.1.6 gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/pkg/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\" -Dprogram_version=\"1.1.6\" -I./gnu -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline getopt.c -o getopt.o gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/pkg/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\" -Dprogram_version=\"1.1.6\" -I./gnu -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline gnu/getopt.c -o gnu/getopt.o gcc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=1 -DLOCALEDIR=\"/opt/pkg/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\" -Dprogram_version=\"1.1.6\" -I./gnu -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline gnu/getopt1.c -o gnu/getopt1.o In file included from gnu/getopt1.c:34: /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 gnu/getopt1.c:24: gnu/getopt.h:106:12: note: previous declaration of 'getopt' with type 'int(void)' 106 | extern int getopt (); | ^~~~~~ gnu/getopt1.c: In function 'getopt_long': gnu/getopt1.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ gnu/getopt1.c: In function 'getopt_long_only': gnu/getopt1.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ In file included from gnu/getopt.c:111: gnu/getopt.h:106:12: error: conflicting types for 'getopt'; have 'int(void)' 106 | extern int getopt (); | ^~~~~~ In file included from gnu/getopt.c:42: /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 *); | ^~~~~~ gnu/getopt.c:214:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 214 | my_index (str, chr) | ^~~~~~~~ gnu/getopt.c: In function 'my_index': gnu/getopt.c:214:1: warning: old-style function definition [-Wold-style-definition] gnu/getopt.c:221:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 221 | return (char *) str; | ^ In file included from getopt.c:69: ./gnu/getopt.h:106:12: error: conflicting types for 'getopt'; have 'int(void)' 106 | extern int getopt (); | ^~~~~~ gnu/getopt.c: In function 'exchange': gnu/getopt.c:304:1: warning: old-style function definition [-Wold-style-definition] 304 | exchange (argv) | ^~~~~~~~ In file included from getopt.c:60: /usr/include/stdlib.h:302:12: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 302 | extern int getopt(int, char *const *, const char *); | ^~~~~~ gnu/getopt.c: In function '_getopt_initialize': gnu/getopt.c:389:1: warning: old-style function definition [-Wold-style-definition] 389 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ gnu/getopt.c:402:21: error: too many arguments to function 'getenv'; expected 0, have 1 402 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ gnu/getopt.c:211:7: note: declared here 211 | char *getenv (); | ^~~~~~ gnu/getopt.c:390:10: warning: unused parameter 'argc' [-Wunused-parameter] 390 | int argc; | ^~~~ gnu/getopt.c:391:19: warning: unused parameter 'argv' [-Wunused-parameter] 391 | char *const *argv; | ^~~~ gnu/getopt.c: In function '_getopt_internal': gnu/getopt.c:514:1: warning: old-style function definition [-Wold-style-definition] 514 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ gnu/getopt.c:561:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 561 | exchange ((char **) argv); | ^ gnu/getopt.c:583:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 583 | exchange ((char **) argv); | ^ gnu/getopt.c:699:22: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 699 | if (opterr) | ^ gnu/getopt.c:761:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 761 | nextchar = (char *) ""; | ^ gnu/getopt.c: At top level: gnu/getopt.c:968:1: error: conflicting types for 'getopt'; have 'int(void)' 968 | 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 *); | ^~~~~~ gnu/getopt.c: In function 'getopt': gnu/getopt.c:968:1: warning: old-style function definition [-Wold-style-definition] 968 | getopt (argc, argv, optstring) | ^~~~~~ gmake: *** [Makefile:92: gnu/getopt1.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [Makefile:92: gnu/getopt.o] Error 1 gmake: *** [Makefile:92: getopt.o] Error 1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/getopt *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/getopt