Bug#1069527: libchdr: FTBFS on armhf: libchdr_chd.c:3001:39: error: implicit declaration of function =?UTF-8?Q?=E2=80=98ftello64=E2=80=99; ?= did you mean ‘ftello’? [-Werror=implicit-function-declaration]

Lucas Nussbaum lucas at debian.org
Sat Apr 20 14:12:55 BST 2024


Source: libchdr
Version: 0.0~git20230918.9108f34+dfsg-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf

Hi,

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


Relevant part (hopefully):
> /usr/bin/cc -Dchdr_EXPORTS -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -MD -MT CMakeFiles/chdr.dir/src/libchdr_chd.c.o -MF CMakeFiles/chdr.dir/src/libchdr_chd.c.o.d -o CMakeFiles/chdr.dir/src/libchdr_chd.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_chd.c"
> /<<PKGBUILDDIR>>/src/libchdr_chd.c: In function ‘core_stdio_fsize’:
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3001:39: error: implicit declaration of function ‘ftello64’; did you mean ‘ftello’? [-Werror=implicit-function-declaration]
>  3001 |         #define core_stdio_ftell_impl ftello64
>       |                                       ^~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3013:13: note: in expansion of macro ‘core_stdio_ftell_impl’
>  3013 |         p = core_stdio_ftell_impl(fp);
>       |             ^~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3000:39: error: implicit declaration of function ‘fseeko64’; did you mean ‘fseeko’? [-Werror=implicit-function-declaration]
>  3000 |         #define core_stdio_fseek_impl fseeko64
>       |                                       ^~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3014:9: note: in expansion of macro ‘core_stdio_fseek_impl’
>  3014 |         core_stdio_fseek_impl(fp, 0, SEEK_END);
>       |         ^~~~~~~~~~~~~~~~~~~~~
> [ 68%] Building C object CMakeFiles/chdr-static.dir/src/libchdr_cdrom.c.o
> [ 68%] Building C object CMakeFiles/chdr.dir/src/libchdr_flac.c.o
> /usr/bin/cc -Dchdr_EXPORTS -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -MD -MT CMakeFiles/chdr.dir/src/libchdr_flac.c.o -MF CMakeFiles/chdr.dir/src/libchdr_flac.c.o.d -o CMakeFiles/chdr.dir/src/libchdr_flac.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_flac.c"
> /usr/bin/cc  -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/chdr-static.dir/src/libchdr_cdrom.c.o -MF CMakeFiles/chdr-static.dir/src/libchdr_cdrom.c.o.d -o CMakeFiles/chdr-static.dir/src/libchdr_cdrom.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_cdrom.c"
> [ 72%] Building C object CMakeFiles/chdr.dir/src/libchdr_huffman.c.o
> /usr/bin/cc -Dchdr_EXPORTS -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -MD -MT CMakeFiles/chdr.dir/src/libchdr_huffman.c.o -MF CMakeFiles/chdr.dir/src/libchdr_huffman.c.o.d -o CMakeFiles/chdr.dir/src/libchdr_huffman.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_huffman.c"
> [ 76%] Building C object CMakeFiles/chdr-static.dir/src/libchdr_chd.c.o
> /usr/bin/cc  -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/chdr-static.dir/src/libchdr_chd.c.o -MF CMakeFiles/chdr-static.dir/src/libchdr_chd.c.o.d -o CMakeFiles/chdr-static.dir/src/libchdr_chd.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_chd.c"
> /<<PKGBUILDDIR>>/src/libchdr_chd.c: In function ‘core_stdio_fsize’:
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3001:39: error: implicit declaration of function ‘ftello64’; did you mean ‘ftello’? [-Werror=implicit-function-declaration]
>  3001 |         #define core_stdio_ftell_impl ftello64
>       |                                       ^~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3013:13: note: in expansion of macro ‘core_stdio_ftell_impl’
>  3013 |         p = core_stdio_ftell_impl(fp);
>       |             ^~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3000:39: error: implicit declaration of function ‘fseeko64’; did you mean ‘fseeko’? [-Werror=implicit-function-declaration]
>  3000 |         #define core_stdio_fseek_impl fseeko64
>       |                                       ^~~~~~~~
> /<<PKGBUILDDIR>>/src/libchdr_chd.c:3014:9: note: in expansion of macro ‘core_stdio_fseek_impl’
>  3014 |         core_stdio_fseek_impl(fp, 0, SEEK_END);
>       |         ^~~~~~~~~~~~~~~~~~~~~
> [ 80%] Building C object CMakeFiles/chdr-static.dir/src/libchdr_flac.c.o
> /usr/bin/cc  -I"/<<PKGBUILDDIR>>/lzma" -I"/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/include" -I"/<<PKGBUILDDIR>>/include" -I"/<<PKGBUILDDIR>>/deps/lzma-22.01/include" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/chdr-static.dir/src/libchdr_flac.c.o -MF CMakeFiles/chdr-static.dir/src/libchdr_flac.c.o.d -o CMakeFiles/chdr-static.dir/src/libchdr_flac.c.o -c "/<<PKGBUILDDIR>>/src/libchdr_flac.c"
> cc1: some warnings being treated as errors
> make[3]: *** [CMakeFiles/chdr.dir/build.make:107: CMakeFiles/chdr.dir/src/libchdr_chd.c.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/04/20/libchdr_0.0~git20230918.9108f34+dfsg-2_unstable-armhf.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&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.



More information about the Pkg-games-devel mailing list