external/openldap/UnpackedTarball_openldap.mk |    1 +
 external/openldap/configure-c99.patch         |   11 +++++++++++
 2 files changed, 12 insertions(+)

New commits:
commit ed977f0b6c849739d3c843c8425442265e2eb7ca
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sat May 7 21:29:20 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sun May 8 10:37:32 2022 +0200

    external/openldap: Implicit int in configure check
    
    ...causing
    
    > checking for compatible POSIX regex... no
    > configure: error: broken POSIX regex!
    > make[1]: *** [external/openldap/ExternalProject_openldap.mk:40: 
workdir/ExternalProject/openldap/build] Error 1
    
    due to
    
    > conftest.c:88:1: error: type specifier missing, defaults to 'int'; ISO 
C99 and later do not support implicit int [-Wimplicit-int]
    
    with Clang 15 trunk after
    
<https://github.com/llvm/llvm-project/commit/2cb2cd242ca08d0bbd2a51a41f1317442e5414fc>
    "Change the behavior of implicit int diagnostics"
    
    Change-Id: I8fb70ce21a73293e20bbc5b09c133141aa9b0ca1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133995
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/external/openldap/UnpackedTarball_openldap.mk 
b/external/openldap/UnpackedTarball_openldap.mk
index 61a083ddcd8a..999a1eddad0b 100644
--- a/external/openldap/UnpackedTarball_openldap.mk
+++ b/external/openldap/UnpackedTarball_openldap.mk
@@ -20,6 +20,7 @@ $(eval $(call 
gb_UnpackedTarball_update_autoconf_configs,openldap,\
 
 $(eval $(call gb_UnpackedTarball_add_patches,openldap,\
        external/openldap/openldap-2.4.44.patch.1 \
+       external/openldap/configure-c99.patch \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/openldap/configure-c99.patch 
b/external/openldap/configure-c99.patch
new file mode 100644
index 000000000000..f1c3da6c4c23
--- /dev/null
+++ b/external/openldap/configure-c99.patch
@@ -0,0 +1,11 @@
+--- configure
++++ configure
+@@ -14691,7 +14691,7 @@
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main()
+ {
+       int rc;
+       regex_t re;

Reply via email to