Skip to contentSkip to conversation

cmpi-bindings: ignore incompatible-pointer-types errors for now.

PATCH New [email protected] 1 participant 2 messages Jun 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cmpi-bindings: ignore incompatible-pointer-types errors for now.

From: Lei Maohui <[email protected]>

GCC 14 implicitly turns a warning into a compiler error:

| /build-ubinux-daily/tmp/work/aarch64-ubinux-linux/cmpi-bindings/1.0.4/git/swig/python/../../src/target_python.c:168:21: error: passing argument 1 of 'Py_SetProgramName' from incompatible pointer type [-Wincompatible-pointer-types]
|   168 |   Py_SetProgramName("cmpi_swig");
|       |                     ^~~~~~~~~~~
|       |                     |
|       |                     char *
---
 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +1 -1
index 781dc83da9..d062e46bb9 100644
@@ -27,7 +27,7 @@ EXTRA_OECMAKE = "-DLIB='${baselib}' \
 # With Ninja it fails with:
 # ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)
 OECMAKE_GENERATOR = "Unix Makefiles"
-
+CFLAGS += "-Wno-error=incompatible-pointer-types"
 FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
 FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 openldap: ignore incompatible-pointer-types errors for now.

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
---
 meta-oe/recipes-support/openldap/openldap_2.6.7.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/openldap/openldap_2.6.7.bb +1 -2
index c229667d68..8bb801a1b1 100644
@@ -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)} \
Signature · 1 line
2.34.1