[Pkg-samba-maint] Bug#1009211: Kodi FTBFS against libsmbclient.h due to syntax error in _Static_assert

Vasyl Gello vasek.gello at gmail.com
Fri Apr 8 23:13:22 BST 2022


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 at 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 pkg-samba-maint at lists.alioth.debian.org
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root at 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 pkg-samba-maint at lists.alioth.debian.org
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root at 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 pkg-samba-maint at lists.alioth.debian.org
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
      |               ~~~~~~~~~~~~~~^~~~
root at debian-development:/# g++ --std=c++14 -o test.bin -I/usr/include/samba-4.0 -D_FILE_OFFSET_BITS=64 test.cpp
root at debian-development:/# cp test.cpp test.c
root at debian-development:/# nano test.c
root at debian-development:/# gcc -o test.bin -I/usr/include/samba-4.0 -D_FILE_OFFSET_BITS=64 test.cpp
root at 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 pkg-samba-maint at lists.alioth.debian.org
   84 | static_assert(sizeof(off_t) >= 8, /* C11 macro */
-- 
Vasyl Gello
==================================================
Certified SolidWorks Expert

Mob.:+380 (98) 465 66 77

E-Mail: vasek.gello at gmail.com
==================================================
호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20220408/c7e71058/attachment.htm>


More information about the Pkg-samba-maint mailing list