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

Bug#1066437: marked as done (libast: FTBFS: snprintf.c:45:22: error: unknown type name ‘size_t’)



Your message dated Wed, 03 Apr 2024 17:34:04 +0000
with message-id <E1rs4Uu-00603d-CK@fasolo.debian.org>
and subject line Bug#1066437: fixed in libast 0.7-10
has caused the Debian Bug report #1066437,
regarding libast: FTBFS: snprintf.c:45:22: error: unknown type name ‘size_t’
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.)


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

Hi,

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


Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include/libast -I../include -I../include/libast  -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o snprintf.lo snprintf.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include/libast -I../include -I../include/libast -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c snprintf.c  -fPIC -DPIC -o .libs/snprintf.o
> snprintf.c:45:22: error: unknown type name ‘size_t’
>    45 | vsnprintf(char *str, size_t count, const char *fmt, va_list args)
>       |                      ^~~~~~
> snprintf.c:8:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
>     7 | # include <stdarg.h>
>   +++ |+#include <stddef.h>
>     8 | #else
> snprintf.c:58:21: error: unknown type name ‘size_t’
>    58 | snprintf(char *str, size_t count, const char *fmt, ...)
>       |                     ^~~~~~
> snprintf.c:58:21: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
> snprintf.c: In function ‘fmtstr’:
> snprintf.c:250:36: error: implicit declaration of function ‘iscntrl’ [-Werror=implicit-function-declaration]
>   250 |             if (visible_control && iscntrl(c) && !isspace(c)) {
>       |                                    ^~~~~~~
> snprintf.c:8:1: note: include ‘<ctype.h>’ or provide a declaration of ‘iscntrl’
>     7 | # include <stdarg.h>
>   +++ |+#include <ctype.h>
>     8 | #else
> snprintf.c:250:51: error: implicit declaration of function ‘isspace’ [-Werror=implicit-function-declaration]
>   250 |             if (visible_control && iscntrl(c) && !isspace(c)) {
>       |                                                   ^~~~~~~
> snprintf.c:250:51: note: include ‘<ctype.h>’ or provide a declaration of ‘isspace’
> snprintf.c: In function ‘fmtdouble’:
> snprintf.c:359:5: error: implicit declaration of function ‘strcpy’ [-Werror=implicit-function-declaration]
>   359 |     strcpy(fmtstr, "%");
>       |     ^~~~~~
> snprintf.c:8:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
>     7 | # include <stdarg.h>
>   +++ |+#include <string.h>
>     8 | #else
> snprintf.c:359:5: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
>   359 |     strcpy(fmtstr, "%");
>       |     ^~~~~~
> snprintf.c:359:5: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
> snprintf.c:361:9: error: implicit declaration of function ‘strcat’ [-Werror=implicit-function-declaration]
>   361 |         strcat(fmtstr, "-");
>       |         ^~~~~~
> snprintf.c:361:9: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> snprintf.c:361:9: warning: incompatible implicit declaration of built-in function ‘strcat’ [-Wbuiltin-declaration-mismatch]
> snprintf.c:361:9: note: include ‘<string.h>’ or provide a declaration of ‘strcat’
> snprintf.c:363:9: error: implicit declaration of function ‘sprintf’ [-Werror=implicit-function-declaration]
>   363 |         sprintf(fmtstr + strlen(fmtstr), "%d", len);
>       |         ^~~~~~~
> snprintf.c:8:1: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
>     7 | # include <stdarg.h>
>   +++ |+#include <stdio.h>
>     8 | #else
> snprintf.c:363:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
>   363 |         sprintf(fmtstr + strlen(fmtstr), "%d", len);
>       |         ^~~~~~~
> snprintf.c:363:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
> snprintf.c:363:26: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration]
>   363 |         sprintf(fmtstr + strlen(fmtstr), "%d", len);
>       |                          ^~~~~~
> snprintf.c:363:26: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> snprintf.c:363:26: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
> snprintf.c:363:26: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> snprintf.c:366:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
>   366 |         sprintf(fmtstr + strlen(fmtstr), ".%d", precision);
>       |         ^~~~~~~
> snprintf.c:366:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
> snprintf.c:366:26: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
>   366 |         sprintf(fmtstr + strlen(fmtstr), ".%d", precision);
>       |                          ^~~~~~
> snprintf.c:366:26: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> snprintf.c:368:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
>   368 |     l = strlen(fmtstr);
>       |         ^~~~~~
> snprintf.c:368:9: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
> snprintf.c:371:5: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
>   371 |     sprintf(convert, fmtstr, value);
>       |     ^~~~~~~
> snprintf.c:371:5: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:501: snprintf.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/libast_0.7-9.1_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: libast
Source-Version: 0.7-10
Done: Andreas Beckmann <anbe@debian.org>

We believe that the bug you reported is fixed in the latest version of
libast, 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 1066437@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 libast 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, 03 Apr 2024 19:17:52 +0200
Source: libast
Architecture: source
Version: 0.7-10
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1066437
Changes:
 libast (0.7-10) unstable; urgency=medium
 .
   * QA upload.
   * Fix building with -Werror=implicit-function-declaration.
     (Closes: #1066437)
   * Set Rules-Requires-Root: no.
   * Whitespace and redundancy cleanup.
Checksums-Sha1:
 d9daa8586a13f33f9c080e43801fa0ab0f69dc8a 1838 libast_0.7-10.dsc
 4ec6c2ceb33e2a8041730e9c1ff8214394317b5c 5160 libast_0.7-10.debian.tar.xz
 d3854c0fec2089ee3ddead495603efc456207253 11606 libast_0.7-10_source.buildinfo
Checksums-Sha256:
 46c5066af76f9d2dfabe8dd60bd91149d2527638e3e899d60540f4bc72a4b1b6 1838 libast_0.7-10.dsc
 a0e982a5e51324795f70212c69fedfc76e943c4d68f5e04fbf3470a15ce69e3a 5160 libast_0.7-10.debian.tar.xz
 543574f708f47a97d3fc80bfdd2c95d2dd02b04ff8ed6249bad4cd222e3c4df8 11606 libast_0.7-10_source.buildinfo
Files:
 d300dee21789a2c3a542cddb705afdeb 1838 libs optional libast_0.7-10.dsc
 761bd7e07d3a5f309bc8e823d0c9f949 5160 libs optional libast_0.7-10.debian.tar.xz
 9d0e70ede9697c19679c29eba1afe07d 11606 libs optional libast_0.7-10_source.buildinfo

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

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmYNj9kQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCLTrD/0YhB9HOryG6SHBq4R8ZbqQTNqUYFxSUZLt
p4H35gF0ajQf7Ua46D5oWZU3EWCHVf2BxN0fdGgQCDyXde2+QQBBMTQIPO1aQ5MW
ItHCqYxThm0sR23VwVoz+q7qcv1Jgl7TpNwCRENTCQIAKh/v6yOcDDX/tA4+X09Y
S5bDym4JuaJtGXVSLvujXqK1M/5y5h5RoC+rW346z17hz1M5Sz/cNasjgEbJGSWQ
58/FCAvpSxqNewH7ueIVzMmplOoFyiJST+u9E6HS8GdLI1Gb831zwPXU4YG57Ro6
v5gVvW8HItTaa5Qfgn1iCsKxakFAZmOv2BE1XTByHDfNwo8artgVuoXWWJQOZ3pU
MHlWATPTmpfpKUs3d8BM6zNl+NjOLEz79IKxEORG9JHSRn+8Fb8Hxy75AIchwl2/
DC9GAo+uTqDpIlDwD1DQBp+z8VLOtDErdLzv6z4yZvh7EYv7c/kNaUz14aEg95jV
ZKK0E62xNUy+IKNIW6ZuetNy08nJkv2mTGY0xTfWOAvE4wzyLT8Wnx6hx2Fm0A+C
6pm44wPV8i3yzFAqs7i6YnAs99kjhwy0/RZ+dl4bs927BaVABrzjcQs4URB9qwQY
oGnRDAKNPJz4gYck0tuqFl4uC7F//lVpr6gu/upVtbgM06NUvPj0wAVCL+NIAkx+
3H662TApCw==
=h1vu
-----END PGP SIGNATURE-----

Attachment: pgpJLUgOspHJH.pgp
Description: PGP signature


--- End Message ---

Reply to: