[Rpm-maint] [rpm-software-management/rpm] fsm.c:1019:6: error: expected expression (Issue #2435)

Tomasz Paweł Gajc notifications at github.com
Thu Mar 16 17:01:59 UTC 2023


Hi, i'm compiling rpm-4.18.1 with LLVM/clang-15.x and i get the following error:

```
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H   -I.. -I.. -I../include -I../misc -DLOCALEDIR="\"/usr/share/locale\"" -DSYSCONFDIR="\"/etc\"" -DLOCALSTATEDIR="\"/var\"" -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 -Os -fomit-frame-pointer -g3 -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -flto -c -o fsm.lo fsm.c
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I../misc -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\" -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 -Os -fomit-frame-pointer -g3 -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -flto -c fsm.c  -fPIC -DPIC -o .libs/fsm.o
make[3]: Leaving directory '/builddir/build/BUILD/rpm-4.18.1/lib'
fsm.c:1019:6: error: expected expression
            int mayopen = S_ISREG(fp->sb.st_mode) || S_ISDIR(fp->sb.st_mode);
            ^
fsm.c:1020:29: error: use of undeclared identifier 'mayopen'
            if (!rc && fd == -1 && mayopen) {
                                   ^
2 errors generated.
make[3]: *** [Makefile:793: fsm.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/builddir/build/BUILD/rpm-4.18.1/lib'
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2435
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2435 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230316/08445d42/attachment.html>


More information about the Rpm-maint mailing list