[MacPorts] #71494: samba4 build error: passing argument 4 of 'quotactl' from incompatible pointer type

MacPorts noreply at macports.org
Mon Dec 9 06:37:54 UTC 2024


#71494: samba4 build error: passing argument 4 of 'quotactl' from incompatible
pointer type
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  samba4
--------------------------+--------------------
 {{{
 [2133/3796] Compiling lib/cmdline/closefrom_except.c
 ../../source4/librpc/rpc/pyrpc_util.c: In function 'pyrpc_irpc_connect':
 ../../source4/librpc/rpc/pyrpc_util.c:92:9: warning:
 'dcerpc_binding_handle_set_sync_ev' is deprecated [-Wdeprecated-
 declarations]
    92 |         dcerpc_binding_handle_set_sync_ev(*binding_handle,
 event_ctx);
       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 In file included from ../../source4/librpc/rpc/dcerpc.h:33,
                  from ../../source4/librpc/rpc/pyrpc_util.c:28:
 ../../source4/../librpc/rpc/rpc_common.h:245:19: note: declared here
   245 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct
 dcerpc_binding_handle *h,
       |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 [2134/3796] Compiling lib/afs/afs_funcs.c
 [2135/3796] Linking bin/default/python/libsamba-python.cpython-312-darwin-
 private-samba.dylib
 [2136/3796] Compiling source3/libads/authdata.c
 [2137/3796] Compiling source3/smbd/notifyd/notifyd_db.c
 [2138/3796] Compiling source3/smbd/notifyd/notifyd_entry.c
 [2139/3796] Linking bin/default/lib/cmdline/libcmdline-private-samba.dylib
 [2140/3796] Compiling source3/smbd/notifyd/notifyd.c
 [2141/3796] Compiling source3/lib/util_namearray.c
 [2142/3796] Compiling source3/lib/sysquotas_4B.c
 ../../source3/lib/sysquotas_4B.c: In function 'sys_quotactl_4B':
 ../../source3/lib/sysquotas_4B.c:138:39: error: passing argument 4 of
 'quotactl' from incompatible pointer type [-Wincompatible-pointer-types]
   138 |         ret = quotactl(path, cmd, id, qblk);
       |                                       ^~~~
       |                                       |
       |                                       struct dqblk *
 In file included from ../../source3/lib/sysquotas_4B.c:43:
 /usr/include/sys/quota.h:223:38: note: expected 'caddr_t' {aka 'char *'}
 but argument is of type 'struct dqblk *'
   223 | int quotactl(const char *, int, int, caddr_t);
       |                                      ^~~~~~~

 Waf: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba4/samba4/work/samba-4.21.2/bin/default'
 Build failed
  -> task in 'sysquotas' failed with exit status 1 (run with -v to display
 more information)
 make: *** [all] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71494>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list