Hi,

this fails to build with gcc-14, can you please check and fix that?

FAILED: src/pkcs11.so.p/asymmetric_cipher.c.o
ccache arm-webosmllib32-linux-gnueabi-gcc -march=armv7-a -mthumb
-mfpu=neon -mfloat-abi=softfp -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-Werror=return-type -funwind-tables -D_TIME_BITS=64
-D_FILE_OFFSET_BITS=64
--sysroot=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/lib32-recipe-sysroot
-Isrc/pkcs11.so.p -Isrc -I../git/src -I. -I../git
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch
-std=c11 -Wwrite-strings -Wpointer-arith
-Wno-missing-field-initializers -Wformat -Wshadow
-Wno-unused-parameter -Werror=implicit-function-declaration
-Werror=missing-prototypes -Werror=format-security -Werror=parentheses
-Werror=implicit -Werror=strict-prototypes -fno-strict-aliasing
-fno-delete-null-pointer-checks -fdiagnostics-show-option -O2 -pipe -g
-feliminate-unused-debug-types -fcanon-prefix-map
-fmacro-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/git=/usr/src/debug/lib32-pkcs11-provider/0.5
-fdebug-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/git=/usr/src/debug/lib32-pkcs11-provider/0.5
-fmacro-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/build=/usr/src/debug/lib32-pkcs11-provider/0.5
-fdebug-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/build=/usr/src/debug/lib32-pkcs11-provider/0.5
-fdebug-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/lib32-recipe-sysroot=
-fmacro-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/lib32-recipe-sysroot=
-fdebug-prefix-map=TOPDIR/BUILD/work/ah212-webosmllib32-linux-gnueabi/lib32-pkcs11-provider/0.5/recipe-sysroot-native=
-fPIC -MD -MQ src/pkcs11.so.p/asymmetric_cipher.c.o -MF
src/pkcs11.so.p/asymmetric_cipher.c.o.d -o
src/pkcs11.so.p/asymmetric_cipher.c.o -c
../git/src/asymmetric_cipher.c
../git/src/asymmetric_cipher.c: In function 'p11prov_rsaenc_decrypt':
../git/src/asymmetric_cipher.c:422:58: error: passing argument 4 of
'p11prov_tls_constant_time_depadding' from incompatible pointer type
[-Wincompatible-pointer-types]
  422 |
&out_size, &tls_cond);
      |                                                          ^~~~~~~~~
      |                                                          |
      |
CK_ULONG * {aka long unsigned int *}
../git/src/asymmetric_cipher.c:254:45: note: expected 'size_t *' {aka
'unsigned int *'} but argument is of type 'CK_ULONG *' {aka 'long
unsigned int *'}
  254 |                                     size_t *out_size, CK_ULONG
*ret_cond)
      |                                     ~~~~~~~~^~~~~~~~

On Fri, Jul 5, 2024 at 11:44 AM Niko Mauno via lists.openembedded.org
<niko.mauno=vaisala....@lists.openembedded.org> wrote:
>
> From: Niko Mauno <niko.ma...@vaisala.com>
>
> Changelogs:
>  - https://github.com/latchset/pkcs11-provider/releases/tag/v0.4
>  - https://github.com/latchset/pkcs11-provider/releases/tag/v0.5
>
> Signed-off-by: Niko Mauno <niko.ma...@vaisala.com>
> ---
>  .../{pkcs11-provider_0.3.bb => pkcs11-provider_0.5.bb} | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
>  rename meta-oe/recipes-support/pkcs11-provider/{pkcs11-provider_0.3.bb => 
> pkcs11-provider_0.5.bb} (81%)
>
> diff --git a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.3.bb 
> b/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.5.bb
> similarity index 81%
> rename from meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.3.bb
> rename to meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.5.bb
> index 816ee967c..6c19b6616 100644
> --- a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.3.bb
> +++ b/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.5.bb
> @@ -10,18 +10,14 @@ HOMEPAGE = "https://github.com/latchset/pkcs11-provider";
>  SECTION = "libs"
>  LICENSE = "Apache-2.0"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=b53b787444a60266932bd270d1cf2d45"
> -DEPENDS = "\
> -    autoconf-archive \
> -    openssl \
> -    p11-kit \
> -"
> +DEPENDS = "openssl"
>
> -SRCREV = "58040b4e32975cc1d7f39e424ee7b0097cd11311"
> +SRCREV = "3a4fdd2a2e5643af2a0f857b66a19b9fa109d40f"
>
>  SRC_URI = "git://github.com/latchset/${BPN}.git;branch=main;protocol=https"
>
>  S = "${WORKDIR}/git"
>
> -inherit autotools pkgconfig
> +inherit meson pkgconfig
>
>  FILES:${PN} += "${libdir}/ossl-modules/pkcs11.so"
> --
> 2.39.2
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#111283): 
https://lists.openembedded.org/g/openembedded-devel/message/111283
Mute This Topic: https://lists.openembedded.org/mt/107051199/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to