On 3/14/23 19:06, Helge Deller wrote:
That flag is then used only for one C-file in the subdir contrib/omhiredis.
Which flag?
I meant the compiler preprocessor defines:
The c-files should be compiled with:
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
Example:
In plugins/impstats/impstats.c the glibc function readdir() is used.
Without the "_FILE_OFFSET_BITS=64" define this readdir() will suddenly/randomly
fail
at runtime if the directory (or the files inside the directory) are stored at an
inode with doesn't fit into 32-bits.
I suggest to compile all sources with those flags, which is easiest to do
with the "feature=+lfs" option I mentioned at the beginning.
Helge