or=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -ansi -pedantic -I/usr/include/libxml2 -DXGREPVERSION=\"0.08\" -DUSE_PCRE=1 gcc -c parsex.c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -ansi -pedantic -I/usr/include/libxml2 -DXGREPVERSION=\"0.08\" -DUSE_PCRE=1 gcc -c debug.c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -ansi -pedantic -I/usr/include/libxml2 -DXGREPVERSION=\"0.08\" -DUSE_PCRE=1 gcc -c find.c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -ansi -pedantic -I/usr/include/libxml2 -DXGREPVERSION=\"0.08\" -DUSE_PCRE=1 gcc -c xgrep.c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -ansi -pedantic -I/usr/include/libxml2 -DXGREPVERSION=\"0.08\" -DUSE_PCRE=1 xgrep.c: In function ‘main’: xgrep.c:158:5: error: ‘xmlDoValidityCheckingDefaultValue’ undeclared (first use in this function) 158 | xmlDoValidityCheckingDefaultValue = 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xgrep.c:158:5: note: each undeclared identifier is reported only once for each function it appears in xgrep.c:159:5: error: ‘xmlLoadExtDtdDefaultValue’ undeclared (first use in this function) 159 | xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS; | ^~~~~~~~~~~~~~~~~~~~~~~~~ xgrep.c:159:34: error: ‘XML_DETECT_IDS’ undeclared (first use in this function) 159 | xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS; | ^~~~~~~~~~~~~~ xgrep.c:220:3: error: implicit declaration of function ‘xmlCleanupParser’ [-Werror=implicit-function-declaration] 220 | xmlCleanupParser(); | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [Makefile:144: xgrep.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.uhrKWI (%build) Bad exit status from /var/tmp/rpm-tmp.uhrKWI (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/xgrep.spec