49a5c32d6e
...with recent Clang 16 trunk since
<7068aa9841
>
"Strengthen -Wint-conversion to default to an error", causing
> checking for pthread_detach with <pthread.h>... no
> configure: error: could not locate pthread_detach()
because of
> configure:19227: checking for pthread_detach with <pthread.h>
> configure:19249: ~/llvm/inst/bin/clang -o conftest -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -D_BSD_SOURCE -O0 -fstrict-aliasing -fstrict-overflow -ggdb2 -gsplit-dwarf -Xclang -debug-info-kind=constructor -ggnu-pubnames -Iworkdir/UnpackedTarball/nss/dist/public/nss -Iworkdir/UnpackedTarball/nss/dist/out/include -Iworkdir/UnpackedTarball/nss/dist/public/nss -Iworkdir/UnpackedTarball/nss/dist/out/include -fuse-ld=lld --ld-path=~/llvm/inst/bin/ld.lld -Wl,--gdb-index -Lworkdir/UnpackedTarball/nss/dist/out/lib -pthread conftest.c >&5
> conftest.c:109:16: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'pthread_t' (aka 'unsigned long') [-Wint-conversion]
> pthread_detach(NULL);
> ^~~~
> ~/llvm/inst/lib/clang/16.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
> # define NULL ((void*)0)
> ^~~~~~~~~~
> /usr/include/pthread.h:269:38: note: passing argument to parameter '__th' here
> extern int pthread_detach (pthread_t __th) __THROW;
> ^
> 1 error generated.
> configure:19249: $? = 1
Change-Id: I3f2b8836e7aba6536e2877b492b43de588804f86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137758
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
27 lines
846 B
Makefile
27 lines
846 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_UnpackedTarball_UnpackedTarball,openldap))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_tarball,openldap,$(OPENLDAP_TARBALL),,openldap))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_patchlevel,openldap,0))
|
|
|
|
$(eval $(call gb_UnpackedTarball_update_autoconf_configs,openldap,\
|
|
build \
|
|
contrib/ldapc++ \
|
|
))
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_patches,openldap,\
|
|
external/openldap/openldap-2.4.44.patch.1 \
|
|
external/openldap/configure-c99.patch \
|
|
external/openldap/Wint-conversion.patch \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|