Bug 16177 - Active Directory support compilation issue
Summary: Active Directory support compilation issue
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.24.4
Hardware: x86 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-10 16:31 UTC by Aditya
Modified: 2026-07-11 16:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya 2026-07-10 16:31:40 UTC
I am getting the following error about host python issue when compiling for active directory support : 
----------------------
Checking for openpty                                                                            : ok 
Checking for TCP_USER_TIMEOUT                                                                   : ok 
Checking for system installation of Python module markdown                                      : not found 
        Unable to find Python module 'markdown'. Please install the system package: python3-markdown'.

make[2]: *** [Makefile:510: /home/nameless/works/openwrt/build_dir/target-x86_64_musl/samba-4.24.4/.configured_bbd0c64cd6da7af6cbcf12061a8c5379] Error 1
----------------------

But if I am adding the following patch then compilation successfully continue : 

----------------------
--- a/python/wscript
+++ b/python/wscript
@@ -103,9 +103,9 @@ def configure(conf):
                                       "'python3-iso8601'. Please install "
                                       "one of the packages.")
 
-    if not Options.options.without_ad_dc:
-        for module, package in ad_dc_pkgs.items():
-            find_third_party_module(conf, module, package)
+#    if not Options.options.without_ad_dc:
+#       for module, package in ad_dc_pkgs.items():
+#           find_third_party_module(conf, module, package)
 
 
 def build(bld):
----------------------

OpenWrt Makefile for samba : https://github.com/vortexilation/packages/blob/4.24/net/samba4/Makefile

Compiling for OpenWrt x86_64 musl with gcc 16.1.0 on latest debian sid