Bug#1091027: syslinux: FTBFS: debug.c:91:5: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]

Lucas Nussbaum <[email protected]>
Newsgroups gmane.linux.debian.devel.cd
Message-ID <Z2faea6qAY2PYzs4__46009.6393989929$1734859984$gmane$org@grub.nussbaum.fr>
Source: syslinux
Version: 3:6.04~git20190206.bf6db5b4+dfsg1-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20241222 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> gcc -MT syslinux/debug.o -MD -MF syslinux/.debug.o.d -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-labels=0 -ffast-math -fomit-frame-pointer -std=gnu99 -m32 -mpreferred-stack-boundary=2 -fno-stack-protector -fwrapv -freg-struct-return -fPIC -fno-exceptions -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -g -D__COM32__ -D__FIRMWARE_BIOS__ -nostdinc -iwithprefix include -I. -I/<<PKGBUILDDIR>>/com32/lib/sys -I/<<PKGBUILDDIR>>/com32/lib/../include -I/<<PKGBUILDDIR>>/com32/include/sys -I/<<PKGBUILDDIR>>/core/include -I/<<PKGBUILDDIR>>/com32/lib/ -I/<<PKGBUILDDIR>>/com32/lib/sys/module -I/<<PKGBUILDDIR>>/bios/com32/lib//../.. -fcommon -W -Wall -Wstrict-prototypes  -Wpointer-arith -Wwrite-strings -Wstrict-pr
 ototypes -Winline -DDYNAMIC_CRC_TABLE -mregparm=3 -DREGPARM=3 -c -o syslinux/debug.o /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c
> /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
> /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c:91:5: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
>    91 |     printf("Dynamic debug unavailable\n");
>       |     ^~~~~~
> /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
>     3 | #include <stdbool.h>
>   +++ |+#include <stdio.h>
>     4 | 
> /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c:91:5: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
>    91 |     printf("Dynamic debug unavailable\n");
>       |     ^~~~~~
> /<<PKGBUILDDIR>>/com32/lib/syslinux/debug.c:91:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
> make[6]: *** [/<<PKGBUILDDIR>>/mk/lib.mk:215: syslinux/debug.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/12/22/syslinux_6.04~git20190206.bf6db5b4+dfsg1-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241222;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241222&[email protected]&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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.