Bug 16263 - Samba 4.25.0 fails to build on macOS
Summary: Samba 4.25.0 fails to build on macOS
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.25.0
Hardware: All Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba release manager
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-25 09:17 UTC by Anoop C S
Modified: 2026-10-03 08:07 UTC (History)
1 user (show)

See Also:


Attachments
patch from master for v4-25-test (3.40 KB, patch)
2026-09-28 08:25 UTC, Anoop C S
vl: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anoop C S 2026-09-25 09:17:03 UTC
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.
Comment 1 Samba QA Contact 2026-09-27 11:09:04 UTC
This bug was referenced in samba master:

40e665097d48f1359aed1b7fd76b0ddabf76ae4e
fdb87d1c67476dd6540a29ce8e75463824e1da72
Comment 2 Anoop C S 2026-09-28 08:25:11 UTC
Created attachment 19249 [details]
patch from master for v4-25-test
Comment 3 Samba QA Contact 2026-10-02 19:38:28 UTC
This bug was referenced in samba v4-25-test:

11f95d3fc34a494e0c0d8cb5a70db6af6929cd2b
bac3bd8709d6df5c39f0342b3aa990b110a69173