Compilation fails when building the package with yay:
make[4]: Entering directory '/home/user/.cache/yay/libredwg/src/libredwg-0.13.3/src'
CC dwg.lo
CC common.lo
CC codepages.lo
CC bits.lo
CC decode.lo
In file included from common.h:30,
from decode.c:41:
config.h:401:9: error: ‘_POSIX_C_SOURCE’ redefined [-Werror]
401 | #define _POSIX_C_SOURCE 200809L
| ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:28,
from decode.c:33:
/usr/include/features.h:319:10: note: this is the location of the previous definition
319 | # define _POSIX_C_SOURCE 202405L
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:734: decode.lo] Error 1
Pinned Comments
infeeeee commented on 2025-01-19 18:31 (UTC) (edited on 2025-01-19 18:33 (UTC) by infeeeee)
You have to import the maintainer's key. If you use an AUR helper, like
yay, it should happen automatically. If for some reason it's not working, you can import it manually:@Volker it's not my key, but upstream maintainer's, so I can't recreate it.