Created attachment 250047 [details] Correcting patch Base system does not build with WITH_OPENLDAP defined due to incorrect understanding of C language operator precedence: suffix [] has higher precedence than prefix () as any right-associating operator. Solution: apply the patch attached.
This was fixed along with other changes in upstream https://github.com/heimdal/heimdal/commit/c1c7da7f79d79861a9c48af0a4d5a6734ea0da70
Created attachment 250193 [details] Obtained from upstream c1c7da7f79. Instead let's import c1c7da7f79 from upstream. I'll look applying this in the morning.
(In reply to Ed Maste from comment #1) I was already looking at it. Got a patch ready for commit. I'll push it in the morning.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a0d7d68a2dd818ce84e37e1ff20c8849cda6d853 commit a0d7d68a2dd818ce84e37e1ff20c8849cda6d853 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2014-01-10 19:18:06 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2024-04-24 05:54:20 +0000 heimdal: Fix compiling hdb ldap as a module Fix build when WITH_OPENLDAP defined. PR: 278430 Obtained from: Upstream c1c7da7f79 crypto/heimdal/lib/hdb/hdb-ldap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
I've put a calendar entry into plan(1) to MFC this on Monday April 29 at 0800U.
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=8640bd657d841d1307520eca792e959acdf2063f commit 8640bd657d841d1307520eca792e959acdf2063f Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2014-01-10 19:18:06 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2024-04-29 12:50:19 +0000 heimdal: Fix compiling hdb ldap as a module Fix build when WITH_OPENLDAP defined. PR: 278430 Obtained from: Upstream c1c7da7f79 (cherry picked from commit a0d7d68a2dd818ce84e37e1ff20c8849cda6d853) crypto/heimdal/lib/hdb/hdb-ldap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a161f2405f10a5b39e87b7e9fdd5c8405462d133 commit a161f2405f10a5b39e87b7e9fdd5c8405462d133 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2014-01-10 19:18:06 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2024-04-29 12:51:11 +0000 heimdal: Fix compiling hdb ldap as a module Fix build when WITH_OPENLDAP defined. PR: 278430 Obtained from: Upstream c1c7da7f79 (cherry picked from commit a0d7d68a2dd818ce84e37e1ff20c8849cda6d853) crypto/heimdal/lib/hdb/hdb-ldap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)