On 3/14/23 19:20, Michael Biebl wrote:
Am 14.03.23 um 19:13 schrieb Helge Deller:
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.
The generated config.h contains
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
and plugins/impstats/impstats.c includes config.h
Seems you are correct.
My request might be bogus. Will check further.
Helge