>>> perl-file-mmagic-xs: Building testing/perl-file-mmagic-xs 0.09008-r2 (using abuild 3.11.20-r0) started Mon, 03 Jul 2023 22:53:49 +0000 >>> perl-file-mmagic-xs: Checking sanity of /home/buildozer/aports/testing/perl-file-mmagic-xs/APKBUILD... >>> perl-file-mmagic-xs: Analyzing dependencies... >>> perl-file-mmagic-xs: Installing for build: build-base perl perl-dev (1/7) Installing perl (5.38.0-r0) (2/7) Installing perl-utils (5.38.0-r0) (3/7) Installing perl-dev (5.38.0-r0) (4/7) Installing .makedepends-perl-file-mmagic-xs (20230703.225350) (5/7) Installing perl-error (0.17029-r2) (6/7) Installing perl-git (2.41.0-r1) (7/7) Installing git-perl (2.41.0-r1) Executing busybox-1.36.1-r2.trigger OK: 315 MiB in 114 packages >>> perl-file-mmagic-xs: Cleaning up srcdir >>> perl-file-mmagic-xs: Cleaning up pkgdir >>> perl-file-mmagic-xs: Cleaning up tmpdir >>> perl-file-mmagic-xs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/File-MMagic-XS-0.09008.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 118k 100 118k 0 0 116k 0 0:00:01 0:00:01 --:--:-- 116k 100 118k 100 118k 0 0 116k 0 0:00:01 0:00:01 --:--:-- 116k >>> perl-file-mmagic-xs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/File-MMagic-XS-0.09008.tar.gz >>> perl-file-mmagic-xs: Checking sha512sums... File-MMagic-XS-0.09008.tar.gz: OK >>> perl-file-mmagic-xs: Unpacking /var/cache/distfiles/File-MMagic-XS-0.09008.tar.gz... Cannot determine perl version info from lib/File/MMagic/XS.pm Writing ppport.h Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for File::MMagic::XS Writing MYMETA.yml and MYMETA.json Running Mkbootstrap for XS () "/usr/bin/perl" "-Iinc" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' src/MMagic.xs > src/MMagic.xsc cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -Os -fstack-clash-protection -Wformat -Werror=format-security -O2 -DVERSION=\"0.09008\" -DXS_VERSION=\"0.09008\" -o src/MMagicST.o -fPIC "-I/usr/lib/perl5/core_perl/CORE" -DUSE_PPPORT src/MMagicST.c cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -Os -fstack-clash-protection -Wformat -Werror=format-security -O2 -DVERSION=\"0.09008\" -DXS_VERSION=\"0.09008\" -o src/perl-mmagic-xs.o -fPIC "-I/usr/lib/perl5/core_perl/CORE" -DUSE_PPPORT src/perl-mmagic-xs.c chmod 644 "XS.bs" src/MMagicST.c: In function 'new_size': src/MMagicST.c:133:12: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 133 | i < sizeof(primes)/sizeof(primes[0]); | ^ src/MMagicST.c: In function 'delete_never': src/MMagicST.c:470:15: warning: unused parameter 'key' [-Wunused-parameter] 470 | st_data_t key, value, never; | ^~~ "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs blib/arch/auto/File/MMagic/XS/XS.bs 644 cp lib/File/MMagic/XS.pm blib/lib/File/MMagic/XS.pm cp benchmark.pl blib/lib/File/MMagic/benchmark.pl cp lib/File/MMagic/magic blib/lib/File/MMagic/magic src/MMagicST.c: In function 'rehash': src/MMagicST.c:64:17: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 64 | #define xcalloc calloc | ^ src/MMagicST.c:70:28: note: in expansion of macro 'xcalloc' 70 | #define Calloc(n,s) (char*)xcalloc((n),(s)) | ^~~~~~~ src/MMagicST.c:337:34: note: in expansion of macro 'Calloc' 337 | new_bins = (st_table_entry**)Calloc(new_num_bins, sizeof(st_table_entry*)); | ^~~~~~ In file included from src/MMagicST.c:9: /usr/include/stdlib.h:41:7: note: in a call to allocation function 'calloc' declared here 41 | void *calloc (size_t, size_t); | ^~~~~~ mv src/MMagic.xsc src/MMagic.c cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -Os -fstack-clash-protection -Wformat -Werror=format-security -O2 -DVERSION=\"0.09008\" -DXS_VERSION=\"0.09008\" -o src/MMagic.o -fPIC "-I/usr/lib/perl5/core_perl/CORE" -DUSE_PPPORT src/MMagic.c src/perl-mmagic-xs.c: In function 'fmm_parse_magic_line': src/perl-mmagic-xs.c:1113:5: error: format not a string literal and no format arguments [-Werror=format-security] 1113 | croak(SvPV_nolen(err)); | ^~~~~ src/perl-mmagic-xs.c: In function 'PerlFMM_ascmagic': src/perl-mmagic-xs.c:1645:36: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1645 | rc = fmm_ascmagic(data, strlen(data), &type); | ^~~~ | | | unsigned char * In file included from /usr/lib/perl5/core_perl/CORE/perl.h:1715, from src/perl-mmagic-xs.h:5, from src/perl-mmagic-xs.c:105: /usr/include/string.h:54:16: note: expected 'const char *' but argument is of type 'unsigned char *' 54 | size_t strlen (const char *); | ^~~~~~~~~~~~ src/perl-mmagic-xs.c: In function 'fmm_append_buf': src/perl-mmagic-xs.c:375:5: warning: 'strncat' specified bound depends on the length of the source argument [-Wstringop-overflow=] 375 | strncat(*dst, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/perl-mmagic-xs.c:367:9: note: length computed here 367 | if (strlen(buf) + 1 > MAXMIMESTRING - strlen(*dst)) { | ^~~~~~~~~~~ src/perl-mmagic-xs.c: In function 'fmm_ext_magic': src/perl-mmagic-xs.c:1457:5: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1457 | strncpy(ext, dot + 1, BUFSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/MMagic.c: In function 'XS_File__MMagic__XS_ascmagic': src/MMagic.c:475:41: warning: pointer targets in passing argument 2 of 'PerlFMM_ascmagic' differ in signedness [-Wpointer-sign] 475 | RETVAL = PerlFMM_ascmagic(self, data); | ^~~~ | | | char * In file included from src/MMagic.xs:1: src/perl-mmagic-xs.h:100:52: note: expected 'unsigned char *' but argument is of type 'char *' 100 | SV* PerlFMM_ascmagic(PerlFMM *self, unsigned char *data); | ~~~~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors make: *** [Makefile:353: src/perl-mmagic-xs.o] Error 1 >>> ERROR: perl-file-mmagic-xs: build failed >>> perl-file-mmagic-xs: Uninstalling dependencies... (1/7) Purging .makedepends-perl-file-mmagic-xs (20230703.225350) (2/7) Purging perl-dev (5.38.0-r0) (3/7) Purging perl-utils (5.38.0-r0) (4/7) Purging git-perl (2.41.0-r1) (5/7) Purging perl-git (2.41.0-r1) (6/7) Purging perl-error (0.17029-r2) (7/7) Purging perl (5.38.0-r0) Executing busybox-1.36.1-r2.trigger OK: 263 MiB in 107 packages