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

Bug#1066617: marked as done (xfrisk: FTBFS: aiStubs.c:88:45: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration])



Your message dated Thu, 04 Apr 2024 16:51:53 +0000
with message-id <E1rsQJd-00Af9n-Bk@fasolo.debian.org>
and subject line Bug#1066617: fixed in xfrisk 1.2-9
has caused the Debian Bug report #1066617,
regarding xfrisk: FTBFS: aiStubs.c:88:45: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1066617: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066617
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: xfrisk
Version: 1.2-8
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> gcc -Wl,-z,relro -Wl,-z,now client.o network.o gui.o callbacks.o utils.o dice.o cards.o game.o colormap.o help.o riskgame.o debug.o clientMain.o colorEdit.o registerPlayers.o addPlayer.o viewStats.o viewCards.o viewLog.o viewChat.o viewFeedback.o xgethostname.o -I/usr/X11R6/include -L/usr/X11R6/lib -lXaw3d -lXext -lXmu -lXt -lSM -lICE -lX11  -o xfrisk
> aiStubs.c: In function ‘UTIL_ExitProgram’:
> aiStubs.c:88:45: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration]
>    88 | void   UTIL_ExitProgram(Int32 iExitValue) { exit(iExitValue); }
>       |                                             ^~~~
> aiStubs.c:28:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
>    27 | #include "utils.h"
>   +++ |+#include <stdlib.h>
>    28 | 
> aiStubs.c:88:45: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
>    88 | void   UTIL_ExitProgram(Int32 iExitValue) { exit(iExitValue); }
>       |                                             ^~~~
> aiStubs.c:88:45: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
> aiClientMain.c: In function ‘AI_Start’:
> aiClientMain.c:353:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   353 |   __AI_Callback(NULL, AI_INIT_ONCE, (void *)iSpeciesID);
>       |                                     ^
> aiClientMain.c: In function ‘CBK_IncomingMessage’:
> aiClientMain.c:500:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   500 |             __AI_Callback(NULL, AI_INIT_GAME, (void *)iSpeciesID);
>       |                                               ^
> aiConway.c: In function ‘CNT_WorstDefended’:
> aiConway.c:334:25: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   334 |   CLIST_Evaluate (have, (EvalFunc)CNT_Vulnerability);
>       |                         ^
> aiConway.c: In function ‘CNT_BestDefended’:
> aiConway.c:343:25: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   343 |   CLIST_Evaluate (have, (EvalFunc)CNT_Vulnerability);
>       |                         ^
> aiConway.c: In function ‘find_nearest’:
> aiConway.c:485:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   485 |   CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_SetZeroFlag);
>       |                                  ^
> aiConway.c:502:23: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   502 |                       (EvalFunc)CNT_AddIfConquerable);
>       |                       ^
> aiConway.c: In function ‘find_destination’:
> aiConway.c:552:38: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   552 |   CLIST_Evaluate (pDesiredCountries, (EvalFunc)CNT_IsNearest);
>       |                                      ^
> cc1: some warnings being treated as errors
> buildmap.c: In function ‘main’:
> buildmap.c:332:23: warning: too many arguments for format [-Wformat-extra-args]
>   332 |       fprintf(stdout, ".", i);
>       |                       ^~~
> aiConway.c: In function ‘CLIST_CalculateUsefulness’:
> aiConway.c:700:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   700 |   CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_SetZeroNearness);
>       |                                  ^
> aiConway.c:701:38: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   701 |   CLIST_Evaluate (pDesiredCountries, (EvalFunc)do_nearness);
>       |                                      ^
> aiConway.c:702:34: warning: cast between incompatible function types from ‘void (*)(COUNTRY *)’ {aka ‘void (*)(struct country *)’} to ‘int (*)(COUNTRY *)’ {aka ‘int (*)(struct country *)’} [-Wcast-function-type]
>   702 |   CLIST_Evaluate (pAllCountries, (EvalFunc)CNT_CalculateUsefulness);
>       |                                  ^
> aiConway.c: In function ‘make_wholelist’:
> make[1]: *** [<builtin>: aiStubs.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/xfrisk_1.2-8_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: xfrisk
Source-Version: 1.2-9
Done: Andreas Beckmann <anbe@debian.org>

We believe that the bug you reported is fixed in the latest version of
xfrisk, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1066617@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated xfrisk package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 04 Apr 2024 18:36:26 +0200
Source: xfrisk
Architecture: source
Version: 1.2-9
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1066617
Changes:
 xfrisk (1.2-9) unstable; urgency=medium
 .
   * QA upload.
   * Fix building with -Werror=implicit-function-declaration.
     (Closes: #1066617)
Checksums-Sha1:
 5ebeb105085a88da912b3c83d41118ba38c069f4 1865 xfrisk_1.2-9.dsc
 21fd7def9197074cc9aa6bef60a0d4b087058806 10124 xfrisk_1.2-9.debian.tar.xz
 7ea6a93f0b22550a0cef3fd0e6f8c7af4ca0d5be 6539 xfrisk_1.2-9_source.buildinfo
Checksums-Sha256:
 b12fbfcf4992627068f022fcaeaf6d0c5c6ab33706ee6889d1786cd1aca7a3e1 1865 xfrisk_1.2-9.dsc
 12fce52676d87dbe96d178d959a635761cc2a38c892802bea8e7aab4d89af87e 10124 xfrisk_1.2-9.debian.tar.xz
 7875d4d926ae0025c1e39d314858e9456772f3bba7a3c8523ce39b6cf72effd9 6539 xfrisk_1.2-9_source.buildinfo
Files:
 93be4884ee90fd10680409a3f4ed3c31 1865 games optional xfrisk_1.2-9.dsc
 634e35b3cacf8942b304bc623f365d88 10124 games optional xfrisk_1.2-9.debian.tar.xz
 bd3ad8151c8d565cec8575da3d735241 6539 games optional xfrisk_1.2-9_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmYO11AQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCE41EACAGZl+VSlR6PuBSNcSfJZGPrGhf3/eJOMf
69Ra9xwc5itmPLC4ANbNorhJWxJot0IpO1lRuR3YUPbC0rte2gDIYg8dgT2g9EFq
hQNOiE/HNlnMgXME/g9JVTSnHpl8gqyEcheOGFxeDfnEurK310vaLzuXebD9skyV
FZQPYzG6saBD92YG+6ogoYCFTdE1v152/K7PNIFddxKCzB0eX4oeTPQWFI8r3cJX
yye8Caik2Qf/vIK63u4Ooz2l8krUR9e9rV2LsFZ3Gvv+JYQoeLTTW1/3ranIryZh
a1b1Obhu6KFXmuNPYE7SodCkEzETKuwQHT7/gUAK7iBx9j9hascP0uSpuJritdO1
nrk4RP+EvHVCLAh6mJKQjvUJYpbOZbpOrqPtFy0klLHslgbrbcwfKsF2UJvLF/BS
NGXd+CFLqsmJpG7g0J0S83t5S0vW4VDCB6kxKPyks/g7GqS471r8QGWRxOrhRkyU
zSXafahKxwYDRNF/8ew2dZkBSFmWQMGqmZ1M6C23N9INqClc2AB5huHRGr1/gJCC
K4OpB/nWlIxOZVmdU6Skq6lGQOOB2xpJhwSjFVsnzswFAElaFWgkPOWnKveJQbX7
+dVWAmI0aVOqhXhEtA96TZ8ugjM5gA7WbQxi5Jwhkg5lGDAJLPwuxaBqtnmrnkUQ
hPqC2CceBQ==
=A54n
-----END PGP SIGNATURE-----

Attachment: pgp8KQwdgIYE9.pgp
Description: PGP signature


--- End Message ---

Reply to: