https://bugs.openldap.org/show_bug.cgi?id=10026
--- Comment #6 from Ondřej Kuzník <[email protected]> --- On Fri, Nov 21, 2025 at 12:33:57PM +0000, [email protected] wrote: > During `pip install...` > > building '_ldap' extension > creating build/temp.linux-x86_64-cpython-312/Modules > x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 > -Wall -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.5 > "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" > -IModules -I/home/hyc/OD/hobj/tests/test050/venv/include > -I/usr/include/python3.12 -c Modules/LDAPObject.c -o > build/temp.linux-x86_64-cpython-312/Modules/LDAPObject.o > In file included from Modules/LDAPObject.c:3: > Modules/common.h:20:2: error: #error Current python-ldap requires > OpenLDAP 2.4.x > 20 | #error Current python-ldap requires OpenLDAP 2.4.x > | ^~~~~ > error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 > [end of output] > > note: This error originates from a subprocess, and is likely not a problem > with pip. > ERROR: Failed building wheel for python-ldap > Successfully built syncmonitor pldap > Failed to build python-ldap > ERROR: Could not build wheels for python-ldap, which is required to install > pyproject.toml-based projects If you `make install`-ed libldap headers from master, they will report a bogus version. Just let the module use libldap development headers from your distro and you'll be fine (or patch your OpenLDAP tree to report something useful). This bug isn't related to libldap anyway. -- You are receiving this mail because: You are on the CC list for the issue.
