Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rats.spec'], chrootPath='/var/lib/mock/f33-build-292592-54910/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rats.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1596240000 Wrote: /builddir/build/SRPMS/rats-2.4-17.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rats.spec'], chrootPath='/var/lib/mock/f33-build-292592-54910/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rats.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1596240000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nlzh5S + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rats-2.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/rats-2.4.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rats-2.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0002-Fix-engine-output-and-php-extension.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0003-Fix-report-layout.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/rats-2.4-gtk-vuln.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/rats-2.4-hash.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + sed -e 's/$(BINDIR)/$(DESTDIR)$(BINDIR)/g' -e 's/ $(LIBDIR)/ $(DESTDIR)$(LIBDIR)/g' -e 's/$(MANDIR)/$(DESTDIR)$(MANDIR)/g' -e 's/ $(SHAREDIR)/ $(DESTDIR)$(SHAREDIR)/g' -i Makefile.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tn9avR + umask 022 + cd /builddir/build/BUILD + cd rats-2.4 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share/rats checking for riscv64-redhat-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... no checking lex output file root... lex.yy checking whether yytext is a pointer... no checking for a BSD-compatible install... /usr/bin/install -c checking for XML_ParserCreate in -lexpat... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking xmlparse.h usability... no checking xmlparse.h presence... no checking for xmlparse.h... no configure: creating ./config.status config.status: creating Makefile + /usr/bin/make -O -j4 V=1 VERBOSE=1 lex flex -F -8 -Pyyc c-lex.l flex -F -8 -Pyyp python-lex.l flex -F -8 -Pyyperl perl-lex.l flex -F -8 -Pyyphp php-lex.l flex -F -8 -Pyyruby ruby-lex.l + /usr/bin/make -O -j4 V=1 VERBOSE=1 gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o engine.o -c engine.c engine.c: In function 'analyze_identifier': engine.c:794:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 794 | if (!analyzed) | ^~ engine.c:797:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 797 | if (process) | ^~ engine.c: In function 'analyze_comment': engine.c:1177:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1177 | if (yyclength < 5) | ^~ engine.c:1179:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1179 | if (*ratslexer.yycomment == NULL) | ^~ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyc.o -c lex.yyc.c gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyperl.o -c lex.yyperl.c lex.yyperl.c:4132:17: warning: 'yyunput' defined but not used [-Wunused-function] 4132 | | ^ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyp.o -c lex.yyp.c lex.yyp.c:5350:17: warning: 'yyunput' defined but not used [-Wunused-function] 5350 | | ^ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o hash.o -c hash.c gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o kazhash.o -c kazhash.c gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o main.o -c main.c main.c: In function 'output_header': main.c:181:8: warning: assignment to 'char **' from incompatible pointer type 'const char **' [-Wincompatible-pointer-types] 181 | keys = HashKeys(database); | ^ main.c: In function 'output_xmlheader': main.c:209:8: warning: assignment to 'char **' from incompatible pointer type 'const char **' [-Wincompatible-pointer-types] 209 | keys = HashKeys(database); | ^ main.c: In function 'output_htmlheader': main.c:240:8: warning: assignment to 'char **' from incompatible pointer type 'const char **' [-Wincompatible-pointer-types] 240 | keys = HashKeys(database); | ^ main.c: In function 'load_database': main.c:104:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 104 | fread(buf, st.st_size, 1, fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from main.c:36: In function 'strncpy', inlined from 'main' at main.c:399:4: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:399:4: note: length computed here 399 | strncpy(uservul->Name, optarg, strlen(optarg)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o vuln_db.o -c vuln_db.c vuln_db.c: In function 'ParseVulnDb': vuln_db.c:415:38: warning: format '%d' expects argument of type 'int', but argument 4 has type 'XML_Size' {aka 'long unsigned int'} [-Wformat=] 415 | fprintf(stderr, "%s at line %d\n", | ~^ | | | int | %ld 416 | XML_ErrorString(XML_GetErrorCode(parser)), 417 | XML_GetCurrentLineNumber(parser)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | XML_Size {aka long unsigned int} In file included from /usr/include/string.h:519, from vuln_db.c:22: In function 'strncpy', inlined from 'StartElement' at vuln_db.c:161:5, inlined from 'StartElement' at vuln_db.c:147:6: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vuln_db.c: In function 'StartElement': vuln_db.c:161:5: note: length computed here 161 | strncpy(mydata->fname[mydata->depth + 1], name, strlen(name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from vuln_db.c:22: In function 'strncpy', inlined from 'EndElement' at vuln_db.c:342:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vuln_db.c: In function 'EndElement': vuln_db.c:342:9: note: length computed here 342 | strncpy(mydata->vuln->Info->URL, mydata->databuf, strlen(mydata->databuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from vuln_db.c:22: In function 'strncpy', inlined from 'EndElement' at vuln_db.c:336:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vuln_db.c: In function 'EndElement': vuln_db.c:336:9: note: length computed here 336 | strncpy(mydata->vuln->Info->Description, mydata->databuf, strlen(mydata->databuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from vuln_db.c:22: In function 'strncpy', inlined from 'EndElement' at vuln_db.c:324:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vuln_db.c: In function 'EndElement': vuln_db.c:324:9: note: length computed here 324 | strncpy(mydata->vuln->Name, mydata->databuf, strlen(mydata->databuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o getopt.o -c getopt.c gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyphp.o -c lex.yyphp.c lex.yyphp.c:11109:16: warning: 'yy_top_state' defined but not used [-Wunused-function] 11109 | | ^ lex.yyphp.c:11101:17: warning: 'yy_pop_state' defined but not used [-Wunused-function] 11101 | | ^ lex.yyphp.c:11076:17: warning: 'yy_push_state' defined but not used [-Wunused-function] 11076 | | ^ lex.yyphp.c:10614:17: warning: 'yyunput' defined but not used [-Wunused-function] 10614 | | ^ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyruby.o -c lex.yyruby.c ruby-lex.l:240:6: warning: 'scan_yytext' defined but not used [-Wunused-function] 240 | void scan_yytext(void) | ^~~~~~~~~~~ lex.yyruby.c:6494:17: warning: 'yyunput' defined but not used [-Wunused-function] 6494 | | ^ gcc -Wall -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o report.o -c report.c report.c: In function 'debug_vuln_dump': report.c:130:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 130 | (unsigned int) ptr, | ^ report.c:132:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 132 | (unsigned int) ptr->data,ptr->type,ptr->severity, | ^ report.c:133:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | (unsigned int) ptr->uses, (unsigned int) ptr->next, (unsigned int) ptr->prev); | ^ report.c:133:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | (unsigned int) ptr->uses, (unsigned int) ptr->next, (unsigned int) ptr->prev); | ^ report.c:133:76: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | (unsigned int) ptr->uses, (unsigned int) ptr->next, (unsigned int) ptr->prev); | ^ In file included from /usr/include/string.h:519, from report.c:29: In function 'strncpy', inlined from 'replace_cfname' at report.c:146:3: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ report.c: In function 'replace_cfname': report.c:146:3: note: length computed here 146 | strncpy(context_filename, filename, strlen(filename)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from report.c:29: In function 'strncpy', inlined from 'getctx' at report.c:196:11: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ report.c: In function 'getctx': report.c:196:11: note: length computed here 196 | strncpy(ret, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wall -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -o rats engine.o lex.yyc.o lex.yyp.o lex.yyperl.o lex.yyphp.o lex.yyruby.o hash.o kazhash.o main.o report.o vuln_db.o getopt.o -lexpat In function 'strncpy', inlined from 'replace_cfname' at report.c:146:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ report.c: In function 'replace_cfname': report.c:146:3: note: length computed here 146 | strncpy(context_filename, filename, strlen(filename)); | ^ In function 'strncpy', inlined from 'getctx' at report.c:196:11: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ report.c: In function 'getctx': report.c:196:11: note: length computed here 196 | strncpy(ret, buf, strlen(buf)); | ^ In function 'strncpy', inlined from 'EndElement' at vuln_db.c:342:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ vuln_db.c: In function 'EndElement': vuln_db.c:342:9: note: length computed here 342 | strncpy(mydata->vuln->Info->URL, mydata->databuf, strlen(mydata->databuf)); | ^ In function 'strncpy', inlined from 'EndElement' at vuln_db.c:336:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ vuln_db.c: In function 'EndElement': vuln_db.c:336:9: note: length computed here 336 | strncpy(mydata->vuln->Info->Description, mydata->databuf, strlen(mydata->databuf)); | ^ In function 'strncpy', inlined from 'EndElement' at vuln_db.c:324:9, inlined from 'EndElement' at vuln_db.c:295:6: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ vuln_db.c: In function 'EndElement': vuln_db.c:324:9: note: length computed here 324 | strncpy(mydata->vuln->Name, mydata->databuf, strlen(mydata->databuf)); | ^ In function 'strncpy', inlined from 'StartElement' at vuln_db.c:161:5, inlined from 'StartElement' at vuln_db.c:147:6: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ vuln_db.c: In function 'StartElement': vuln_db.c:161:5: note: length computed here 161 | strncpy(mydata->fname[mydata->depth + 1], name, strlen(name)); | ^ In function 'strncpy', inlined from 'main' at main.c:399:4: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ main.c: In function 'main': main.c:399:4: note: length computed here 399 | strncpy(uservul->Name, optarg, strlen(optarg)); | ^ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.odRFpR + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 + cd rats-2.4 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 'INSTALL=/usr/bin/install -p' ./mkinstalldirs /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/bin /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/lib64 /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/man /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/bin mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/lib64 mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/man mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/man/man1 mkdir /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p rats /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/bin /usr/bin/install -p -m 644 rats-python.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats-c.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats-perl.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats-php.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats-ruby.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats-openssl.xml /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/rats /usr/bin/install -p -m 644 rats.1 /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/man/man1 + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.4-17.fc33 --unique-debug-suffix -2.4-17.fc33.riscv64 --unique-debug-src-base rats-2.4-17.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rats-2.4 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/bin/rats extracting debug info from /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/bin/rats original debug info size: 1160kB, size after compression: 1136kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 4224 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rats-2.4-17.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6CmePU + umask 022 + cd /builddir/build/BUILD + cd rats-2.4 + DOCDIR=/builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/doc/rats + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/doc/rats + cp -pr COPYING /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/doc/rats + cp -pr README /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64/usr/share/doc/rats + RPM_EC=0 ++ jobs -p + exit 0 Provides: rats = 2.4-17.fc33 rats(riscv-64) = 2.4-17.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libexpat.so.1()(64bit) rtld(GNU_HASH) Processing files: rats-debugsource-2.4-17.fc33.riscv64 Provides: rats-debugsource = 2.4-17.fc33 rats-debugsource(riscv-64) = 2.4-17.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rats-debuginfo-2.4-17.fc33.riscv64 Provides: debuginfo(build-id) = b6d7b30c037e4ce63fa184707166dbf0754367e4 rats-debuginfo = 2.4-17.fc33 rats-debuginfo(riscv-64) = 2.4-17.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rats-debugsource(riscv-64) = 2.4-17.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 Wrote: /builddir/build/RPMS/rats-debuginfo-2.4-17.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/rats-2.4-17.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/rats-debugsource-2.4-17.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.fu6ELQ + umask 022 + cd /builddir/build/BUILD + cd rats-2.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rats-2.4-17.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0