=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/security/srm", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for srm-1.2.15 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in lib --- snprintf.o --- --- getopt1.o --- --- snprintf.o --- gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT snprintf.o -MD -MP -MF .deps/snprintf.Tpo -c -o snprintf.o snprintf.c --- getopt1.o --- gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c In file included from getopt1.c:39: /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:29: getopt.h:136:12: note: previous declaration of 'getopt' with type 'int(void)' 136 | extern int getopt (); | ^~~~~~ getopt1.c: In function 'getopt_long': getopt1.c:71:1: warning: old-style function definition [-Wold-style-definition] 71 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt1.c: In function 'getopt_long_only': getopt1.c:87:1: warning: old-style function definition [-Wold-style-definition] 87 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ --- snprintf.o --- mv -f .deps/snprintf.Tpo .deps/snprintf.Po --- getopt.o --- --- getopt1.o --- *** [getopt1.o] Error code 1 bmake[2]: stopped making "all" in /tmp/work/security/srm/work/srm-1.2.15/lib --- getopt.o --- gcc -DHAVE_CONFIG_H -I. -I.. -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c In file included from getopt.c:109: getopt.h:136:12: error: conflicting types for 'getopt'; have 'int(void)' 136 | extern int getopt (); | ^~~~~~ In file included from getopt.c:47: /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:220:1: warning: old-style function definition [-Wold-style-definition] 220 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:310:1: warning: old-style function definition [-Wold-style-definition] 310 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:395:1: warning: old-style function definition [-Wold-style-definition] 395 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:408:21: error: too many arguments to function 'getenv'; expected 0, have 1 408 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:216:14: note: declared here 216 | extern 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:977:1: error: conflicting types for 'getopt'; have 'int(void)' 977 | 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:977:1: warning: old-style function definition [-Wold-style-definition] 977 | getopt (argc, argv, optstring) | ^~~~~~ *** [getopt.o] Error code 1 bmake[2]: stopped making "all" in /tmp/work/security/srm/work/srm-1.2.15/lib bmake[2]: 2 errors bmake[2]: stopped making "all" in /tmp/work/security/srm/work/srm-1.2.15/lib bmake[1]: stopped making "all-recursive" in /tmp/work/security/srm/work/srm-1.2.15 bmake: stopped making "all" in /tmp/work/security/srm/work/srm-1.2.15 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/srm *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/srm