[1311/3701] Compiling lib/dbwrap/dbwrap_cache.c In file included from ../lib/dbwrap/dbwrap_cache.c:21: In file included from ../lib/param/loadparm.h:253: default/lib/param/param_local.h:143:1: error: field has incomplete type 'struct timespec' LOADPARM_EXTRA_LOCALS ^ ../lib/param/loadparm.h:247:18: note: expanded from macro 'LOADPARM_EXTRA_LOCALS' struct timespec usershare_last_mod; \ ^ default/lib/param/param_local.h:143:1: note: forward declaration of 'struct timespec' ../lib/param/loadparm.h:247:9: note: expanded from macro 'LOADPARM_EXTRA_LOCALS' struct timespec usershare_last_mod; \ ^ 1 error generated. Waf: Leaving directory `/Volumes/hd2/src/samba-4.4.0/bin' Build failed: -> task failed (err #1): {task: cc dbwrap_cache.c -> dbwrap_cache_1.o} make: *** [all] Error 1 [dave@macpro ~/src/samba-4.4.0/]$ cd ..
Confirming for samba 4.4.3 on OSX 10.11.4 with clang+llvm-3.8.0-x86_64-apple-darwin: [...] [1304/3582] Compiling lib/dbwrap/dbwrap_rbt.c [1305/3582] Compiling lib/dbwrap/dbwrap_cache.c In file included from ../lib/dbwrap/dbwrap_cache.c:21: In file included from ../lib/param/loadparm.h:259: default/lib/param/param_local.h:143:1: error: field has incomplete type 'struct timespec' LOADPARM_EXTRA_LOCALS ^ ../lib/param/loadparm.h:253:18: note: expanded from macro 'LOADPARM_EXTRA_LOCALS' struct timespec usershare_last_mod; \ ^ default/lib/param/param_local.h:143:1: note: forward declaration of 'struct timespec' ../lib/param/loadparm.h:253:9: note: expanded from macro 'LOADPARM_EXTRA_LOCALS' struct timespec usershare_last_mod; \ ^ 1 error generated. Waf: Leaving directory `/Volumes/home/opt/src/samba-4.4.3/bin' Build failed: -> task failed (err #1): {task: cc dbwrap_cache.c -> dbwrap_cache_1.o} make: *** [all] Error 1
This problem can be fixed by adding #include <time.h> to lib/param/loadparm.h
This problem can be fixed by adding #include <time.h> to lib/param/loadparm.h CONFIRMED
Patched in https://bugzilla.samba.org/show_bug.cgi?id=12623
*** Bug 12623 has been marked as a duplicate of this bug. ***