• Bug#1065792: libspf2: FTBFS on arm{el,hf}: spf_utils.c:207:9: error: im

    From Andrey Rakhmatullin@21:1/5 to Sebastian Ramacher on Wed Mar 13 11:00:01 2024
    On Sat, Mar 09, 2024 at 10:42:33PM +0100, Sebastian Ramacher wrote:
    /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration
    -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -MT spf_utils.lo -MD -MP -MF .deps/spf_utils.Tpo -c -o spf_utils.lo spf_utils.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>
    =. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -MT spf_utils.lo -MD -MP -MF .deps/spf_utils.Tpo -c spf_utils.c -fPIC -DPIC -o .libs/spf_utils.o
    spf_utils.c: In function ‘SPF_recalloc’:
    spf_utils.c:207:9: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration]
    207 | memset(*bufp, '\0', *buflenp);
    | ^~~~~~
    spf_utils.c:32:1: note: include ‘<string.h>’ or provide a declaration of ‘memset’
    31 | #include "spf_internal.h"
    +++ |+#include <string.h>
    32 |
    spf_utils.c:207:9: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch]
    207 | memset(*bufp, '\0', *buflenp);
    | ^~~~~~
    spf_utils.c:207:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’
    I've checked the package and while the file already has #include
    <memory.h> it has it under #ifdef HAVE_MEMORY_H, and configure doesn't
    seem to set that define in config.h. So it may be a question of
    modernizing (they are from 2012) or fixing the autotools files.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmXxd+0tFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh rAIQAKwBmfB6B575Tqfdj/dHBG9qlHtSii+lqdY8KIj3sl5b6LBgKQjrkkPP4cky 9IOsMvnpoePvL3+7vJ7e/XvfV3PNiA+gSrpKS0AF4n0cl/s8J17rNmzgW7sKQDQP Fte6/Yj9ls/bYExGsvlk6U46+HeBvtfEF3CCYK45LyYFqAB5i3Q3FpLD5rf++Mkb mkjQ+EO13hUU83I8V40PQiaOgmSuWGbDdoGiEEij5KOh1k+yJcCiirRXO0BpiWss n/Qixnw3r4WyRy8uEHUVQOWI9mP4nYaumlr2er2SS80+73PczVkM/yWx0xF7ppik z7jLQYA616AeVcxjbY4W8aY/QU7gHieN0axAyDJ/pIBp0ZFaq+XY/ery7fyRLoiT Ex6jE/6bl9GuLqMIznClbFQg9WpS98JzsxBLrY+OWzSC3Xp8F5X92Ol7SVBFjvsD axGraqtjP1+uvwJ4LVJSugRwXH1aYwyYot2GfIgvaXL27LcxI2tOfi7qdpaFqTOS ZwpxqP8P63nPbLV0WR6MZQURPjsICFpHgk0gR9Rews5QbUrEBBF1qGUCY1pTnuKs rxPJRPiWvPLdvs9BTsd/0Pef21YDVytApNNbHaFWyJEB0TnLJxgvtbae6V0+EjHw UvEhFT5sy5o6dh8PvpIjlvNXXESIhivBMTQ5fNaP0tF6DdtU
    =TGRB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)