Created attachment 16207 [details]
waf configure: Visual Studio 2017 Failed LFS
I'm currently working on creating conan  packages for talloc and tevent.
The build scripts would then get pushed to the central build script server at conan-center-index .
On Linux, building (and using) talloc and tevent works fine,
but on Windows (both Visual Studio and mingw) the configure step fails with the following error:
Checking for header assert.h : yes
Checking getconf LFS_CFLAGS : not found
Checking for large file support without additional flags : not found
Checking for -D_FILE_OFFSET_BITS=64 : not found
Checking for -D_LARGE_FILES : not found
Samba requires large file support support, but not available on this platform: sizeof(off_t) < 8
The complete command that is used to configure talloc is:
python C:/Users/maarten/.conan/data/talloc/2.3.1/_/_/build/970e773c5651dc2560f86200a4ea56c23f568ff9/source_subfolder/buildtools/bin/waf configure --without-gettext --disable-python --disable-rpath --disable-rpath-install -C --prefix=C:/Users/maarten/.conan/data/talloc/2.3.1/_/_/package/970e773c5651dc2560f86200a4ea56c23f568ff9 --check-c-compiler=msvc
I've attached the complete log.
Note that I made sure to use vcvars when building with Visual Studio.
I forgot to mention this is using talloc release 2.3.1.
What configure options does Windows use to enable large file support ? Obviously Windows is correctly large-file-aware and uses 64-bit offsets for everything, but something in the VC++ configs isn't detecting this.
We require that off_t be detected as 64-bits in size to work.