Building Samba 4.25.0 on macOS 26 fails for two reasons: 1. bsd_init_statvfs() accepts struct statvfs but accesses fields belonging to struct statfs, such as f_iosize, f_mntonname, and f_flags. The source also lacks the header declaring DEBUG(). 2. LP_RESOLVE uses res_search() without directly linking against libresolv, causing an undefined _res_9_search error while linking libcli-ldap. The statvfs issue may also affect other BSD platforms.
This bug was referenced in samba master: 40e665097d48f1359aed1b7fd76b0ddabf76ae4e fdb87d1c67476dd6540a29ce8e75463824e1da72
Created attachment 19249 [details] patch from master for v4-25-test
This bug was referenced in samba v4-25-test: 11f95d3fc34a494e0c0d8cb5a70db6af6929cd2b bac3bd8709d6df5c39f0342b3aa990b110a69173