office-gobmx/external/openldap/configure-c99.patch
Stephan Bergmann ed977f0b6c 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
<2cb2cd242c>
"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 <sbergman@redhat.com>
2022-05-08 10:37:32 +02:00

11 lines
175 B
Diff

--- 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;