<!DOCTYPE html><html><body>I experimented with armhf qemu pbuilder and it turns out we can change "_Static_assert" to just "static_assert"<br>and both GCC and G++ will happily chew it:<br><br>root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 test.cpp<br>In file included from test.cpp:1:<br>/usr/include/samba-4.0/libsmbclient.h:84:29: error: static assertion failed: libsmbclient.h needs LFS (-D_FILE_OFFSET_BITS=64) on this platform please report to pkg-samba-maint@lists.alioth.debian.org<br> 84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */<br> | ~~~~~~~~~~~~~~^~~~<br>root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 -DFILE_OFFSET_BITS=64 test.cpp<br>In file included from test.cpp:1:<br>/usr/include/samba-4.0/libsmbclient.h:84:29: error: static assertion failed: libsmbclient.h needs LFS (-D_FILE_OFFSET_BITS=64) on this platform please report to pkg-samba-maint@lists.alioth.debian.org<br> 84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */<br> | ~~~~~~~~~~~~~~^~~~<br>root@debian-development:/# g++ --std=c++14 -o test.bin -DFILE_OFFSET_BITS=64 -I/usr/include/samba-4.0 test.cpp<br>In file included from test.cpp:1:<br>/usr/include/samba-4.0/libsmbclient.h:84:29: error: static assertion failed: libsmbclient.h needs LFS (-D_FILE_OFFSET_BITS=64) on this platform please report to pkg-samba-maint@lists.alioth.debian.org<br> 84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */<br> | ~~~~~~~~~~~~~~^~~~<br>root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 -D_FILE_OFFSET_BITS=64 test.cpp<br>root@debian-development:/# cp test.cpp test.c<br>root@debian-development:/# nano test.c<br>root@debian-development:/# gcc -o test.bin -I/usr/include/samba-4.0 -D_FILE_OFFSET_BITS=64 test.cpp<br>root@debian-development:/# gcc -o test.bin -I/usr/include/samba-4.0 -D_FILE_OFFSET_BITS=32 test.cpp<br>In file included from test.cpp:1:<br>/usr/include/samba-4.0/libsmbclient.h:84:29: error: static assertion failed: libsmbclient.h needs LFS (-D_FILE_OFFSET_BITS=64) on this platform please report to pkg-samba-maint@lists.alioth.debian.org<br> 84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */<div style='white-space: pre-wrap'>-- <br>Vasyl Gello<hr>Certified SolidWorks Expert<br><br>Mob.:+380 (98) 465 66 77<br><br>E-Mail: vasek.gello@gmail.com<hr>호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다</div></body></html>