=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/net/quagga", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for quagga-1.2.4nb6 /opt/pkg/bin/gmake all-recursive gmake[1]: Entering directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4' Making all in lib gmake[2]: Entering directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4/lib' true /opt/pkg/bin/gmake all-am gmake[3]: Entering directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4/lib' CC pid_output.lo CC network.lo CC getopt.lo CC getopt1.lo getopt.c:212:14: error: conflicting types for 'getenv'; have 'char *(void)' 212 | extern char *getenv (); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from ./zebra.h:41, from getopt.c:33: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ getopt.c: In function 'my_index': getopt.c:216:1: warning: old-style function definition [-Wold-style-definition] 216 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:306:1: warning: old-style function definition [-Wold-style-definition] 306 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:391:1: warning: old-style function definition [-Wold-style-definition] 391 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:404:21: error: too many arguments to function 'getenv'; expected 0, have 1 404 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:212:14: note: declared here 212 | extern char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:513:1: warning: old-style function definition [-Wold-style-definition] 513 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ gmake[3]: *** [Makefile:568: getopt.lo] Error 1 gmake[3]: *** Waiting for unfinished jobs.... 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) | ^~~~~~~~~~~~~~~~ gmake[3]: Leaving directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4/lib' gmake[2]: *** [Makefile:430: all] Error 2 gmake[2]: Leaving directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4/lib' gmake[1]: *** [Makefile:467: all-recursive] Error 1 gmake[1]: Leaving directory '/home/pbulk/work/net/quagga/work/quagga-1.2.4' gmake: *** [Makefile:399: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/quagga *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/quagga