=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/time/pclock", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pclock-0.13.1nb2 --- all --- (cd src && make all) --- Default.xpm --- --- Main.o --- --- getopt.o --- --- Default.xpm --- /usr/bin/ln -s ../XPM/round-3d.xpm Default.xpm --- Main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I. -c Main.c -o Main.o --- getopt.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I. -c getopt.c -o getopt.o --- getopt1.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I. -c getopt1.c -o getopt1.o --- getopt.o --- In file included from getopt.c:107: 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 *); | ^~~~~~ --- Main.o --- In file included from Main.c:28: ./getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)' 108 | extern int getopt (); | ^~~~~~ In file included from Main.c:26: /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.o --- getopt.c: In function 'my_index': getopt.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:308:1: warning: old-style function definition [-Wold-style-definition] 308 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:393:1: warning: old-style function definition [-Wold-style-definition] 393 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:406:21: error: too many arguments to function 'getenv'; expected 0, have 1 406 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:214:14: note: declared here 214 | extern char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:515:1: warning: old-style function definition [-Wold-style-definition] 515 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ --- getopt1.o --- In file included from getopt1.c:37: /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:27: 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:69:1: warning: old-style function definition [-Wold-style-definition] 69 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt1.c: In function 'getopt_long_only': getopt1.c:85:1: warning: old-style function definition [-Wold-style-definition] 85 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ --- getopt.o --- getopt.c: At top level: getopt.c:969:1: error: conflicting types for 'getopt'; have 'int(void)' 969 | 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:969:1: warning: old-style function definition [-Wold-style-definition] 969 | getopt (argc, argv, optstring) | ^~~~~~ --- getopt1.o --- *** [getopt1.o] Error code 1 make[1]: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig/src --- getopt.o --- *** [getopt.o] Error code 1 make[1]: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig/src --- Main.o --- *** [Main.o] Error code 1 make[1]: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig/src make[1]: 3 errors make[1]: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig/src *** [all] Error code 2 bmake: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig bmake: 1 error bmake: stopped making "all" in /home/pbulk/work/time/pclock/work/pclock-0.13.1.orig *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/pclock *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/time/pclock