• src/build/Common.gmake

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Wed Oct 21 23:52:43 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/f615f2e3ba27c342774c6eb5
    Modified Files:
    src/build/Common.gmake
    Log Message:
    We must explicitly set _FILE_OFFSET_BITS=64 to use Linux OFD locksThe Linux lock() implementation in xpdev/filewrap.c requires that_FILE_OFFSET_BITS is set to 64 or else OFD (sane) locks are notused on Linux, defaulting back to the crazy per-process file regionlocking of Linux of old. This was done in this commit:http://cvs.synchro.net/commitlog.ssjs?99999#39639because:https://patchwork.kernel.org/patch/9289177/but on 64-bit Linux, large file support is assumed and you don'tactually need to define _FILE_OFFFSET_BITS, we're peforming thischeck for 32-bit Linuxes. Perhaps a check to see if sizeof(off_t)== 8 would have been better. However, this change enables OFDLocks for *all* flavors of Linux (not just 64-bit) - so that'sbetter.Why do we care? Because using region locks on the same file ina multi-threaded program doesn't really work right on Linux withoutusing OFD Locks. I saw this problem with receiving multiplesimultaneous emails in the mailserver and getting smb_locksmbhdr()errors/failures when trying to save the message data or headersof the one or more messages every time GitLab would send emailout to those whoe have opted-in to received email notificationsupon gitlab.synchro.net activity.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Mar 8 11:10:35 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/4c280dc6e91679cfeb9496a0
    Modified Files:
    src/build/Common.gmake
    Log Message:
    Add -std=c++11 for .cpp buildsHope to address error reported by rjwboys via IRC when usinggcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) from ansiterm.cpp:22 /user/include/c++/5/bits/c++0x_warning.h:32:2error #error this file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Mar 31 16:53:27 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d457835c2f290c5d3ce6f6fd
    Modified Files:
    src/build/Common.gmake
    Log Message:
    os is lower-case.Fixes *nix builds of Win32 programs.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)