=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/dog", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for dog-1.7nb1 gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c getopt.c -o getopt.o gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c getopt1.c -o getopt1.o gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c dog.c -o dog.o In file included from getopt1.c:36: /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:26: getopt.h:108:12: note: previous declaration of 'getopt' with type 'int(void)' 108 | extern int getopt (); | ^~~~~~ getopt1.c: In function 'getopt_long': getopt1.c:68:1: warning: old-style function definition [-Wold-style-definition] 68 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt1.c: In function 'getopt_long_only': getopt1.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ In file included from getopt.c:114: getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)' 108 | extern int getopt (); | ^~~~~~ In file included from getopt.c:45: /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:217:1: warning: old-style function definition [-Wold-style-definition] 217 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:307:1: warning: old-style function definition [-Wold-style-definition] 307 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:392:1: warning: old-style function definition [-Wold-style-definition] 392 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:405:21: error: too many arguments to function 'getenv'; expected 0, have 1 405 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:214:7: note: declared here 214 | char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:517:1: warning: old-style function definition [-Wold-style-definition] 517 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c: At top level: getopt.c:971:1: error: conflicting types for 'getopt'; have 'int(void)' 971 | 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:971:1: warning: old-style function definition [-Wold-style-definition] 971 | getopt (argc, argv, optstring) | ^~~~~~ gmake: *** [Makefile:30: getopt1.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from dog.c:37: getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)' 108 | extern int getopt (); | ^~~~~~ In file included from dog.c:34: /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 *); | ^~~~~~ gmake: *** [Makefile:30: getopt.o] Error 1 gmake: *** [Makefile:30: dog.o] Error 1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/dog *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/dog