aboutsummaryrefslogtreecommitdiff
path: root/net/nss_ldap
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-05-10 05:22:14 +0000
committerCy Schubert <cy@FreeBSD.org>2023-05-10 05:29:55 +0000
commit515552b2d2664dc02c2385519a7fedb855f46632 (patch)
tree23b797096dea9308b9276a66771f1e0039a273fc /net/nss_ldap
parent3f46415eb3ff22ed102942a78970fc80152962fd (diff)
downloadports-515552b2d2664dc02c2385519a7fedb855f46632.tar.gz
ports-515552b2d2664dc02c2385519a7fedb855f46632.zip
net/nss_ldap: Fix LLVM15 build
./configure's test for Heimdal results in, conftest.c:47:12: error: incompatible pointer to integer conversion initializing 'const char' with an expression of type 'const char *'; dereference with * [-Wi nt-conversion] const char hv = heimdal_version; ^ ~~~~~~~~~~~~~~~ * This causes ./configure to erroneously assume 14-CURRENT uses MIT instead of Heimdal, resulting in a subsequent build failure because MIT's <profile.h> cannot be found. MFH: 2023Q3
Diffstat (limited to 'net/nss_ldap')
-rw-r--r--net/nss_ldap/files/patch-configure.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/nss_ldap/files/patch-configure.in b/net/nss_ldap/files/patch-configure.in
index bd6f78efe50e..223ab338eff2 100644
--- a/net/nss_ldap/files/patch-configure.in
+++ b/net/nss_ldap/files/patch-configure.in
@@ -1,5 +1,5 @@
---- configure.in.orig
-+++ configure.in
+--- configure.in.orig 2009-11-06 02:28:08.000000000 -0800
++++ configure.in 2023-05-09 21:54:34.360457000 -0700
@@ -97,11 +97,15 @@
linux*) nss_ldap_so_LDFLAGS="-shared -Wl,-Bdynamic -Wl,--version-script,\$(srcdir)/exports.linux" ;;
*) nss_ldap_so_LDFLAGS="-shared -Wl,-Bdynamic" ;;
@@ -24,13 +24,14 @@
AC_CHECK_HEADERS(irs.h) ;;
esac
AC_CHECK_HEADERS(thread.h)
-@@ -188,6 +191,13 @@
+@@ -188,6 +191,14 @@
AC_CHECK_HEADERS(gssapi/gssapi_krb5.h gssapi.h)
AC_CHECK_HEADERS(krb5.h)
+AC_MSG_CHECKING([if Kerberos is Heimdal])
+AC_TRY_LINK([#include <krb5.h>],
-+ [const char hv = heimdal_version;],
++ [char hv = heimdal_version;],
++ [hv = hv;],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HEIMDAL,1,[Define if Kerberos is Heimdal])],
+ [AC_MSG_RESULT(no)])
@@ -38,7 +39,7 @@
AC_CHECK_LIB(resolv, main)
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(socket, main)
-@@ -230,7 +240,6 @@
+@@ -230,7 +241,6 @@
AC_CHECK_FUNCS(gethostbyname)
AC_CHECK_FUNCS(nsdispatch)
AC_CHECK_LIB(pthread_nonshared, main)