Samba4rc6 compile fail on FreeBSD 9.1Release

Dewayne dewayne.geraghty at
Tue Dec 4 17:52:37 MST 2012

Unfortunately the following sequence results in a failed build, using gcc on FreeBSD 9.1

cd /tmp
tar -xf ${S4KIT}.tar.gz
cd $S4KIT
./configure --enable-debug --enable-selftest -j 2

[3130/3789] Compiling source3/modules/vfs_zfsacl.c
../source3/modules/vfs_zfsacl.c: In function 'zfsacl_fget_nt_acl':
../source3/modules/vfs_zfsacl.c:205: warning: passing argument 2 of 'zfs_get_nt_acl_common' makes integer from pointer without a
../source3/modules/vfs_zfsacl.c:205: warning: passing argument 3 of 'zfs_get_nt_acl_common' makes pointer from integer without a
../source3/modules/vfs_zfsacl.c:205: error: too many arguments to function 'zfs_get_nt_acl_common'
../source3/modules/vfs_zfsacl.c:210: warning: passing argument 4 of 'smb_fget_nt_acl_nfs4' from incompatible pointer type
../source3/modules/vfs_zfsacl.c:210: error: too few arguments to function 'smb_fget_nt_acl_nfs4'
../source3/modules/vfs_zfsacl.c: At top level:
../source3/modules/vfs_zfsacl.c:307: warning: initialization from incompatible pointer type
../source3/modules/vfs_zfsacl.c:308: warning: initialization from incompatible pointer type
Waf: Leaving directory `/data/samba-4.0.0rc6/bin'
Build failed:  -> task failed (err #1):
        {task: cc vfs_zfsacl.c -> vfs_zfsacl_35.o}
*** [all] Error code 1

FYI: # diff samba-4.0.0rc5/source3/modules/vfs_zfsacl.c samba-4.0.0rc6/source3/modules/vfs_zfsacl.c
<                                struct files_struct *fsp,
<                                uint32 security_info,
<                                struct security_descriptor **ppdesc)
>                                  struct files_struct *fsp,
>                                  uint32 security_info,
>                                  TALLOC_CTX *mem_ctx,
>                                  struct security_descriptor **ppdesc)
<       status = zfs_get_nt_acl_common(fsp->fsp_name->base_name, security_info,
>       status = zfs_get_nt_acl_common(fsp->fsp_name->base_name,
>                                      mem_ctx, security_info,
<                               const char *name,  uint32 security_info,
<                               struct security_descriptor **ppdesc)
>                                 const char *name, uint32 security_info,
>                                 TALLOC_CTX *mem_ctx,
>                                 struct security_descriptor **ppdesc)
<       return smb_get_nt_acl_nfs4(handle->conn, name, security_info, ppdesc,
>       return smb_get_nt_acl_nfs4(handle->conn, name, security_info,
>                                  mem_ctx, ppdesc,

I'd removed a working rc5 to perform this test, so the platform is good.

Regards, Dewayne

More information about the samba-technical mailing list