Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'], chrootPath='/var/lib/mock/f39-build-2467225-61444/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=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.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'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Wrote: /builddir/build/SRPMS/libtpcmisc-1.4.8-31.fc39.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'], chrootPath='/var/lib/mock/f39-build-2467225-61444/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=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.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'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XU2wg8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtpcmisc + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libtpcmisc_1_4_8_src.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd libtpcmisc + rm -rf /builddir/build/BUILD/libtpcmisc-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/libtpcmisc-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libtpcmisc-shared.patch):' Patch #0 (libtpcmisc-shared.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .shared --fuzz=0 patching file include/memory_handler.h patching file Makefile patching file memory_handler.c + sed -i '/^CFLAGS/d' Makefile + dos2unix -k History Readme dos2unix: converting file History to Unix format... dos2unix: converting file Readme to Unix format... + iconv -f ISO_8859-1 -t utf8 -o History.new History + mv -f History.new History + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eLaYDm + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 libtpcmisc + export 'CFLAGS=-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC' + CFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC' + export 'CXXFLAGS=-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC' + CXXFLAGS='-O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC' + make -j64 gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o substitutions.o substitutions.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o backup.o backup.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o idcrypt.o idcrypt.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o intex.o intex.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o petc99.o petc99.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o studynr.o studynr.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o swap.o swap.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o halflife.o halflife.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o ift.o ift.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o iftfile.o iftfile.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o iftsrch.o iftsrch.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o decpoint.o decpoint.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o quots.o quots.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o petunits.o petunits.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o datetime.o datetime.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o memory_handler.o memory_handler.c gcc -O2 -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -fPIC -DPIC -c -o libtpcmiscv.o libtpcmiscv.c memory_handler.c: In function ‘check_memory’: memory_handler.c:139:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 139 | (unsigned int) mem ); | ^ memory_handler.c:146:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 146 | (unsigned int)mem, loop ); | ^ memory_handler.c: In function ‘allocate_memory’: memory_handler.c:226:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 226 | (unsigned int)best, waste ); | ^ memory_handler.c: In function ‘_free_memory’: memory_handler.c:281:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 281 | (unsigned int) loop, loop->size, true_f ); | ^ memory_handler.c: In function ‘debug_print_memory’: memory_handler.c:370:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 370 | (unsigned int) loop, (unsigned int) loop->mem, loop->size, | ^ memory_handler.c:370:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 370 | (unsigned int) loop, (unsigned int) loop->mem, loop->size, | ^ memory_handler.c:371:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 371 | (unsigned int)loop->next, loop->used); | ^ In file included from studynr.c:63: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from studynr.c:59: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ intex.c: In function ‘intExpand’: intex.c:51:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 51 | if(list->nr>0 && list->i!=NULL) free((char*)list->i); list->nr=0; | ^~ intex.c:51:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 51 | if(list->nr>0 && list->i!=NULL) free((char*)list->i); list->nr=0; | ^~~~ In file included from ift.c:51: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from iftsrch.c:39: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from iftsrch.c:35: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ In file included from ift.c:46: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ memory_handler.c: In function ‘free_all_memory’: memory_handler.c:350:18: warning: pointer ‘loop’ used after ‘free’ [-Wuse-after-free] 350 | loop->size = 0; | ~~~~~~~~~~~^~~ memory_handler.c:345:7: note: call to ‘free’ here 345 | free ( loop ) ; | ^~~~~~~~~~~~~ memory_handler.c:349:18: warning: pointer ‘loop’ used after ‘free’ [-Wuse-after-free] 349 | loop->used = -1; | ~~~~~~~~~~~^~~~ memory_handler.c:345:7: note: call to ‘free’ here 345 | free ( loop ) ; | ^~~~~~~~~~~~~ memory_handler.c:348:18: warning: pointer ‘loop’ used after ‘free’ [-Wuse-after-free] 348 | loop->next = NULL; | ^ memory_handler.c:345:7: note: call to ‘free’ here 345 | free ( loop ) ; | ^~~~~~~~~~~~~ memory_handler.c:347:17: warning: pointer ‘loop’ used after ‘free’ [-Wuse-after-free] 347 | loop->mem = NULL; | ^ memory_handler.c:345:7: note: call to ‘free’ here 345 | free ( loop ) ; | ^~~~~~~~~~~~~ In file included from iftfile.c:52: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from iftfile.c:47: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ make: *** [: iftsrch.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [: ift.o] Error 1 In file included from backup.c:42: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from backup.c:38: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ make: *** [: iftfile.o] Error 1 In file included from datetime.c:48: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from datetime.c:42: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ make: *** [: studynr.o] Error 1 make: *** [: backup.o] Error 1 In file included from halflife.c:64: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from halflife.c:58: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ In file included from petunits.c:44: include/substitutions.h:19:7: error: conflicting types for ‘strcasestr’; have ‘char *(char *, char *)’ 19 | char *strcasestr(char *src, char *sub); | ^~~~~~~~~~ In file included from petunits.c:40: /usr/include/string.h:380:14: note: previous declaration of ‘strcasestr’ with type ‘char *(const char *, const char *)’ 380 | extern char *strcasestr (const char *__haystack, const char *__needle) | ^~~~~~~~~~ make: *** [: datetime.o] Error 1 make: *** [: halflife.o] Error 1 make: *** [: petunits.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.eLaYDm (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.eLaYDm (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, 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: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtpcmisc.spec'