Closed brassy-endomorph closed 2 years ago
So this is not a libpff/pypff issue
Based on the links you refer to this seems to be a missing define of GNU_SOURCE
in the Alpine Python build configuration/environment.
It may not, but the order of include
s within the codebase may be causing that in a similar manner to this comment here. https://github.com/python-pillow/Pillow/issues/1850#issuecomment-218428866
https://github.com/libyal/libpff/blob/main/include/libpff/types.h.in#L193 just imports wchar.h of libc stdlib
Alpine Linux seems to ship a "fortify" version of this header, this is where the error happens
setup.py uses python-config --cflags
to determine the compile flags, check if that sets GNU_SOURCE
on Alpine Linux
Running
pip install libpff-python-ratom
(which I know isn't something you maintain, but you're upstream) results in this error:This appears to be related to this: https://github.com/python-pillow/Pillow/issues/1850
Env:
libpff-python-ratom
20200808