Bug#1026364: FTBFS: error: dangling pointer ‘dentptr’ to ‘dent’ may be used
Package: x-loader
Version: 1.5.1+git20110715+fca7cd2-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source
Dear QA Group,
the package x-loader was recently gifted to you, but it FTBFS:
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -Werror -D__KERNEL__ -DTEXT_BASE=0x40304350 -I/<<PKGBUILDDIR>>/debian/build/omap4430panda/include -I/<<PKGBUILDDIR>>/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/12/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7-a -mabi=apcs-gnu -Wall -Wstrict-prototypes -marm -fno-stack-protector -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -Werror -D__KERNEL__ -DTEXT_BASE=0x40304350 -I/<<PKGBUILDDIR>>/debian/build/omap4430panda/include -I/<<PKGBUILDDIR>>/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/12/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv7-a -mabi=apcs-gnu -Wall -Wstrict-prototypes -marm -fno-stack-protector -c -o /<<PKGBUILDDIR>>/debian/build/omap4430panda/fs/fat/fat.o fat.c
fat.c: In function ‘do_fat_read’:
fat.c:848:11: error: dangling pointer ‘dentptr’ to ‘dent’ may be used [-Werror=dangling-pointer=]
848 | ret = get_contents (mydata, dentptr, buffer, maxsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fat.c:813:19: note: ‘dent’ declared here
813 | dir_entry dent;
| ^~~~
Error looks the same on both armel and armhf.
Maybe removal would have been a better idea.
Best,
Chris
Reply to: