=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/checkpassword-pam", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for checkpassword-pam-0.99nb2 --- all --- /opt/pkg/bin/bmake all-am --- checkpassword-pam.o --- --- pam-support.o --- --- getopt.o --- --- checkpassword-pam.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -MT checkpassword-pam.o -MD -MP -MF ".deps/checkpassword-pam.Tpo" -c -o checkpassword-pam.o `test -f 'checkpassword-pam.c' || echo './'`checkpassword-pam.c; then mv -f ".deps/checkpassword-pam.Tpo" ".deps/checkpassword-pam.Po"; else rm -f ".deps/checkpassword-pam.Tpo"; exit 1; fi --- getopt.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o `test -f 'getopt.c' || echo './'`getopt.c; then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi --- pam-support.o --- if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -MT pam-support.o -MD -MP -MF ".deps/pam-support.Tpo" -c -o pam-support.o `test -f 'pam-support.c' || echo './'`pam-support.c; then mv -f ".deps/pam-support.Tpo" ".deps/pam-support.Po"; else rm -f ".deps/pam-support.Tpo"; exit 1; fi --- checkpassword-pam.o --- In file included from checkpassword-pam.c:22: ./getopt.h:136:12: error: conflicting types for 'getopt'; have 'int(void)' 136 | extern int getopt (); | ^~~~~~ In file included from logging.h:21, from checkpassword-pam.c:18: /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 --- In file included from getopt.c:102: getopt.h:136:12: error: conflicting types for 'getopt'; have 'int(void)' 136 | extern int getopt (); | ^~~~~~ In file included from getopt.c:40: /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:213:1: warning: old-style function definition [-Wold-style-definition] 213 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:303:1: warning: old-style function definition [-Wold-style-definition] 303 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:388:1: warning: old-style function definition [-Wold-style-definition] 388 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:401:21: error: too many arguments to function 'getenv'; expected 0, have 1 401 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:209:14: note: declared here 209 | extern char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:510:1: warning: old-style function definition [-Wold-style-definition] 510 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c: At top level: getopt.c:966:1: error: conflicting types for 'getopt'; have 'int(void)' 966 | 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:966:1: warning: old-style function definition [-Wold-style-definition] 966 | getopt (argc, argv, optstring) | ^~~~~~ *** [getopt.o] Error code 1 bmake[1]: stopped making "all-am" in /tmp/work/sysutils/checkpassword-pam/work/checkpassword-pam-0.99 --- checkpassword-pam.o --- *** [checkpassword-pam.o] Error code 1 bmake[1]: stopped making "all-am" in /tmp/work/sysutils/checkpassword-pam/work/checkpassword-pam-0.99 bmake[1]: 2 errors bmake[1]: stopped making "all-am" in /tmp/work/sysutils/checkpassword-pam/work/checkpassword-pam-0.99 *** [all] Error code 2 bmake: stopped making "all" in /tmp/work/sysutils/checkpassword-pam/work/checkpassword-pam-0.99 bmake: 1 error bmake: stopped making "all" in /tmp/work/sysutils/checkpassword-pam/work/checkpassword-pam-0.99 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/checkpassword-pam *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/checkpassword-pam