https://bugs.openldap.org/show_bug.cgi?id=9648
--- Comment #4 from git@freundtech.com --- I'm commenting here because I can't comment on the merge request right now. I created an account on the gitlab, but it needs to be approved first.
I have verified that adding the include to request.c does also fix this issue. OpenLDAP compiles correctly and all tests pass. However when using --enable-balancer=yes compilation still succeeds, but the lloadd tests fail with
Executing all LDAP tests for the Load Balancer Starting test000-rootdse for mdb...
running defines.sh Starting slapd on TCP/IP port 9012... Starting a second slapd on TCP/IP port 9013... Starting a third slapd on TCP/IP port 9014... Starting lloadd on TCP/IP port 9011... Using ldapsearch to retrieve the root DSE... Waiting 7 seconds for lloadd to start... Waiting 7 seconds for lloadd to start... Waiting 7 seconds for lloadd to start... Waiting 7 seconds for lloadd to start... Waiting 7 seconds for lloadd to start... Waiting 7 seconds for lloadd to start... sh: can't kill pid 22101: No such process
Test failed test000-rootdse failed for mdb after 44 seconds
(exit 255)
I tried this because Quanah mentioned that LDAP_IPADDRLEN is also used in servers/lloadd/daemon.c. That may or may not be related to this issue. I'm still investigating. Test succeed on my main machine, but fail in the alpine container though. I'll attach an updated dockerfile for reproduction.