D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 warning: /home/pterjan/rpmbuild/SPECS/netrek-client-cow.spec line 27: autopatch: no matching patches in range sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/netrek-client-cow-3.3.2-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.QGxsyJ sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WISnAW + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netrek-client-cow-3.3.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/netrek-client-cow-3.3.2-build + rm -rf netrek-client-cow-3.3.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/netrek-client-cow-3.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd netrek-client-cow-3.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.LrBRfV + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netrek-client-cow-3.3.2-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd netrek-client-cow-3.3.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info CPPFLAGS=-P configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for inline... inline checking if fd_set requires sys/select.h... no checking for ANSI C header files... (cached) yes checking for unistd.h... (cached) yes checking for memory.h... (cached) yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking for stdlib.h... (cached) yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/ptyio.h usability... no checking sys/ptyio.h presence... no checking for sys/ptyio.h... no checking sys/fcntl.h usability... yes checking sys/fcntl.h presence... yes checking for sys/fcntl.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking machine/endian.h usability... no checking machine/endian.h presence... no checking for machine/endian.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking for pid_t... yes checking for uid_t in sys/types.h... yes checking for size_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking whether struct tm is in sys/time.h or time.h... time.h checking for itimer in time.h... no checking size of long... 8 checking for u_int in sys/types.h... yes checking for PATH_MAX in limits.h... yes checking for strcmpi... no checking for strncmpi... no checking for X... libraries , headers checking for X11 header files checking for X11 library archive checking for main in -lX11... yes checking for main in -lXpm... no checking X11/xpm.h usability... no checking X11/xpm.h presence... no checking for X11/xpm.h... no checking for main in -lXbsd... no checking for main in -lsocket... no checking for main in -linet... no checking for main in -lnsl... no checking for main in -lseq... no checking for main in -lsun... no checking return type of signal handlers... void checking for usleep... yes checking for random... yes checking for setstate... yes checking for strftime... yes checking for ftime... yes checking for main in -lm... yes checking for nint... no checking for usleep... (cached) yes checking for setstate... (cached) yes checking for strdup... yes checking for rint... yes checking for library containing imlib_load_image... -lImlib2 checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.4... yes checking for Mix_OpenAudio in -lSDL_mixer... yes configure: creating ./config.status config.status: creating system.mk config.status: creating config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make /usr/bin/make -f system.mk netrek-client-cow make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/netrek-client-cow-3.3.2-build/netrek-client-cow-3.3.2' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o check.o check.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o colors.o colors.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o data.o data.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o death.o death.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o defaults.o defaults.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o dmessage.o dmessage.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o enter.o enter.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o findslot.o findslot.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o getname.o getname.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o getship.o getship.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o helpwin.o helpwin.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o inform.o inform.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o interface.o interface.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o newwin.o newwin.c newwin.c: In function 'newwin': newwin.c:242:36: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 242 | W_SetWindowKeyDownHandler(warnw, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} In file included from newwin.c:15: Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:246:39: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 246 | W_SetWindowKeyDownHandler(messagew, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:247:38: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 247 | W_SetWindowButtonHandler(messagew, handleMessageWindowButton); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:150:9: note: 'handleMessageWindowButton' declared here 150 | handleMessageWindowButton(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:310:37: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 310 | W_SetWindowKeyDownHandler(messwa, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:311:37: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 311 | W_SetWindowKeyDownHandler(messwt, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:312:37: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 312 | W_SetWindowKeyDownHandler(messwi, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:313:40: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 313 | W_SetWindowKeyDownHandler(reviewWin, handleMessageWindowKeyDown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:144:9: note: 'handleMessageWindowKeyDown' declared here 144 | handleMessageWindowKeyDown(W_Event * event) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:317:41: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 317 | W_SetWindowKeyDownHandler(netstatWin, nsaction); | ^~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:127:13: note: 'nsaction' declared here 127 | extern void nsaction(W_Event * data); | ^~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:318:40: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 318 | W_SetWindowButtonHandler(netstatWin, nsaction); | ^~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ newwin.c:127:13: note: 'nsaction' declared here 127 | extern void nsaction(W_Event * data); | ^~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:330:36: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 330 | W_SetWindowButtonHandler(udpWin, udpaction); | ^~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ In file included from newwin.c:52: udpopt.h:4:6: note: 'udpaction' declared here 4 | void udpaction(W_Event *data); | ^~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:335:36: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 335 | W_SetWindowKeyDownHandler(spWin, spaction); | ^~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ In file included from newwin.c:51: spopt.h:22:6: note: 'spaction' declared here 22 | void spaction(W_Event * data); | ^~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:336:35: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 336 | W_SetWindowButtonHandler(spWin, spaction); | ^~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ spopt.h:22:6: note: 'spaction' declared here 22 | void spaction(W_Event * data); | ^~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:342:39: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types] 342 | W_SetWindowKeyDownHandler(soundWin, soundaction); | ^~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:46:63: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 46 | extern void W_SetWindowKeyDownHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ In file included from data.h:489, from newwin.c:18: sound.h:59:13: note: 'soundaction' declared here 59 | extern void soundaction (W_Event * data); | ^~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:343:38: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 343 | W_SetWindowButtonHandler(soundWin, soundaction); | ^~~~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ sound.h:59:13: note: 'soundaction' declared here 59 | extern void soundaction (W_Event * data); | ^~~~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ newwin.c:417:33: error: passing argument 2 of 'W_SetWindowButtonHandler' from incompatible pointer type [-Wincompatible-pointer-types] 417 | W_SetWindowButtonHandler(war, waraction); | ^~~~~~~~~ | | | void (*)(W_Event *) {aka void (*)(struct event *)} Wlib.h:48:62: note: expected 'W_Callback' {aka 'void (*)(void)'} but argument is of type 'void (*)(W_Event *)' {aka 'void (*)(struct event *)'} 48 | extern void W_SetWindowButtonHandler (W_Window w, W_Callback c); | ~~~~~~~~~~~^ In file included from newwin.c:53: war.h:3:6: note: 'waraction' declared here 3 | void waraction(W_Event *data); | ^~~~~~~~~ Wlib.h:22:16: note: 'W_Callback' declared here 22 | typedef void (*W_Callback) (); | ^~~~~~~~~~ make[1]: *** [: newwin.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netrek-client-cow-3.3.2-build/netrek-client-cow-3.3.2' make: *** [Makefile:14: netrekI] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LrBRfV (%build) RPM build warnings: /home/pterjan/rpmbuild/SPECS/netrek-client-cow.spec line 27: autopatch: no matching patches in range RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LrBRfV (%build) I: [iurt_root_command] ERROR: chroot