=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/net/netcat6", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for netcat6-1.0nb5 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in config Making all in intl Making all in contrib --- getopt.o --- --- getopt1.o --- --- getopt.o --- source='getopt.c' object='getopt.o' libtool=no depfile='.deps/getopt.Po' tmpdepfile='.deps/getopt.TPo' depmode=gcc3 /usr/bin/bash ../config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -c `test -f 'getopt.c' || echo './'`getopt.c --- getopt1.o --- source='getopt1.c' object='getopt1.o' libtool=no depfile='.deps/getopt1.Po' tmpdepfile='.deps/getopt1.TPo' depmode=gcc3 /usr/bin/bash ../config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -c `test -f 'getopt1.c' || echo './'`getopt1.c In file included from 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 getopt1.c:24: getopt.h:146:12: note: previous declaration of 'getopt' with type 'int(void)' 146 | extern int getopt (); | ^~~~~~ getopt1.c: In function 'getopt_long': getopt1.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt1.c: In function 'getopt_long_only': getopt1.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ --- getopt.o --- In file included from getopt.c:104: getopt.h:146:12: error: conflicting types for 'getopt'; have 'int(void)' 146 | 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:215:1: warning: old-style function definition [-Wold-style-definition] 215 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:311:1: warning: old-style function definition [-Wold-style-definition] 311 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:396:1: warning: old-style function definition [-Wold-style-definition] 396 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:409:21: error: too many arguments to function 'getenv'; expected 0, have 1 409 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:211:14: note: declared here 211 | extern char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:518:1: warning: old-style function definition [-Wold-style-definition] 518 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c: At top level: getopt.c:984:1: error: conflicting types for 'getopt'; have 'int(void)' 984 | 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:984:1: warning: old-style function definition [-Wold-style-definition] 984 | getopt (argc, argv, optstring) | ^~~~~~ --- getopt1.o --- *** [getopt1.o] Error code 1 bmake[2]: stopped making "all" in /tmp/work/net/netcat6/work/nc6-1.0/contrib --- getopt.o --- *** [getopt.o] Error code 1 bmake[2]: stopped making "all" in /tmp/work/net/netcat6/work/nc6-1.0/contrib bmake[2]: 2 errors bmake[2]: stopped making "all" in /tmp/work/net/netcat6/work/nc6-1.0/contrib *** [all-recursive] Error code 1 bmake[1]: stopped making "all-recursive" in /tmp/work/net/netcat6/work/nc6-1.0 bmake[1]: 1 error bmake[1]: stopped making "all-recursive" in /tmp/work/net/netcat6/work/nc6-1.0 *** [all] Error code 2 bmake: stopped making "all" in /tmp/work/net/netcat6/work/nc6-1.0 bmake: 1 error bmake: stopped making "all" in /tmp/work/net/netcat6/work/nc6-1.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/netcat6 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/netcat6