-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
-
Blocks app-arch/rpm and 15 other packages that use it.
rict-prototypes -fno-strict-aliasing -fno-strict-overflow -fno-delete-null-pointer-checks -Wempty-body -mtune=generic -O2 -pipe -c -o package.lo package.c fsm.c: In function ‘rpmPackageFilesInstall’: fsm.c:1019:6: error: a label can only be part of a statement and a declaration is not a statement 1019 | int mayopen = S_ISREG(fp->sb.st_mode) || S_ISDIR(fp->sb.st_mode); | ^~~ fsm.c: In function ‘removeSBITS’: fsm.c:473:13: warning: ignoring return value of ‘fchmodat’, declared with attribute warn_unused_result [-Wunused-result] 473 | (void) fchmodat(dirfd, path, stb.st_mode & 0777, flags); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [Makefile:791: fsm.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.. -I.. -I../include -I/usr/include/lua5.3 -I../misc -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var/lib\" -DLIBRPMALIAS_FILENAME=\"rpmpopt-4.18.1\" -DLIBRPMALIAS_EXECPATH=\"/usr/bin\" -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fno-strict-overflow -fno-delete-null-pointer-checks -Wempty-body -mtune=generic -O2 -pipe -c package.c -fPIC -DPIC -o .libs/package.o make[3]: Leaving directory '/var/tmp/portage/app-arch/rpm-4.18.1/work/rpm-4.18.1/lib' make[2]: *** [Makefile:587: all] Error 2 make[2]: Leaving directory '/var/tmp/portage/app-arch/rpm-4.18.1/work/rpm-4.18.1/lib' make[1]: *** [Makefile:1303: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-arch/rpm-4.18.1/work/rpm-4.18.1' make: *** [Makefile:742: all] Error 2 * ERROR: app-arch/rpm-4.18.1::core-kit failed (compile phase):
The file fsm.c defines a label followed by a declaration that seems no more permitted.
This seems to fix the problem:
# fix label followed by declaration
sed -i 's|setmeta:|setmeta: ;|g' lib/fsm.c