Building in clean jail: make.conf: OPTIONS_UNSET+=PERL PYTHON ODBC CUPS net_samba420_UNSET+=PYTHON3 [...] Checking for strsignal : ok Checking for longjmp : ok Checking for siglongjmp : ok Checking for system cmocka (>=1.1.3) : yes Checking for system popt : yes Checking for header popt.h : yes Checking for library popt : yes Checking for poptGetContext in popt : ok Checking for system tdb (>=1.4.10) : yes ERROR: Python module pytdb of version 1.4.10 not found, and bundling disabled workaround: make.conf: OPTIONS_UNSET+=PERL PYTHON ODBC CUPS net_samba420_UNSET+=PYTHON3 AC_DC
This issue affects more than the creator (Dirk Meyer); I too have bundling disabled and have the same error; I too am forced to the same workaround. One wonders what the consequences of net_samba420_UNSET+=PYTHON3 are for my deployment.
(In reply to Dave Baukus from comment #1) I've experienced the same issue, though it also affected 416, 419 and 4.20. As I was attempting to rebuild samba4.16 on a newly upgraded FBSD 14.3 Please note: This is on FBSD 14.3S, using "server role = standalone server" only. Because I have multiple samba's running AD, ADS and standalone, I didn't want to remove python (as it is required for Samba AD provisioning), so 1. (for 4.16) I rebuilt tdb ldb with python bindings. 2. Rebuilt samba416. I had a few problems with the pytdb, and then pytalloc... (after a few hours of analysis) decided to comment out 4 lines sed -i '' -e "/!py/s/^/# 202506 /g" samba420/Makefile which affected SAMBA4_BUNDLED_LIBS+= !pytalloc-util SAMBA4_BUNDLED_LIBS+= !pytevent SAMBA4_BUNDLED_LIBS+= !pytdb SAMBA4_BUNDLED_LIBS+= !pyldb !pyldb-util As the negated forms were problematic. samba4.19 was similar, though with 4.20 I needed to rebuild with the latest tevent016-0.16.1_2 talloc242-2.4.2_2 tdb1410-1.4.10_2,1 ldb29-2.9.2_2 Its also noteworthy that if you're building samba 4.16 on FBSD14.3 with clang version 19.1.7, then you'll also need to add to /etc/make.conf LDFLAGS+= -Wl,--undefined-version The above statement appears in samba419 and samba420/Makefile and addresses errors like: ld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined ld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined As a standalone server it works (and strangely seems a bit quicker) :) Hope this helps.