Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec'], chrootPath='/var/lib/mock/f42-build-56775961-6546078/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '9b4bd7c873fb4631bc2619fbc6db4a04', '-D', '/var/lib/mock/f42-build-56775961-6546078/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721347200 Wrote: /builddir/build/SRPMS/perl-File-MMagic-XS-0.09008-33.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec'], chrootPath='/var/lib/mock/f42-build-56775961-6546078/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '08cf4b5597eb4ae39c53e250634b8ef4', '-D', '/var/lib/mock/f42-build-56775961-6546078/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721347200 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.6GBbzD + umask 022 + cd /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + test -d /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + /usr/bin/rm -rf /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + /usr/bin/mkdir -p /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + /usr/bin/mkdir -p /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XWSuAY + umask 022 + cd /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + cd /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + rm -rf File-MMagic-XS-0.09008 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/File-MMagic-XS-0.09008.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd File-MMagic-XS-0.09008 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (perl-File-MMagic-XS-format-security.patch): + echo 'Patch #1 (perl-File-MMagic-XS-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .format-security --fuzz=0 patching file src/perl-mmagic-xs.c Patch #2 (File-MMagic-XS-0.09008-Fix-building-on-Perl-without-dot-in-INC.patch): + echo 'Patch #2 (File-MMagic-XS-0.09008-Fix-building-on-Perl-without-dot-in-INC.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.PL + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jOc6b7 + umask 022 + cd /builddir/build/BUILD/perl-File-MMagic-XS-0.09008-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd File-MMagic-XS-0.09008 + perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' 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 + make -j8 Running Mkbootstrap for XS () "/usr/bin/perl" "-Iinc" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' src/MMagic.xs > src/MMagic.xsc gcc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wdeclaration-after-statement -Wc++-compat -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.09008\" -DXS_VERSION=\"0.09008\" -o src/MMagicST.o -fPIC "-I/usr/lib64/perl5/CORE" -DUSE_PPPORT src/MMagicST.c gcc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wdeclaration-after-statement -Wc++-compat -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.09008\" -DXS_VERSION=\"0.09008\" -o src/perl-mmagic-xs.o -fPIC "-I/usr/lib64/perl5/CORE" -DUSE_PPPORT src/perl-mmagic-xs.c chmod 644 "XS.bs" "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- XS.bs blib/arch/auto/File/MMagic/XS/XS.bs 644 src/MMagicST.c:41:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(long int, long int)’ [-Wincompatible-pointer-types] 41 | numcmp, | ^~~~~~ src/MMagicST.c:41:5: note: (near initialization for ‘type_numhash.compare’) src/MMagicST.c:38:12: note: ‘numcmp’ declared here 38 | static int numcmp(long, long); | ^~~~~~ src/MMagicST.c:42:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(long int)’ [-Wincompatible-pointer-types] 42 | numhash, | ^~~~~~~ src/MMagicST.c:42:5: note: (near initialization for ‘type_numhash.hash’) src/MMagicST.c:39:12: note: ‘numhash’ declared here 39 | static int numhash(long); | ^~~~~~~ src/MMagicST.c:48:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(const char *, const char *)’ [-Wincompatible-pointer-types] 48 | strcmp, | ^~~~~~ src/MMagicST.c:48:5: note: (near initialization for ‘type_strhash.compare’) In file included from src/MMagicST.c:10: /usr/include/string.h:156:12: note: ‘strcmp’ declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ src/MMagicST.c:49:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(const char *)’ [-Wincompatible-pointer-types] 49 | strhash, | ^~~~~~~ src/MMagicST.c:49:5: note: (near initialization for ‘type_strhash.hash’) src/MMagicST.c:46:12: note: ‘strhash’ declared here 46 | static int strhash(const char *); | ^~~~~~~ src/MMagicST.c: In function ‘new_size’: src/MMagicST.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | new_size(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 ‘st_init_table_with_size’: src/MMagicST.c:157:1: warning: old-style function definition [-Wold-style-definition] 157 | st_init_table_with_size(type, size) | ^~~~~~~~~~~~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_init_table’: src/MMagicST.c:182:1: warning: old-style function definition [-Wold-style-definition] 182 | st_init_table(type) | ^~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_init_numtable_with_size’: src/MMagicST.c:195:1: warning: old-style function definition [-Wold-style-definition] 195 | st_init_numtable_with_size(size) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_init_strtable_with_size’: src/MMagicST.c:208:1: warning: old-style function definition [-Wold-style-definition] 208 | st_init_strtable_with_size(size) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_free_table’: src/MMagicST.c:215:1: warning: old-style function definition [-Wold-style-definition] 215 | st_free_table(table) | ^~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_lookup’: src/MMagicST.c:255:1: warning: old-style function definition [-Wold-style-definition] 255 | st_lookup(table, key, value) | ^~~~~~~~~ src/MMagicST.c:74:43: error: too many arguments to function ‘table->type->hash’; expected 0, have 1 74 | #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~ src/MMagicST.c:263:16: note: in expansion of macro ‘do_hash’ 263 | hash_val = do_hash(key, table); | ^~~~~~~ In file included from src/MMagicST.c:11: src/MMagicST.h:16:11: note: declared here 16 | int (*hash)(); | ^~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:234:45: note: in expansion of macro ‘EQUAL’ 234 | ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) | ^~~~~ src/MMagicST.c:245:9: note: in expansion of macro ‘PTR_NOT_EQUAL’ 245 | if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\ | ^~~~~~~~~~~~~ src/MMagicST.c:264:5: note: in expansion of macro ‘FIND_ENTRY’ 264 | FIND_ENTRY(table, ptr, hash_val, bin_pos); | ^~~~~~~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:234:45: note: in expansion of macro ‘EQUAL’ 234 | ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) | ^~~~~ src/MMagicST.c:247:16: note: in expansion of macro ‘PTR_NOT_EQUAL’ 247 | while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\ | ^~~~~~~~~~~~~ src/MMagicST.c:264:5: note: in expansion of macro ‘FIND_ENTRY’ 264 | FIND_ENTRY(table, ptr, hash_val, bin_pos); | ^~~~~~~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c: In function ‘st_insert’: src/MMagicST.c:294:1: warning: old-style function definition [-Wold-style-definition] 294 | st_insert(table, key, value) | ^~~~~~~~~ src/MMagicST.c:74:43: error: too many arguments to function ‘table->type->hash’; expected 0, have 1 74 | #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~ src/MMagicST.c:302:16: note: in expansion of macro ‘do_hash’ 302 | hash_val = do_hash(key, table); | ^~~~~~~ src/MMagicST.h:16:11: note: declared here 16 | int (*hash)(); | ^~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:234:45: note: in expansion of macro ‘EQUAL’ 234 | ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) | ^~~~~ src/MMagicST.c:245:9: note: in expansion of macro ‘PTR_NOT_EQUAL’ 245 | if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\ | ^~~~~~~~~~~~~ src/MMagicST.c:303:5: note: in expansion of macro ‘FIND_ENTRY’ 303 | FIND_ENTRY(table, ptr, hash_val, bin_pos); | ^~~~~~~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:234:45: note: in expansion of macro ‘EQUAL’ 234 | ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) | ^~~~~ src/MMagicST.c:247:16: note: in expansion of macro ‘PTR_NOT_EQUAL’ 247 | while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\ | ^~~~~~~~~~~~~ src/MMagicST.c:303:5: note: in expansion of macro ‘FIND_ENTRY’ 303 | FIND_ENTRY(table, ptr, hash_val, bin_pos); | ^~~~~~~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c: In function ‘st_add_direct’: src/MMagicST.c:316:1: warning: old-style function definition [-Wold-style-definition] 316 | st_add_direct(table, key, value) | ^~~~~~~~~~~~~ src/MMagicST.c:74:43: error: too many arguments to function ‘table->type->hash’; expected 0, have 1 74 | #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~ src/MMagicST.c:323:16: note: in expansion of macro ‘do_hash’ 323 | hash_val = do_hash(key, table); | ^~~~~~~ src/MMagicST.h:16:11: note: declared here 16 | int (*hash)(); | ^~~~ src/MMagicST.c: In function ‘rehash’: src/MMagicST.c:329:1: warning: old-style function definition [-Wold-style-definition] 329 | rehash(table) | ^~~~~~ src/MMagicST.c: In function ‘st_copy’: src/MMagicST.c:355:1: warning: old-style function definition [-Wold-style-definition] 355 | st_copy(old_table) | ^~~~~~~ src/MMagicST.c: In function ‘st_delete’: src/MMagicST.c:396:1: warning: old-style function definition [-Wold-style-definition] 396 | st_delete(table, key, value) | ^~~~~~~~~ src/MMagicST.c:74:43: error: too many arguments to function ‘table->type->hash’; expected 0, have 1 74 | #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~ src/MMagicST.c:75:33: note: in expansion of macro ‘do_hash’ 75 | #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) | ^~~~~~~ src/MMagicST.c:405:16: note: in expansion of macro ‘do_hash_bin’ 405 | hash_val = do_hash_bin(*key, table); | ^~~~~~~~~~~ src/MMagicST.h:16:11: note: declared here 16 | int (*hash)(); | ^~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:413:9: note: in expansion of macro ‘EQUAL’ 413 | if (EQUAL(table, *key, ptr->key)) { | ^~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:423:13: note: in expansion of macro ‘EQUAL’ 423 | if (EQUAL(table, ptr->next->key, *key)) { | ^~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c: In function ‘st_delete_safe’: src/MMagicST.c:438:1: warning: old-style function definition [-Wold-style-definition] 438 | st_delete_safe(table, key, value, never) | ^~~~~~~~~~~~~~ src/MMagicST.c:74:43: error: too many arguments to function ‘table->type->hash’; expected 0, have 1 74 | #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~ src/MMagicST.c:75:33: note: in expansion of macro ‘do_hash’ 75 | #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) | ^~~~~~~ src/MMagicST.c:447:16: note: in expansion of macro ‘do_hash_bin’ 447 | hash_val = do_hash_bin(*key, table); | ^~~~~~~~~~~ src/MMagicST.h:16:11: note: declared here 16 | int (*hash)(); | ^~~~ src/MMagicST.c:72:40: error: too many arguments to function ‘table->type->compare’; expected 0, have 2 72 | #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0) | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~ src/MMagicST.c:456:36: note: in expansion of macro ‘EQUAL’ 456 | if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) { | ^~~~~ src/MMagicST.h:15:11: note: declared here 15 | int (*compare)(); | ^~~~~~~ src/MMagicST.c: In function ‘delete_never’: src/MMagicST.c:469:1: warning: old-style function definition [-Wold-style-definition] 469 | delete_never(key, value, never) | ^~~~~~~~~~~~ src/MMagicST.c:470:15: warning: unused parameter ‘key’ [-Wunused-parameter] 470 | st_data_t key, value, never; | ^~~ src/MMagicST.c: In function ‘st_cleanup_safe’: src/MMagicST.c:477:1: warning: old-style function definition [-Wold-style-definition] 477 | st_cleanup_safe(table, never) | ^~~~~~~~~~~~~~~ src/MMagicST.c: In function ‘st_foreach’: src/MMagicST.c:488:1: warning: old-style function definition [-Wold-style-definition] 488 | st_foreach(table, func, arg) | ^~~~~~~~~~ src/MMagicST.c:500:23: error: too many arguments to function ‘func’; expected 0, have 4 500 | retval = (*func)(ptr->key, ptr->record, arg, 0); | ~^~~~~~ ~~~~~~~~ src/MMagicST.c:500:20: warning: enum conversion from ‘int’ to ‘enum st_retval’ in assignment is invalid in C++ [-Wc++-compat] 500 | retval = (*func)(ptr->key, ptr->record, arg, 0); | ^ src/MMagicST.c:511:31: error: too many arguments to function ‘func’; expected 0, have 4 511 | retval = (*func)(0, 0, arg, 1); | ~^~~~~~ ~ src/MMagicST.c:511:28: warning: enum conversion from ‘int’ to ‘enum st_retval’ in assignment is invalid in C++ [-Wc++-compat] 511 | retval = (*func)(0, 0, arg, 1); | ^ src/MMagicST.c: In function ‘strhash’: src/MMagicST.c:538:1: warning: old-style function definition [-Wold-style-definition] 538 | strhash(string) | ^~~~~~~ src/MMagicST.c: In function ‘numcmp’: src/MMagicST.c:577:1: warning: old-style function definition [-Wold-style-definition] 577 | numcmp(x, y) | ^~~~~~ src/MMagicST.c: In function ‘numhash’: src/MMagicST.c:584:1: warning: old-style function definition [-Wold-style-definition] 584 | numhash(n) | ^~~~~~~ make: *** [Makefile:353: src/MMagicST.o] Error 1 make: *** Waiting for unfinished jobs.... cp lib/File/MMagic/magic blib/lib/File/MMagic/magic cp benchmark.pl blib/lib/File/MMagic/benchmark.pl cp lib/File/MMagic/XS.pm blib/lib/File/MMagic/XS.pm mv src/MMagic.xsc src/MMagic.c In file included from /usr/lib64/perl5/CORE/perl.h:46, from src/perl-mmagic-xs.h:5, from src/perl-mmagic-xs.c:105: /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_av_remove_offset’: /usr/lib64/perl5/CORE/config.h:1211:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1211 | #define SSize_t ssize_t /* signed count of bytes */ | ^~~~~~~ /usr/lib64/perl5/CORE/inline.h:226:5: note: in expansion of macro ‘SSize_t’ 226 | SSize_t i = AvARRAY(av) - AvALLOC(av); | ^~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:7869: /usr/lib64/perl5/CORE/inline.h: In function ‘S_PerlEnv_putenv’: /usr/lib64/perl5/CORE/inline.h:313:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 313 | bool retval = putenv(str); | ^~~~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_rpp_context’: /usr/lib64/perl5/CORE/inline.h:1074:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1074 | SV *top = *svp; | ^~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_push_stackinfo’: /usr/lib64/perl5/CORE/inline.h:4012:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4012 | PERL_SI *next = PL_curstackinfo->si_next; | ^~~~~~~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_pop_stackinfo’: /usr/lib64/perl5/CORE/inline.h:4052:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4052 | PERL_SI * const prev = PL_curstackinfo->si_prev; | ^~~~~~~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_newPADxVOP’: /usr/lib64/perl5/CORE/inline.h:4094:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4094 | OP *o = newOP(type, flags); | ^~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_foldEQ’: /usr/lib64/perl5/CORE/inline.h:4120:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4120 | const U8 *a = (const U8 *)s1; | ^~~~~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_foldEQ_latin1’: /usr/lib64/perl5/CORE/inline.h:4145:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4145 | const U8 *a = (const U8 *)s1; | ^~~~~ /usr/lib64/perl5/CORE/inline.h: In function ‘Perl_cop_file_avn’: /usr/lib64/perl5/CORE/inline.h:4464:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4464 | const char *file = CopFILE(cop); | ^~~~~ src/perl-mmagic-xs.c: At top level: src/perl-mmagic-xs.c:386:36: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 386 | fmm_mconvert(PerlFMM *state, union VALUETYPE *p, fmmagic *m) | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c:430:32: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 430 | fmm_mget(PerlFMM *state, union VALUETYPE *p, unsigned char *s, fmmagic *m, size_t nbytes) | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c: In function ‘fmm_mget’: src/perl-mmagic-xs.c:434:31: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 434 | if (offset + sizeof(union VALUETYPE) > nbytes) { | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c:438:40: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 438 | memcpy(p, s + offset, sizeof(union VALUETYPE)); | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c:457:35: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 457 | if (offset + sizeof(union VALUETYPE) > nbytes) | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c:460:44: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 460 | memcpy(p, s + offset, sizeof(union VALUETYPE)); | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c: At top level: src/perl-mmagic-xs.c:595:51: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 595 | fmm_append_mime(PerlFMM *state, char **buf, union VALUETYPE *p, fmmagic *m) | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c:643:34: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 643 | fmm_mcheck(PerlFMM *state, union VALUETYPE *p, fmmagic *m) | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ src/perl-mmagic-xs.c: In function ‘fmm_ascmagic’: src/perl-mmagic-xs.c:1307:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1307 | int is_tarball = is_tar(buf, nbytes); | ^~~ src/perl-mmagic-xs.c: In function ‘fmm_softmagic’: src/perl-mmagic-xs.c:1325:11: warning: union defined in struct or union is not visible in C++ [-Wc++-compat] 1325 | union VALUETYPE p; | ^~~~~~~~~ src/perl-mmagic-xs.h:57:11: note: union defined here 57 | union VALUETYPE { | ^~~~~~~~~ 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/lib64/perl5/CORE/perl.h:1711: /usr/include/string.h:407:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ 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 8192 equals destination size [-Wstringop-truncation] 1457 | strncpy(ext, dot + 1, BUFSIZ); | ^ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.jOc6b7 (%build) Bad exit status from /var/tmp/rpm-tmp.jOc6b7 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 08cf4b5597eb4ae39c53e250634b8ef4 -D /var/lib/mock/f42-build-56775961-6546078/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 08cf4b5597eb4ae39c53e250634b8ef4 -D /var/lib/mock/f42-build-56775961-6546078/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mmp57a8u:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/perl-File-MMagic-XS.spec'