From: Lei Maohui <[email protected]>

GCC 14 implicitly turns a warning into a compiler error:

| tls_g.c:971:57: error: passing argument 4 of 'gnutls_fingerprint' from 
incompatible pointer type [-Wincompatible-pointer-types]
|   971 |                                         keyhash.bv_val, 
&keyhash.bv_len ) < 0 ) {
|       |                                                         
^~~~~~~~~~~~~~~
|       |                                                         |
|       |                                                         ber_len_t * 
{aka long unsigned int *}
| In file included from tls_g.c:44:
| 
/build-ubinux-daily/tmp/work/armv7ahf-neon-ubinuxmllib32-linux-gnueabi/lib32-openldap/2.6.7/lib32-recipe-sysroot/usr/include/gnutls/gnutls.h:2406:32:
 note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 
'ber_len_t *' {aka 'long unsigned int *'}
|  2406 |                        size_t *result_size);
|       |                        ^~~
| make[2]: *** [Makefile:432: tls_g.lo] Error 1

Signed-off-by: Lei Maohui <[email protected]>
---
 meta-oe/recipes-support/openldap/openldap_2.6.7.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/openldap/openldap_2.6.7.bb 
b/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
index c229667d68..8bb801a1b1 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
@@ -31,7 +31,6 @@ inherit autotools-brokensep update-rc.d systemd pkgconfig
 # Required to work round AC_FUNC_MEMCMP which gets the wrong answer
 # when cross compiling (should be in site?)
 EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
-
 # CONFIG DEFINITIONS
 # The following is necessary because it cannot be determined for a
 # cross compile automagically.  Select should yield fine on all OE
@@ -39,7 +38,7 @@ EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
 EXTRA_OECONF += "--with-yielding-select=yes"
 # Shared libraries are nice...
 EXTRA_OECONF += "--enable-dynamic"
-
+CFLAGS += "-Wno-error=incompatible-pointer-types"
 PACKAGECONFIG ??= "asyncmeta gnutls modules \
                    mdb ldap meta null passwd proxycache dnssrv \
                    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110696): 
https://lists.openembedded.org/g/openembedded-devel/message/110696
Mute This Topic: https://lists.openembedded.org/mt/106498592/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to