Just a warning that trying to brute force a fix for this is likely to end badly. A lot of developer time was spent to get to this current delicate situation, which relied on the narrow behaviour that is now eliminated by the Debian time_t 64 transition rules.
Socket-wrapper starts with: /* * Make sure we do not redirect (f)open(at)() or fcntl() to their 64bit * variants */ #undef _FILE_OFFSET_BITS This was added in https://gitlab.com/cwrap/socket_wrapper/-/commit/bbe14cc3200ca553b13ed49357e2e88ba487eeaa Setting -D_FILE_OFFSET_BITS=64 will break the fcntl64 wrapper and so break Samba's tests. I don't know if there is a good fix for this actually. Andrew Bartlett