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


I suggest to compile all sources with those flags, which is easiest to do
with the "feature=+lfs" option I mentioned at the beginning.

I'd prefer an upstream solution in case there is a bug in the upstream build system or the autoconf macro.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to