pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/59763: games/xpipeman doesn't build with gcc14



The following reply was made to PR pkg/59763; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/59763: games/xpipeman doesn't build with gcc14
Date: Sat, 15 Nov 2025 21:18:52 -0800 (PST)

 # gcc --version
 gcc (nb1 20250915) 14.3.0
 Copyright (C) 2024 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # make package
 ===> Cleaning for xpipeman-1.5nb6
 => Bootstrap dependency digest>=20211023: found digest-20220214
 => Checksum BLAKE2s OK for xpipeman-1.5.tar.gz
 => Checksum SHA512 OK for xpipeman-1.5.tar.gz
 ===> Installing dependencies for xpipeman-1.5nb6
 => Tool dependency mktools-[0-9]*: found mktools-20250213
 => Tool dependency imake-[0-9]*: found imake-1.0.10
 => Tool dependency cwrappers>=20150314: found cwrappers-20220403
 => Build dependency x11-links>=1.36: found x11-links-1.36
 ===> Skipping vulnerability checks.
 WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
 WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
 ===> Overriding tools for xpipeman-1.5nb6
 ===> Extracting for xpipeman-1.5nb6
 ===> Patching for xpipeman-1.5nb6
 => Applying pkgsrc patches for xpipeman-1.5nb6
 ===> Creating toolchain wrappers for xpipeman-1.5nb6
 ===> Configuring for xpipeman-1.5nb6
 imake -DUseInstalled -I/usr/pkg/lib/X11/config
 imake: executing: /usr/pkg/bin/tradcpp -I. -D__amd64__ -D__amd64__ -traditional -debuglog .imake.cpplog -D__amd64__ -DUseInstalled -I/usr/pkg/lib/X11/config .imake.start.c
 make Makefiles
 make includes
 make depend
 rm -f .depend
 makedepend -f-  -- -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20  -DUSE_MAKEDEPEND -- actions.c game.c graphics.c main.c score.c popup.c info.c > .depend
 makedepend: warning:  actions.c, line 38: cannot find include file "X11/X.h"
  	not in ./X11/X.h
  	not in ./lib/Xt/X11/X.h
  	not in /usr/pkg/include/X11/X.h
  	not in /usr/include/X11/X.h
 makedepend: warning:  actions.c, line 39: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  actions.c, line 40: cannot find include file "X11/StringDefs.h"
  	not in ./X11/StringDefs.h
  	not in ./lib/Xt/X11/StringDefs.h
  	not in /usr/pkg/include/X11/StringDefs.h
  	not in /usr/include/X11/StringDefs.h
 makedepend: warning:  game.c, line 37: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  graphics.c, line 37: cannot find include file "X11/X.h"
  	not in ./X11/X.h
  	not in ./lib/Xt/X11/X.h
  	not in /usr/pkg/include/X11/X.h
  	not in /usr/include/X11/X.h
 makedepend: warning:  graphics.c, line 38: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  graphics.c, line 39: cannot find include file "X11/Shell.h"
  	not in ./X11/Shell.h
  	not in ./lib/Xt/X11/Shell.h
  	not in /usr/pkg/include/X11/Shell.h
  	not in /usr/include/X11/Shell.h
 makedepend: warning:  main.c, line 38: cannot find include file "X11/X.h"
  	not in ./X11/X.h
  	not in ./lib/Xt/X11/X.h
  	not in /usr/pkg/include/X11/X.h
  	not in /usr/include/X11/X.h
 makedepend: warning:  main.c, line 39: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  main.c, line 40: cannot find include file "X11/StringDefs.h"
  	not in ./X11/StringDefs.h
  	not in ./lib/Xt/X11/StringDefs.h
  	not in /usr/pkg/include/X11/StringDefs.h
  	not in /usr/include/X11/StringDefs.h
 makedepend: warning:  main.c, line 41: cannot find include file "X11/cursorfont.h"
  	not in ./X11/cursorfont.h
  	not in ./lib/Xt/X11/cursorfont.h
  	not in /usr/pkg/include/X11/cursorfont.h
  	not in /usr/include/X11/cursorfont.h
 makedepend: warning:  main.c, line 42: cannot find include file "X11/Core.h"
  	not in ./X11/Core.h
  	not in ./lib/Xt/X11/Core.h
  	not in /usr/pkg/include/X11/Core.h
  	not in /usr/include/X11/Core.h
 makedepend: warning:  main.c, line 43: cannot find include file "X11/Shell.h"
  	not in ./X11/Shell.h
  	not in ./lib/Xt/X11/Shell.h
  	not in /usr/pkg/include/X11/Shell.h
  	not in /usr/include/X11/Shell.h
 makedepend: warning:  main.c, line 50: cannot find include file "X11/Xaw/Label.h"
  	not in ./X11/Xaw/Label.h
  	not in ./lib/Xt/X11/Xaw/Label.h
  	not in /usr/pkg/include/X11/Xaw/Label.h
  	not in /usr/include/X11/Xaw/Label.h
 makedepend: warning:  main.c, line 51: cannot find include file "X11/Xaw/Command.h"
  	not in ./X11/Xaw/Command.h
  	not in ./lib/Xt/X11/Xaw/Command.h
  	not in /usr/pkg/include/X11/Xaw/Command.h
  	not in /usr/include/X11/Xaw/Command.h
 makedepend: warning:  main.c, line 52: cannot find include file "X11/Xaw/Box.h"
  	not in ./X11/Xaw/Box.h
  	not in ./lib/Xt/X11/Xaw/Box.h
  	not in /usr/pkg/include/X11/Xaw/Box.h
  	not in /usr/include/X11/Xaw/Box.h
 makedepend: warning:  main.c (reading /usr/include/sys/common_ansi.h), line 40: #error __PTRDIFF_TYPE__ not present
 makedepend: warning:  main.c (reading /usr/include/sys/common_ansi.h), line 44: #error __SIZE_TYPE__ not present
 makedepend: warning:  main.c (reading /usr/include/sys/common_ansi.h), line 48: #error __WCHAR_TYPE__ not present
 makedepend: warning:  main.c (reading /usr/include/sys/common_ansi.h), line 52: #error __WINT_TYPE__ not present
 makedepend: warning:  score.c, line 39: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  score.c, line 40: cannot find include file "X11/StringDefs.h"
  	not in ./X11/StringDefs.h
  	not in ./lib/Xt/X11/StringDefs.h
  	not in /usr/pkg/include/X11/StringDefs.h
  	not in /usr/include/X11/StringDefs.h
 makedepend: warning:  score.c, line 41: cannot find include file "X11/Shell.h"
  	not in ./X11/Shell.h
  	not in ./lib/Xt/X11/Shell.h
  	not in /usr/pkg/include/X11/Shell.h
  	not in /usr/include/X11/Shell.h
 makedepend: warning:  score.c, line 48: cannot find include file "X11/Xaw/Box.h"
  	not in ./X11/Xaw/Box.h
  	not in ./lib/Xt/X11/Xaw/Box.h
  	not in /usr/pkg/include/X11/Xaw/Box.h
  	not in /usr/include/X11/Xaw/Box.h
 makedepend: warning:  score.c, line 49: cannot find include file "X11/Xaw/Command.h"
  	not in ./X11/Xaw/Command.h
  	not in ./lib/Xt/X11/Xaw/Command.h
  	not in /usr/pkg/include/X11/Xaw/Command.h
  	not in /usr/include/X11/Xaw/Command.h
 makedepend: warning:  score.c, line 50: cannot find include file "X11/Xaw/Label.h"
  	not in ./X11/Xaw/Label.h
  	not in ./lib/Xt/X11/Xaw/Label.h
  	not in /usr/pkg/include/X11/Xaw/Label.h
  	not in /usr/include/X11/Xaw/Label.h
 makedepend: warning:  score.c, line 53: cannot find include file "X11/Xos.h"
  	not in ./X11/Xos.h
  	not in ./lib/Xt/X11/Xos.h
  	not in /usr/pkg/include/X11/Xos.h
  	not in /usr/include/X11/Xos.h
 makedepend: warning:  popup.c, line 33: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  popup.c, line 34: cannot find include file "X11/StringDefs.h"
  	not in ./X11/StringDefs.h
  	not in ./lib/Xt/X11/StringDefs.h
  	not in /usr/pkg/include/X11/StringDefs.h
  	not in /usr/include/X11/StringDefs.h
 makedepend: warning:  popup.c, line 35: cannot find include file "X11/Shell.h"
  	not in ./X11/Shell.h
  	not in ./lib/Xt/X11/Shell.h
  	not in /usr/pkg/include/X11/Shell.h
  	not in /usr/include/X11/Shell.h
 makedepend: warning:  popup.c, line 42: cannot find include file "X11/Xaw/Box.h"
  	not in ./X11/Xaw/Box.h
  	not in ./lib/Xt/X11/Xaw/Box.h
  	not in /usr/pkg/include/X11/Xaw/Box.h
  	not in /usr/include/X11/Xaw/Box.h
 makedepend: warning:  popup.c, line 43: cannot find include file "X11/Xaw/Command.h"
  	not in ./X11/Xaw/Command.h
  	not in ./lib/Xt/X11/Xaw/Command.h
  	not in /usr/pkg/include/X11/Xaw/Command.h
  	not in /usr/include/X11/Xaw/Command.h
 makedepend: warning:  popup.c, line 44: cannot find include file "X11/Xaw/Label.h"
  	not in ./X11/Xaw/Label.h
  	not in ./lib/Xt/X11/Xaw/Label.h
  	not in /usr/pkg/include/X11/Xaw/Label.h
  	not in /usr/include/X11/Xaw/Label.h
 makedepend: warning:  info.c, line 33: cannot find include file "X11/Intrinsic.h"
  	not in ./X11/Intrinsic.h
  	not in ./lib/Xt/X11/Intrinsic.h
  	not in /usr/pkg/include/X11/Intrinsic.h
  	not in /usr/include/X11/Intrinsic.h
 makedepend: warning:  info.c, line 34: cannot find include file "X11/StringDefs.h"
  	not in ./X11/StringDefs.h
  	not in ./lib/Xt/X11/StringDefs.h
  	not in /usr/pkg/include/X11/StringDefs.h
  	not in /usr/include/X11/StringDefs.h
 makedepend: warning:  info.c, line 35: cannot find include file "X11/Shell.h"
  	not in ./X11/Shell.h
  	not in ./lib/Xt/X11/Shell.h
  	not in /usr/pkg/include/X11/Shell.h
  	not in /usr/include/X11/Shell.h
 makedepend: warning:  info.c, line 42: cannot find include file "X11/Xaw/Box.h"
  	not in ./X11/Xaw/Box.h
  	not in ./lib/Xt/X11/Xaw/Box.h
  	not in /usr/pkg/include/X11/Xaw/Box.h
  	not in /usr/include/X11/Xaw/Box.h
 makedepend: warning:  info.c, line 43: cannot find include file "X11/Xaw/Command.h"
  	not in ./X11/Xaw/Command.h
  	not in ./lib/Xt/X11/Xaw/Command.h
  	not in /usr/pkg/include/X11/Xaw/Command.h
  	not in /usr/include/X11/Xaw/Command.h
 makedepend: warning:  info.c, line 44: cannot find include file "X11/Xaw/Label.h"
  	not in ./X11/Xaw/Label.h
  	not in ./lib/Xt/X11/Xaw/Label.h
  	not in /usr/pkg/include/X11/Xaw/Label.h
  	not in /usr/include/X11/Xaw/Label.h
 ===> Building for xpipeman-1.5nb6
 --- actions.o ---
 --- game.o ---
 --- graphics.o ---
 --- main.o ---
 --- score.o ---
 --- popup.o ---
 --- info.o ---
 --- xpipeman._man ---
 --- actions.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c actions.c -o actions.o
 --- game.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c game.c -o game.o
 --- graphics.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c graphics.c -o graphics.o
 --- main.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c main.c -o main.o
 --- score.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c score.c -o score.o
 --- popup.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c popup.c -o popup.o
 --- info.o ---
 gcc -O2 -fno-strict-aliasing    -I. -I./lib/Xt  -I/usr/pkg/include    -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO   -DSCORE_FILE=\"/var/games/xpipescores\" -DMAXSCORES=20   -I/usr/pkg/include -I/usr/X11R7/include -c info.c -o info.o
 --- xpipeman._man ---
 rm -f xpipeman._man
 if test -z "" ; then  cd `dirname xpipeman` &&  ln -s `basename xpipeman.man` `basename xpipeman._man`;  else  cpp -undef -traditional  -D__apploaddir__=/usr/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org"   < xpipeman.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' 			-e '/^#line  *[0-9][0-9]*  *.*$/d' 			-e '/^[ 	]*XCOMM$/s/XCOMM/#/' 			-e '/^[ 	]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' 			-e '/^[ 	]*XHASH/s/XHASH/#/' 			-e '/\@\@$/s/\@\@$/\\/' >xpipeman._man;  fi
 --- info.o ---
 info.c: In function 'create_info_popup':
 info.c:247:42: error: passing argument 3 of 'XtAddCallback' from incompatible pointer type [-Wincompatible-pointer-types]
    247 |   XtAddCallback(info_popdown,XtNcallback,info_popdown_callback,0);
        |                                          ^~~~~~~~~~~~~~~~~~~~~
        |                                          |
        |                                          void (* (*)())(struct _WidgetRec *, void *, void *)
 In file included from info.c:33:
 /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:1256:5: note: expected 'XtCallbackProc' {aka 'void (*)(struct _WidgetRec *, void *, void *)'} but argument is of type 'void (* (*)())(struct _WidgetRec *, void *, void *)'
   1256 |     XtCallbackProc      /* callback */,
        |     ^~~~~~~~~~~~~~
 --- game.o ---
 game.c: In function 'new_game':
 game.c:209:2: error: implicit declaration of function 'all_popdown' [-Wimplicit-function-declaration]
    209 |  all_popdown();
        |  ^~~~~~~~~~~
 --- popup.o ---
 popup.c: In function 'continue_callback':
 popup.c:147:2: error: implicit declaration of function 'start_new_level' [-Wimplicit-function-declaration]
    147 |  start_new_level();
        |  ^~~~~~~~~~~~~~~
 popup.c: In function 'create_general_popups':
 popup.c:223:45: error: passing argument 3 of 'XtAddCallback' from incompatible pointer type [-Wincompatible-pointer-types]
    223 |   XtAddCallback(continue_button,XtNcallback,continue_callback,0);
        |                                             ^~~~~~~~~~~~~~~~~
        |                                             |
        |                                             void (* (*)())(struct _WidgetRec *, void *, void *)
 In file included from popup.c:33:
 /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:1256:5: note: expected 'XtCallbackProc' {aka 'void (*)(struct _WidgetRec *, void *, void *)'} but argument is of type 'void (* (*)())(struct _WidgetRec *, void *, void *)'
   1256 |     XtCallbackProc      /* callback */,
        |     ^~~~~~~~~~~~~~
 --- main.o ---
 main.c: In function 'main':
 main.c:175:20: error: assignment to 'XtIntervalId' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    175 |   current_callback = NULL;
        |                    ^
 --- game.o ---
 game.c: In function 'place_objects':
 game.c:261:19: error: implicit declaration of function 'random' [-Wimplicit-function-declaration]
    261 |             ((int)random() %((OBSFIN-OBSRT)+1)) + OBSRT;
        |                   ^~~~~~
 --- main.o ---
 main.c:277:56: error: passing argument 4 of 'XtAddEventHandler' from incompatible pointer type [-Wincompatible-pointer-types]
    277 |   XtAddEventHandler(playfield_widget, ExposureMask, 0, redisplay_level, 0);
        |                                                        ^~~~~~~~~~~~~~~
        |                                                        |
        |                                                        void (* (*)())(struct _WidgetRec *, void *, XEvent *, Boolean *) {aka void (* (*)())(struct _WidgetRec *, void *, union _XEvent *, char *)}
 In file included from main.c:39:
 /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:849:5: note: expected 'XtEventHandler' {aka 'void (*)(struct _WidgetRec *, void *, union _XEvent *, char *)'} but argument is of type 'void (* (*)())(struct _WidgetRec *, void *, XEvent *, Boolean *)' {aka 'void (* (*)())(struct _WidgetRec *, void *, union _XEvent *, char *)'}
    849 |     XtEventHandler      /* proc */,
        |     ^~~~~~~~~~~~~~
 main.c:278:61: error: passing argument 4 of 'XtAddEventHandler' from incompatible pointer type [-Wincompatible-pointer-types]
    278 |   XtAddEventHandler(playfield_widget, PointerMotionMask, 0, pointer_moved, 0);
        |                                                             ^~~~~~~~~~~~~
        |                                                             |
        |                                                             void (* (*)())(struct _WidgetRec *, void *, XEvent *, Boolean *) {aka void (* (*)())(struct _WidgetRec *, void *, union _XEvent *, char *)}
 /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:849:5: note: expected 'XtEventHandler' {aka 'void (*)(struct _WidgetRec *, void *, union _XEvent *, char *)'} but argument is of type 'void (* (*)())(struct _WidgetRec *, void *, XEvent *, Boolean *)' {aka 'void (* (*)())(struct _WidgetRec *, void *, union _XEvent *, char *)'}
    849 |     XtEventHandler      /* proc */,
        |     ^~~~~~~~~~~~~~
 --- info.o ---
 *** [info.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- game.o ---
 game.c: In function 'game_over':
 game.c:367:3: error: implicit declaration of function 'nomore_popdown'; did you mean 'game_over_popdown'? [-Wimplicit-function-declaration]
    367 |   nomore_popdown();
        |   ^~~~~~~~~~~~~~
        |   game_over_popdown
 --- score.o ---
 score.c: In function 'check_score':
 score.c:84:22: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
     84 |   if(current_score > atoi(scores[MAXSCORES-1].score)) {
        |                      ^~~~
 In file included from /usr/include/string.h:154,
                   from /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:61,
                   from score.c:39:
 score.c: In function 'new_high_score':
 score.c:132:16: error: implicit declaration of function 'getenv' [-Wimplicit-function-declaration]
    132 |   strncpy(name,getenv("USER"),25);
        |                ^~~~~~
 score.c:56:1: note: 'getenv' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
     55 | #include "xpipeman.h"
    +++ |+#include <stdlib.h>
     56 | 
 score.c:132:16: error: passing argument 2 of '__builtin___strncpy_chk' makes pointer from integer without a cast [-Wint-conversion]
    132 |   strncpy(name,getenv("USER"),25);
        |                ^~~~~~~~~~~~~~
        |                |
        |                int
 --- popup.o ---
 *** [popup.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- score.o ---
 score.c:132:16: note: expected 'const char *' but argument is of type 'int'
 score.c:132:16: error: passing argument 2 of '__strncpy_ichk' makes pointer from integer without a cast [-Wint-conversion]
    132 |   strncpy(name,getenv("USER"),25);
        |                ^~~~~~~~~~~~~~
        |                |
        |                int
 /usr/include/ssp/string.h:91:1: note: expected 'const char * restrict' but argument is of type 'int'
     91 | __ssp_bos_icheck3_restrict(strncpy, char *, const char *)
        | ^
 --- game.o ---
 game.c: In function 'new_level':
 game.c:391:5: error: implicit declaration of function 'show_nomore_popup'; did you mean 'show_game_over_popup'? [-Wimplicit-function-declaration]
    391 |     show_nomore_popup();
        |     ^~~~~~~~~~~~~~~~~
        |     show_game_over_popup
 --- score.o ---
 score.c: In function 'create_high_score_popup':
 score.c:251:37: error: passing argument 3 of 'XtAddCallback' from incompatible pointer type [-Wincompatible-pointer-types]
    251 |   XtAddCallback(popdown,XtNcallback,popdown_callback,0);
        |                                     ^~~~~~~~~~~~~~~~
        |                                     |
        |                                     void (* (*)())(struct _WidgetRec *, void *, void *)
 --- main.o ---
 *** [main.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- score.o ---
 /tmp/pkgs/games/xpipeman/work/.buildlink/include/X11/Intrinsic.h:1256:5: note: expected 'XtCallbackProc' {aka 'void (*)(struct _WidgetRec *, void *, void *)'} but argument is of type 'void (* (*)())(struct _WidgetRec *, void *, void *)'
   1256 |     XtCallbackProc      /* callback */,
        |     ^~~~~~~~~~~~~~
 --- game.o ---
 game.c:445:28: warning: comparison between pointer and integer
    445 |       if (current_callback != NULL)
        |                            ^~
 game.c: In function 'speed_up_flow':
 game.c:461:23: warning: comparison between pointer and integer
    461 |  if (current_callback != NULL)
        |                       ^~
 game.c: In function 'show_when_flow':
 game.c:518:28: warning: comparison between pointer and integer
    518 |       if (current_callback != NULL)
        |                            ^~
 game.c:524:28: warning: comparison between pointer and integer
    524 |       if (current_callback != NULL)
        |                            ^~
 game.c: In function 'draw_flow':
 game.c:536:20: error: assignment to 'XtIntervalId' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    536 |   current_callback = NULL;
        |                    ^
 game.c: In function 'increment_flow':
 game.c:587:30: warning: comparison between pointer and integer
    587 |         if (current_callback != NULL)
        |                              ^~
 --- score.o ---
 *** [score.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- game.o ---
 *** [game.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- graphics.o ---
 graphics.c: In function 'redraw_block':
 graphics.c:399:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]
    399 | redraw_block(x,y)
        | ^~~~~~~~~~~~
 graphics.c:399:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
 *** [graphics.o] Error code 1
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 --- actions.o ---
 
 make: 6 errors
 
 make: stopped making "all" in /tmp/pkgs/games/xpipeman/work/xpipeman
 *** Error code 2
 
 Stop.
 make[1]: stopped making "install" in /build/pkgsrc/games/xpipeman
 *** Error code 1
 
 Stop.
 make: stopped making "install" in /build/pkgsrc/games/xpipeman
 #
 


Home | Main Index | Thread Index | Old Index