Summary: | net/nss_ldap: fatal error: 'profile.h' file not found | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> | ||||
Component: | Individual Port(s) | Assignee: | Alan Somers <asomers> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | asomers, awa.palacios, cy, des, dutchbsd, einar, girgen, mikael, rainer | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(des) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
O. Hartmann
2023-03-26 14:59:27 UTC
(In reply to O. Hartmann from comment #0) In nss_ldap-265/ldap-init-krb5-cache.c: #ifndef HEIMDAL #include <profile.h> #endif but surely, if KERBEROS is "on" and security/krb5 is not installed, we have HEIMDAL in base? something is fishy with the heimdal discovery. (In reply to Palle Girgensohn from comment #1) i can confirm this same bug on freebsd 13.2 i local did undo patch: -+ [const char hv = heimdal_version;], ++ [char hv = heimdal_version;], ++ [hv = hv;], https://cgit.freebsd.org/ports/commit/net/nss_ldap?id=515552b2d2664dc02c2385519a7fedb855f46632 now the port can build I'm seeing the as well, but only on my 13.2-RELEASE builder. My 13.1-RELEASE builder builds it normally without errors (In reply to Palle Girgensohn from comment #1) Setting HEIMDALL=off allows me to build on 13.2 I assume HEIMDAL=OFF is supposed to be a global option? It doesn't seem to exist as a port-option? (In reply to rainer from comment #6) HEIMDALL, two L's. Reverting 515552b2d2664dc02c2385519a7fedb855f46632 , as Dutchman01 suggests, works for me. (In reply to Einar Bjarni Halldórsson from comment #7) Not in Swedish, it's Heimdal here... :-) (In reply to Einar Bjarni Halldórsson from comment #5) Hi, I'm a CS student building FreeBSD13.2 on VMWARE. I have this bug as well. I am still learning, and I need help. How do I go about turning off HEIMDAL? Thank you. Created attachment 246470 [details]
Fix the build on all supported FreeBSD releases
@des could you please review the attached patch?
This certainly does fix the build error. Approved by: mikael A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=512a940c48dfe70cf7fee96af994bad46e44eae9 commit 512a940c48dfe70cf7fee96af994bad46e44eae9 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2023-11-21 17:03:38 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2023-12-07 17:43:45 +0000 net/nss_ldap: fix the build on both 13.2 and 14.0+ The original configure script attempted to detect the presence of Heimdal, but it failed with LLVM 15+ due to a type casting bug. commit 515552b2d2664dc02c2385519a7fedb855f46632 fixed the bug with LLVM 15+, but inadvertently broke the build for earlier versions. This commit corrects the configure syntax, fixing the build on 12.4 and 13.2. PR: 270465 Approved by: mikael (ports) Sponsored by: Axcient MFH: 2023Q4 net/nss_ldap/files/patch-configure.in | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) A commit in branch 2023Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=21ef50a5d82decbe80c5f5ffc0b0505a8316a449 commit 21ef50a5d82decbe80c5f5ffc0b0505a8316a449 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2023-11-21 17:03:38 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2023-12-27 22:42:10 +0000 net/nss_ldap: fix the build on both 13.2 and 14.0+ The original configure script attempted to detect the presence of Heimdal, but it failed with LLVM 15+ due to a type casting bug. commit 515552b2d2664dc02c2385519a7fedb855f46632 fixed the bug with LLVM 15+, but inadvertently broke the build for earlier versions. This commit corrects the configure syntax, fixing the build on 12.4 and 13.2. PR: 270465 Approved by: mikael (ports) Sponsored by: Axcient MFH: 2023Q4 (cherry picked from commit 512a940c48dfe70cf7fee96af994bad46e44eae9) net/nss_ldap/files/patch-configure.in | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) |