+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xdm-1.1.17/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xdm-1.1.17/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xdm-1.1.17 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in app-defaults Making all in chooser --- chooser.o --- CC chooser.o chooser.c:144:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 144 | { "-xdmaddress", "*xdmAddress", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~ chooser.c:144:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 144 | { "-xdmaddress", "*xdmAddress", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~ chooser.c:145:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | { "-clientaddress", "*clientAddress", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~~~~ chooser.c:145:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | { "-clientaddress", "*clientAddress", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~~~~ chooser.c:146:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 146 | { "-connectionType","*connectionType", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~~~~~ chooser.c:146:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 146 | { "-connectionType","*connectionType", XrmoptionSepArg, NULL }, | ^~~~~~~~~~~~~~~~~ chooser.c: In function 'AddHostname': chooser.c:240:79: warning: declaration of 'willing' shadows a global declaration [-Wshadow] 240 | AddHostname (ARRAY8Ptr hostname, ARRAY8Ptr status, struct sockaddr *addr, int willing) | ~~~~^~~~~~~ In file included from chooser.c:63: ../include/dm.h:322:18: note: shadowed declaration is here 322 | extern char *willing; | ^~~~~~~ chooser.c:339:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 339 | new->fullname = "Unknown"; | ^ chooser.c: In function 'Choose': chooser.c:681:25: warning: declaration of 'buffer' shadows a global declaration [-Wshadow] 681 | XdmcpBuffer buffer; | ^~~~~~ chooser.c:180:25: note: shadowed declaration is here 180 | static XdmcpBuffer buffer; | ^~~~~~ --- chooser --- CCLD chooser Making all in config --- Xservers.ws --- --- xdm-config --- --- Xreset --- --- Xresources --- GEN Xresources --- Xservers.ws --- GEN Xservers.ws --- xdm-config --- GEN xdm-config --- Xreset --- GEN Xreset --- Xsession --- --- Xstartup --- GEN Xstartup --- Xsession --- GEN Xsession --- all --- /opt/pkg/bin/bmake all-am --- Xservers --- ln -s Xservers.ws Xservers Making all in greeter --- Login.lo --- --- greet.lo --- --- verify.lo --- --- Login.lo --- CC Login.lo --- greet.lo --- CC greet.lo --- verify.lo --- CC verify.lo In file included from verify.c:38: ../include/dm.h:53:11: warning: "_POSIX_C_SOURCE" redefined 53 | # define _POSIX_C_SOURCE X_POSIX_C_SOURCE | ^~~~~~~~~~~~~~~ In file included from /usr/include/sys/types.h:37, from /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Xos.h:42, from ../include/dm.h:45: /usr/include/sys/feature_tests.h:342:9: note: this is the location of the previous definition 342 | #define _POSIX_C_SOURCE 200112L | ^~~~~~~~~~~~~~~ --- greet.lo --- In file included from greet.c:73: ../include/dm.h:53:11: warning: "_POSIX_C_SOURCE" redefined 53 | # define _POSIX_C_SOURCE X_POSIX_C_SOURCE | ^~~~~~~~~~~~~~~ In file included from /usr/include/sys/types.h:37, from /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Xlib.h:38, from /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:53, from greet.c:64: /usr/include/sys/feature_tests.h:342:9: note: this is the location of the previous definition 342 | #define _POSIX_C_SOURCE 200112L | ^~~~~~~~~~~~~~~ --- Login.lo --- In file included from /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/IntrinsicP.h:51, from Login.c:59: /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:156:41: note: in expansion of macro 'XtDefaultForeground' 156 | offset(hipixel), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:158:41: note: in expansion of macro 'XtDefaultForeground' 158 | offset(shdpixel), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1674:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1674 | #define XtDefaultBackground "XtDefaultBackground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:160:41: note: in expansion of macro 'XtDefaultBackground' 160 | offset(inppixel), XtRString, XtDefaultBackground}, | ^~~~~~~~~~~~~~~~~~~ Login.c:180:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 180 | offset (textFace), XtRString, "Serif-18"}, | ^~~~~~~~~~ Login.c:182:41: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 182 | offset (promptFace), XtRString, "Serif-18:bold"}, | ^~~~~~~~~~~~~~~ Login.c:184:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 184 | offset (greetFace), XtRString, "Serif-24:italic"}, | ^~~~~~~~~~~~~~~~~ Login.c:186:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 186 | offset (failFace), XtRString, "Serif-18:bold"}, | ^~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:188:41: note: in expansion of macro 'XtDefaultForeground' 188 | offset(textcolor), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:190:41: note: in expansion of macro 'XtDefaultForeground' 190 | offset(promptcolor), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:192:41: note: in expansion of macro 'XtDefaultForeground' 192 | offset(greetcolor), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/x11/xdm/work/.buildlink/include/X11/Intrinsic.h:1673:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1673 | #define XtDefaultForeground "XtDefaultForeground" | ^~~~~~~~~~~~~~~~~~~~~ Login.c:194:41: note: in expansion of macro 'XtDefaultForeground' 194 | offset(failcolor), XtRString, XtDefaultForeground}, | ^~~~~~~~~~~~~~~~~~~ Login.c:197:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 197 | offset(greeting), XtRString, "X Window System"}, | ^~~~~~~~~~~~~~~~~ Login.c:199:44: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 199 | offset(unsecure_greet), XtRString, "This is an unsecure session"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Login.c:201:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 201 | offset(namePrompt), XtRString, "Login: "}, | ^~~~~~~~~~ Login.c:203:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 203 | offset(passwdPrompt), XtRString, "Password: "}, | ^~~~~~~~~~~~~ Login.c:206:9: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 206 | "Login incorrect or forbidden by policy" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- greet.lo --- greet.c: In function 'InitGreet': greet.c:244:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 244 | static char *argv[] = { "xlogin", NULL }; | ^~~~~~~~ greet.c: In function 'GreetUser': greet.c:496:45: error: initialization of 'int (*)(int, const struct pam_message **, struct pam_response **, void *)' from incompatible pointer type 'int (*)(int, struct pam_message **, struct pam_response **, void *)' [-Wincompatible-pointer-types] 496 | struct pam_conv pc = { pamconv, &pcd }; | ^~~~~~~ greet.c:496:45: note: (near initialization for 'pc.conv') greet.c:588:38: error: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types] 588 | (XDM_PAM_QUAL void **) &username)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void ** greet.c:507:38: note: in definition of macro 'RUN_AND_CHECK_PAM_ERROR' 507 | pam_error = function args; \ | ^~~~ In file included from ../include/dm.h:95: /usr/include/security/pam_appl.h:198:22: note: expected 'const void **' but argument is of type 'void **' 198 | const void **item /* Address of place to put pointer */ | ~~~~~~~~~~~~~^~~~ greet.c:613:42: error: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types] 613 | (XDM_PAM_QUAL void **) &username)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void ** greet.c:507:38: note: in definition of macro 'RUN_AND_CHECK_PAM_ERROR' 507 | pam_error = function args; \ | ^~~~ /usr/include/security/pam_appl.h:198:22: note: expected 'const void **' but argument is of type 'void **' 198 | const void **item /* Address of place to put pointer */ | ~~~~~~~~~~~~~^~~~ greet.c: In function 'pamconv': greet.c:735:45: error: passing argument 3 of 'pam_get_item' from incompatible pointer type [-Wincompatible-pointer-types] 735 | if ((pam_get_item(*pamhp, PAM_USER, (XDM_PAM_QUAL void **) &username) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void ** /usr/include/security/pam_appl.h:198:22: note: expected 'const void **' but argument is of type 'void **' 198 | const void **item /* Address of place to put pointer */ | ~~~~~~~~~~~~~^~~~ *** [greet.lo] Error code 1 bmake[2]: stopped making "all" in /home/pbulk/build/x11/xdm/work/xdm-1.1.17/greeter --- Login.lo --- Login.c: In function 'SetPrompt': Login.c:852:5: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 852 | strncpy(prompt, message, messageLen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Login.c:844:18: note: length computed here 844 | messageLen = strlen(message); | ^~~~~~~~~~~~~~~ bmake[2]: 1 error bmake[2]: stopped making "all" in /home/pbulk/build/x11/xdm/work/xdm-1.1.17/greeter bmake[1]: stopped making "all-recursive" in /home/pbulk/build/x11/xdm/work/xdm-1.1.17 bmake: stopped making "all" in /home/pbulk/build/x11/xdm/work/xdm-1.1.17 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xdm *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xdm