Skip to content

miax: can not be compiled on snapshot #898

@BKPepe

Description

@BKPepe

Info

Maintainer: none
cc: @jslachta , @micmac1

OpenWrt daily snapshot, aarch64_cortex-a53

Issue

iax/md5.c: In function 'MD5Update':
iax/md5.c:107:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  107 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iax/md5.c:107:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
iax/md5.c:190:6: note: in a call to function 'MD5Transform'
  190 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
iax/md5.c:116:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  116 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iax/md5.c:116:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
iax/md5.c:190:6: note: in a call to function 'MD5Transform'
  190 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
iax/md5.c: In function 'MD5Final':
iax/md5.c:151:9: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  151 |         MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iax/md5.c:151:9: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
iax/md5.c:190:6: note: in a call to function 'MD5Transform'
  190 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
iax/md5.c:165:5: warning: 'MD5Transform' reading 128 bytes from a region of size 64 [-Wstringop-overread]
  165 |     MD5Transform(ctx->buf, (uint32 *) ctx->in);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iax/md5.c:165:5: note: referencing argument 2 of type 'const uint32[16]' {aka 'const long unsigned int[16]'}
iax/md5.c:190:6: note: in a call to function 'MD5Transform'
  190 | void MD5Transform(uint32 buf[4], uint32 const in[16])
      |      ^~~~~~~~~~~~
aarch64-openwrt-linux-musl-gcc -Iiax/ -Igsm/inc -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/include/fortify -DIAXC_IAX2 -DLIBIAX -DPOSIXSLEEP -DLINUX -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/miax=miax -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-14.2.0_musl/include/fortify  -c -o iax/iax.o iax/iax.c
iax/iax.c: In function 'iax_session_new':
iax/iax.c:418:27: error: assignment to 'sendto_t' {aka 'int (*)(int,  const void *, long unsigned int,  int,  const struct sockaddr *, unsigned int)'} from incompatible pointer type 'ssize_t (*)(int,  const void *, size_t,  int,  const struct sockaddr *, socklen_t)' {aka 'long int (*)(int,  const void *, long unsigned int,  int,  const struct sockaddr *, unsigned int)'} [-Wincompatible-pointer-types]
  418 |                 s->sendto = sendto;
      |                           ^
iax/iax.c: In function '__send_command':
iax/iax.c:779:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  779 |         f.src = __FUNCTION__;
      |               ^
make[4]: *** [<builtin>: iax/iax.o] Error 1

Log is available here:
https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/telephony/miax/compile.txt

Solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions