I experimented with armhf qemu pbuilder and it turns out we can change 
"_Static_assert" to just "static_assert"
and both GCC and G++ will happily chew it:

root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 
test.cpp
In file included from test.cpp:1:
/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 [email protected]
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 
-DFILE_OFFSET_BITS=64 test.cpp
In file included from test.cpp:1:
/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 [email protected]
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root@debian-development:/# g++ --std=c++14 -o test.bin -DFILE_OFFSET_BITS=64 
-I/usr/include/samba-4.0 test.cpp
In file included from test.cpp:1:
/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 [email protected]
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root@debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 
-D_FILE_OFFSET_BITS=64 test.cpp
root@debian-development:/# cp test.cpp test.c
root@debian-development:/# nano test.c
root@debian-development:/# gcc -o test.bin -I/usr/include/samba-4.0 
-D_FILE_OFFSET_BITS=64 test.cpp
root@debian-development:/# gcc -o test.bin -I/usr/include/samba-4.0 
-D_FILE_OFFSET_BITS=32 test.cpp
In file included from test.cpp:1:
/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 [email protected]
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
-- 
Vasyl Gello
==================================================
Certified SolidWorks Expert

Mob.:+380 (98) 465 66 77

E-Mail: [email protected]
==================================================
호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다

Reply via email to