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

Bug#1066385: marked as done (file-kanji: FTBFS: file2.c:52:9: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration])



Your message dated Wed, 10 Apr 2024 11:49:32 +0000
with message-id <E1ruWSK-004oqy-4A@fasolo.debian.org>
and subject line Bug#1066385: fixed in file-kanji 1.1-21
has caused the Debian Bug report #1066385,
regarding file-kanji: FTBFS: file2.c:52:9: 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.)


-- 
1066385: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066385
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: file-kanji
Version: 1.1-20
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):
> cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o file2.o file2.c
> file2.c:44:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
>    44 | main(argc,argv)
>       | ^~~~
> file2.c: In function ‘main’:
> file2.c:52:9: error: implicit declaration of function ‘exit’ [-Werror=implicit-function-declaration]
>    52 |         exit(1);
>       |         ^~~~
> file2.c:17:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
>    16 | #include <sys/stat.h>
>   +++ |+#include <stdlib.h>
>    17 | 
> file2.c:52:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
>    52 |         exit(1);
>       |         ^~~~
> file2.c:52:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
> file2.c:55:15: error: implicit declaration of function ‘check’ [-Werror=implicit-function-declaration]
>    55 |         (void)check(argv[i]);
>       |               ^~~~~
> file2.c: In function ‘check’:
> file2.c:85:16: error: implicit declaration of function ‘check_detail’ [-Werror=implicit-function-declaration]
>    85 |         kind = check_detail(buff, n);
>       |                ^~~~~~~~~~~~
> file2.c:94:13: error: implicit declaration of function ‘strcpy’ [-Werror=implicit-function-declaration]
>    94 |             strcpy(work, "JIS text");
>       |             ^~~~~~
> file2.c:17:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
>    16 | #include <sys/stat.h>
>   +++ |+#include <string.h>
>    17 | 
> file2.c:94:13: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
>    94 |             strcpy(work, "JIS text");
>       |             ^~~~~~
> file2.c:94:13: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
> file2.c:96:17: error: implicit declaration of function ‘strcat’ [-Werror=implicit-function-declaration]
>    96 |                 strcat(work, " (KI=ESC-$-B");
>       |                 ^~~~~~
> file2.c:96:17: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> file2.c:96:17: warning: incompatible implicit declaration of built-in function ‘strcat’ [-Wbuiltin-declaration-mismatch]
> file2.c:96:17: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> file2.c:98:17: warning: incompatible implicit declaration of built-in function ‘strcat’ [-Wbuiltin-declaration-mismatch]
>    98 |                 strcat(work, " (KI=ESC-$-@");
>       |                 ^~~~~~
> file2.c:98:17: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> file2.c:100:17: warning: incompatible implicit declaration of built-in function ‘strcat’ [-Wbuiltin-declaration-mismatch]
>   100 |                 strcat(work, ",KO=ESC-(-B)");
>       |                 ^~~~~~
> file2.c:100:17: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> file2.c:102:17: warning: incompatible implicit declaration of built-in function ‘strcat’ [-Wbuiltin-declaration-mismatch]
>   102 |                 strcat(work, ",KO=ESC-(-J)");
>       |                 ^~~~~~
> file2.c:102:17: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> file2.c:112:27: error: implicit declaration of function ‘fork’ [-Werror=implicit-function-declaration]
>   112 |                 if ( (pid=fork()) < 0 ) {
>       |                           ^~~~
> file2.c:117:21: error: implicit declaration of function ‘execl’ [-Werror=implicit-function-declaration]
>   117 |                     execl("/usr/bin/file", "file", filename, NULL);
>       |                     ^~~~~
> file2.c:117:21: warning: incompatible implicit declaration of built-in function ‘execl’ [-Wbuiltin-declaration-mismatch]
> file2.c:118:21: error: implicit declaration of function ‘_exit’ [-Werror=implicit-function-declaration]
>   118 |                     _exit(0);
>       |                     ^~~~~
> file2.c:118:21: warning: incompatible implicit declaration of built-in function ‘_exit’ [-Wbuiltin-declaration-mismatch]
> file2.c:121:17: error: implicit declaration of function ‘wait’ [-Werror=implicit-function-declaration]
>   121 |                 wait(&status);
>       |                 ^~~~
> file2.c:131:38: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration]
>   131 |     printf("%s:%s\t%s\n", filename, (strlen(filename)+1)<=7?"\t":"", f);
>       |                                      ^~~~~~
> file2.c:131:38: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> file2.c:131:38: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
> file2.c:131:38: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> file2.c: In function ‘check_detail’:
> file2.c:140:10: error: implicit declaration of function ‘is_jis_file’ [-Werror=implicit-function-declaration]
>   140 |     if ( is_jis_file(buff, size) ) return(JIS);
>       |          ^~~~~~~~~~~
> file2.c:141:10: error: implicit declaration of function ‘is_ascii_file’ [-Werror=implicit-function-declaration]
>   141 |     if ( is_ascii_file(buff, size) ) return(ASCII);
>       |          ^~~~~~~~~~~~~
> file2.c:142:10: error: implicit declaration of function ‘is_utf8_file’ [-Werror=implicit-function-declaration]
>   142 |     if ( is_utf8_file(buff, size) ) return(UTF8);
>       |          ^~~~~~~~~~~~
> file2.c:143:10: error: implicit declaration of function ‘is_euc_file’ [-Werror=implicit-function-declaration]
>   143 |     if ( is_euc_file(buff, size) ) return(EUC);
>       |          ^~~~~~~~~~~
> file2.c:144:10: error: implicit declaration of function ‘is_sjis_file’ [-Werror=implicit-function-declaration]
>   144 |     if ( is_sjis_file(buff, size) ) return(SJIS);
>       |          ^~~~~~~~~~~~
> file2.c: In function ‘is_jis_file’:
> file2.c:158:18: error: implicit declaration of function ‘is_kanji_in_code’ [-Werror=implicit-function-declaration]
>   158 |             if ( is_kanji_in_code(buff[i], buff[i+1], buff[i+2]) ) {
>       |                  ^~~~~~~~~~~~~~~~
> file2.c:162:18: error: implicit declaration of function ‘is_kanji_out_code’ [-Werror=implicit-function-declaration]
>   162 |             if ( is_kanji_out_code(buff[i], buff[i+1], buff[i+2]) ) {
>       |                  ^~~~~~~~~~~~~~~~~
> file2.c:167:14: error: implicit declaration of function ‘is_ascii_char’ [-Werror=implicit-function-declaration]
>   167 |         if ( is_ascii_char(buff[i]) ) continue;
>       |              ^~~~~~~~~~~~~
> file2.c: In function ‘is_sjis_file’:
> file2.c:232:14: error: implicit declaration of function ‘is_katakana_char’ [-Werror=implicit-function-declaration]
>   232 |         if ( is_katakana_char(buff[i]) ) continue;
>       |              ^~~~~~~~~~~~~~~~
> file2.c:233:14: error: implicit declaration of function ‘is_sjis_char’; did you mean ‘is_ascii_char’? [-Werror=implicit-function-declaration]
>   233 |         if ( is_sjis_char(buff[i],buff[i+1]) ) {
>       |              ^~~~~~~~~~~~
>       |              is_ascii_char
> file2.c: In function ‘is_euc_file’:
> file2.c:267:14: error: implicit declaration of function ‘is_euc_katakana_char’; did you mean ‘is_katakana_char’? [-Werror=implicit-function-declaration]
>   267 |         if ( is_euc_katakana_char(buff[i], buff[i+1]) ) {
>       |              ^~~~~~~~~~~~~~~~~~~~
>       |              is_katakana_char
> file2.c:271:14: error: implicit declaration of function ‘is_euc_char’ [-Werror=implicit-function-declaration]
>   271 |         if ( is_euc_char(buff[i],buff[i+1]) ) {
>       |              ^~~~~~~~~~~
> file2.c: In function ‘is_utf8_file’:
> file2.c:304:21: error: implicit declaration of function ‘is_utf8_2_byte_char’ [-Werror=implicit-function-declaration]
>   304 |     if ( size==2 && is_utf8_2_byte_char(buff[0], buff[1])) return(TRUE);
>       |                     ^~~~~~~~~~~~~~~~~~~
> file2.c:305:105: error: implicit declaration of function ‘is_utf8_3_byte_char’ [-Werror=implicit-function-declaration]
>   305 |     if ( size==3 && ( is_utf8_2_byte_char(buff[0], buff[1]) || is_utf8_2_byte_char(buff[1], buff[2]) || is_utf8_3_byte_char(buff[0], buff[1], buff[2]) ) ) return(TRUE);
>       |                                                                                                         ^~~~~~~~~~~~~~~~~~~
> file2.c:316:13: error: implicit declaration of function ‘is_utf8_4_byte_char’ [-Werror=implicit-function-declaration]
>   316 |         if (is_utf8_4_byte_char(buff[i], buff[i+1], buff[i+2], buff[i+3]) ) {
>       |             ^~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[1]: *** [<builtin>: file2.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/file-kanji_1.1-20_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: file-kanji
Source-Version: 1.1-21
Done: Andreas Beckmann <anbe@debian.org>

We believe that the bug you reported is fixed in the latest version of
file-kanji, 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 1066385@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 file-kanji 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: Wed, 10 Apr 2024 13:26:42 +0200
Source: file-kanji
Architecture: source
Version: 1.1-21
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1066385
Changes:
 file-kanji (1.1-21) unstable; urgency=medium
 .
   * QA upload.
   * Fix building with -Werror=implicit-function-declaration.
     (Closes: #1066385)
Checksums-Sha1:
 f6e60e01db579624d8eef512c0b8f8a2af19da98 1837 file-kanji_1.1-21.dsc
 53be5257b76d5abe1aaf99f337436c36f0d8a924 5660 file-kanji_1.1-21.debian.tar.xz
 c00f0c9d13ad1b8619c032e2ffc2f317a0827a47 5633 file-kanji_1.1-21_source.buildinfo
Checksums-Sha256:
 6d4b30613a944f4e50bcb08112f7e188e80a9000db4d2b2510e6bb9e9216e845 1837 file-kanji_1.1-21.dsc
 27821bfc7963a6fc10faff46aeb6d5ef2751047b36afc5407b5287130042220b 5660 file-kanji_1.1-21.debian.tar.xz
 d80f8eef1ccfaaff9648c198473b53962504f67ada7b501bf318ae7f7a48ed0e 5633 file-kanji_1.1-21_source.buildinfo
Files:
 79f6f4330852b4bbfbfaa751264f94ce 1837 misc optional file-kanji_1.1-21.dsc
 8822498a0f9eea5754b4d05e9e6c7a1f 5660 misc optional file-kanji_1.1-21.debian.tar.xz
 536b556c8d147b1053bfa074de071ecb 5633 misc optional file-kanji_1.1-21_source.buildinfo

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

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmYWd9AQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCGRgD/49jg1b6/hhaHx64s8/PDzeJAxmGgDIBheI
5rRd1OU2yHPs/pTXKWCRltvkM1hfubnvqL+buNWajT2MKTJ938s8GJ00IgEmjpL1
d+SB+HKaU26c5awOzmlnhgFIDUIxdbbppO7QP+7gC97lARluK+8Nq+0BOAn66fJS
em2ZV8N32wCESDOi1TZLiZsXWqxB1SJqB9OmuTPyM3EBUXhViuFbzbFZV5EK2jsj
aVLS4gqd8AmtWPnMIjRHRit9/N6fFlFpfCmzFBrBUqV1I87SDb+Wk8Z2iLYH3Lls
37zBy1jIajlQ6wARZJaqh1L7owUUEDSvm6ZTrDFp0RpMaIhpLEuzXCSMZSQTL5YK
6vkCHPhoVWCd5BY2Cd7z9Iz19v1+Une5PjyCNzq0k7uGf863+UoeNEcbJqFA8KQb
N+VtiE/hgrVzfYAZZgMwu4xElYEnV1DtmP6NLvCDpL+f9IWyWImyqTik9C/OAyD1
PY4BQvwXI05HAHlxdGJ5ivkuCcHj7IVC40D/RU/4VbTzPMz8w3hXYtTXgrUbu3Pj
IZU0uN9dOOn5YIdrUqbGXnz4237RwP+L/12JU+aoo7FZyI1jTZ+5qumab/TLjmtZ
Bs/7YJsx6A2HZCbWEILiq0+rneJtjG3eyx+NS3c18lcoAQqaAB4Z0g02s4weFJqi
6WXm3aXt6w==
=0hFr
-----END PGP SIGNATURE-----

Attachment: pgpGkc2zFL_Ye.pgp
Description: PGP signature


--- End Message ---

Reply to: