During samba 4.5.1 build on AIX 7.1 xlc compiler reports several warnings which ends with failed build Problems are in following source codes with initialization of structure source4/torture/smb2/lock.c source3/locking/brlock.c source4/torture/smb2/replay.c source4/torture/smb2/durable_v2_open.c For example : lck = (struct smb2_lock) { .in.locks = &el, .in.lock_count = 0x0001, .in.file.handle = h /* This is cause of warning , together with -Werr causes failed build */ }; This code can be simply replaced with following : ZERO_STRUCT(lck); lck.in.locks = ⪙ lck.in.lock_count = 0x0001; lck.in.file.handle = h ; Compiling source4/torture/smb2/durable_v2_open.c "../source4/torture/smb2/smb2.c", line 50.12: 1506-068 (W) Operation between types "_Bool(*)(struct torture_context*,struct smb2_tree*)" and "void*" is not allowed. "../source4/torture/smb2/smb2.c", line 74.18: 1506-068 (W) Operation between types "void*" and "_Bool(*)(struct torture_context*,struct smb2_tree*)" is not allowed. "../source4/torture/smb2/smb2.c", line 110.12: 1506-068 (W) Operation between types "_Bool(*)(struct torture_context*,struct smb2_tree*,struct smb2_tree*)" and "void*" is not allowed. "../source4/torture/smb2/smb2.c", line 138.18: 1506-068 (W) Operation between types "void*" and "_Bool(*)(struct torture_context*,struct smb2_tree*,struct smb2_tree*)" is not allowed. Waf: Leaving directory `/data/kica_build/samba_git/samba-4.5.1/bin' Build failed: -> task failed (err #1): {task: cc lock.c -> lock_1.o} make: 1254-004 The error code from the last command is 1.
Created attachment 13247 [details] Fix for two build issues on AIX
*** This bug has been marked as a duplicate of bug 15028 ***