usr/include/libxml2/libxml/parser.h:930:17: note: declared here 930 | xmlSubstituteEntitiesDefault(int val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/libsrc/xml2dcm.cc:135:26: warning: ‘int xmlLineNumbersDefault(int)’ is deprecated [-Wdeprecated-declarations] 135 | xmlLineNumbersDefault(1); | ~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/libxml2/libxml/parser.h:944:17: note: declared here 944 | xmlLineNumbersDefault (int val); | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/libsrc/xml2dcm.cc:138:5: error: ‘xmlIndentTreeOutput’ was not declared in this scope 138 | xmlIndentTreeOutput = 1; | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/libsrc/xml2dcm.cc:139:25: warning: ‘int xmlKeepBlanksDefault(int)’ is deprecated [-Wdeprecated-declarations] 139 | xmlKeepBlanksDefault(0); | ~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/libxml2/libxml/parser.h:934:17: note: declared here 934 | xmlKeepBlanksDefault (int val); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libxml2/libxml/xmlstring.h:15, from /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/include/dcmtk/dcmdata/xml2dcm.h:60, from /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/libsrc/xml2dcm.cc:24: /usr/include/libxml2/libxml/xmlversion.h:500:44: warning: ‘int* __xmlGetWarningsDefaultValue()’ is deprecated [-Wdeprecated-declarations] 500 | #define XML_GLOBAL_MACRO(name) (*__##name()) | ~~~~~~~~^~ /usr/include/libxml2/libxml/parser.h:884:5: note: in expansion of macro ‘XML_GLOBAL_MACRO’ 884 | XML_GLOBAL_MACRO(xmlGetWarningsDefaultValue) | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/dcmtk-3.6.7/dcmdata/libsrc/xml2dcm.cc:142:5: note: in expansion of macro ‘xmlGetWarningsDefaultValue’ 142 | xmlGetWarningsDefaultValue = 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here 499 | attrs XMLPUBFUN type *__##name(void); | ^~ /usr/include/libxml2/libxml/parser.h:873:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’ 873 | #define XML_OP XML_DECLARE_GLOBAL | ^~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:854:3: note: in expansion of macro ‘XML_OP’ 854 | XML_OP(xmlGetWarningsDefaultValue, int, XML_DEPRECATED) \ | ^~~~~~ /usr/include/libxml2/libxml/parser.h:870:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’ 870 | XML_GLOBALS_PARSER_CORE \ | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:874:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’ 874 | XML_GLOBALS_PARSER | ^~~~~~~~~~~~~~~~~~ gmake[2]: *** [dcmdata/libsrc/CMakeFiles/dcmdata.dir/build.make:1353: dcmdata/libsrc/CMakeFiles/dcmdata.dir/xml2dcm.cc.o] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/dcmtk-3.6.7/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:2350: dcmdata/libsrc/CMakeFiles/dcmdata.dir/all] Error 2 gmake[1]: Leaving directory '/builddir/build/BUILD/dcmtk-3.6.7/redhat-linux-build' gmake: *** [Makefile:149: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.9OKxGa (%build) Bad exit status from /var/tmp/rpm-tmp.9OKxGa (%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/dcmtk.spec