=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xsane", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for xsane-0.99.9nb45 for subdir in lib src po doc; do \ target=`echo all-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && /opt/pkg/bin/gmake $target) \ || case "-j5 --jobserver-auth=fifo:/var/tmp//GMfifo301436" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making all in lib gmake[1]: Entering directory '/home/pbulk/work/graphics/xsane/work/xsane-0.999/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall alloca.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall getopt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall getopt1.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall strndup.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall strdup.c In file included from getopt.c:103: ../include/getopt.h:104:12: error: conflicting types for 'getopt'; have 'int(void)' 104 | extern int getopt (); | ^~~~~~ In file included from getopt.c:41: /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:200:1: warning: old-style function definition [-Wold-style-definition] 200 | my_index (str, chr) | ^~~~~~~~ In file included from getopt1.c:33: /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 *); | ^~~~~~ getopt.c: In function 'exchange': getopt.c:256:1: warning: old-style function definition [-Wold-style-definition] 256 | exchange (argv) | ^~~~~~~~ In file included from getopt1.c:23: ../include/getopt.h:104:12: note: previous declaration of 'getopt' with type 'int(void)' 104 | extern int getopt (); | ^~~~~~ getopt1.c: In function 'getopt_long': getopt.c: In function '_getopt_initialize': getopt1.c:59:1: warning: old-style function definition [-Wold-style-definition] 59 | getopt_long (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~ getopt.c:317:1: warning: old-style function definition [-Wold-style-definition] 317 | _getopt_initialize (optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:328:21: error: too many arguments to function 'getenv'; expected 0, have 1 328 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:197:7: note: declared here 197 | char *getenv (); | ^~~~~~ getopt.c:355:25: error: too many arguments to function 'getenv'; expected 0, have 1 355 | nonoption_flags = getenv (var); | ^~~~~~ ~~~ getopt.c:197:7: note: declared here 197 | char *getenv (); | ^~~~~~ getopt.c:359:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 359 | nonoption_flags_len = strlen (nonoption_flags); | ^~~~~~ getopt.c:104:1: note: include '' or provide a declaration of 'strlen' 103 | #include "getopt.h" +++ |+#include 104 | getopt1.c: In function 'getopt_long_only': getopt1.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^~~~~~~~~~~~~~~~ getopt.c: In function '_getopt_internal': getopt.c:422:1: warning: old-style function definition [-Wold-style-definition] 422 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c:559:50: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 559 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ~~~~~~~~^~~~~~~~~~ : note: built-in 'strncmp' declared here getopt.c:561:39: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 561 | if (nameend - nextchar == strlen (p->name)) | ^~~~~~ getopt.c:561:39: note: include '' or provide a declaration of 'strlen' getopt.c:585:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 585 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:585:23: note: include '' or provide a declaration of 'strlen' getopt.c:603:22: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 603 | if (opterr) | ^ getopt.c:615:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 615 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:615:31: note: include '' or provide a declaration of 'strlen' getopt.c:631:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 631 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:631:31: note: include '' or provide a declaration of 'strlen' getopt.c:636:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 636 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:636:23: note: include '' or provide a declaration of 'strlen' getopt.c: At top level: getopt.c:748:1: error: conflicting types for 'getopt'; have 'int(void)' 748 | 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:748:1: warning: old-style function definition [-Wold-style-definition] 748 | getopt (argc, argv, optstring) | ^~~~~~ gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -Wall strsep.c gmake[1]: *** [Makefile:55: getopt1.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [Makefile:55: getopt.o] Error 1 gmake[1]: Leaving directory '/home/pbulk/work/graphics/xsane/work/xsane-0.999/lib' gmake: *** [Makefile:63: all-recursive] Error 1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xsane *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/xsane