Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/squidGuard.spec'], chrootPath='/var/lib/mock/f37-build-650978-72754/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/squidGuard.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: Macro expanded in comment on line 59: %{_bindir}/chcon warning: Macro expanded in comment on line 248: %{_sysconfdir}/selinux/targeted/src/policy/domains/program/squidGuard.te warning: Macro expanded in comment on line 249: %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/squidGuard.fc Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Wrote: /builddir/build/SRPMS/squidGuard-1.4-42.fc37.src.rpm RPM build warnings: Macro expanded in comment on line 59: %{_bindir}/chcon Macro expanded in comment on line 248: %{_sysconfdir}/selinux/targeted/src/policy/domains/program/squidGuard.te Macro expanded in comment on line 249: %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/squidGuard.fc Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/squidGuard.spec'], chrootPath='/var/lib/mock/f37-build-650978-72754/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/squidGuard.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: Macro expanded in comment on line 59: %{_bindir}/chcon warning: Macro expanded in comment on line 248: %{_sysconfdir}/selinux/targeted/src/policy/domains/program/squidGuard.te warning: Macro expanded in comment on line 249: %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/squidGuard.fc Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1658534400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hiBu3k + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf squidGuard-1.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/squidGuard-1.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd squidGuard-1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cp /builddir/build/SOURCES/squid-getlist.html . + echo 'Patch #2 (squid-getlist.html.patch):' Patch #2 (squid-getlist.html.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=2 patching file squid-getlist.html Patch #3 (squidGuard-perlwarning.patch): + echo 'Patch #3 (squidGuard-perlwarning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p2 --fuzz=2 patching file samples/squidGuard.cgi.in Patch #5 (squidGuard-makeinstall.patch): + echo 'Patch #5 (squidGuard-makeinstall.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=2 patching file src/Makefile.in Hunk #1 succeeded at 122 (offset 17 lines). Patch #7 (squidGuard-1.4-20091015.patch): + echo 'Patch #7 (squidGuard-1.4-20091015.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=2 patching file src/sgLog.c Patch #8 (squidGuard-1.4-20091019.patch): + echo 'Patch #8 (squidGuard-1.4-20091019.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=2 patching file src/sgDiv.c.in patching file src/sg.h.in Patch #9 (squidGuard-1.4-db5.patch): + echo 'Patch #9 (squidGuard-1.4-db5.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=2 patching file src/sgDb.c patch unexpectedly ends in middle of line Hunk #1 succeeded at 114 with fuzz 1. Patch #10 (squidGuard-1.4-helper-protocol.patch): + echo 'Patch #10 (squidGuard-1.4-helper-protocol.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=2 patching file src/main.c patching file src/sgDiv.c patching file src/sgDiv.c.in Patch #11 (squidGuard-1.4-setuserinfo.patch): + echo 'Patch #11 (squidGuard-1.4-setuserinfo.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=2 patching file src/sgDiv.c.in patching file src/sg.y.in + /usr/bin/cp /builddir/build/SOURCES/squidGuard.conf ./squidGuard.conf.k12ltsp.template + /usr/bin/cp /builddir/build/SOURCES/update_squidguard_blacklists ./update_squidguard_blacklists.k12ltsp.sh + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tuZwpW + umask 022 + cd /builddir/build/BUILD + 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 -fcommon -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 -fcommon -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 -fcommon -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 -fcommon -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 -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 squidGuard-1.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 -fcommon -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 -fcommon -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 -fcommon -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 -fcommon -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 -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 + '[' '-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 --with-sg-config=/etc/squid/squidGuard.conf --with-sg-logdir=/var/log/squidGuard --with-sg-dbhome=/var/squidGuard/blacklists --with-ldap=yes checking for riscv64-redhat-linux-gnu-gcc... gcc checking for C compiler default output file name... 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 ISO C89... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for bison... bison -y checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for lynx... false checking for perl... /usr/bin/perl checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -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 db.h usability... yes checking db.h presence... yes checking for db.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for unistd.h... (cached) yes checking for db.h... (cached) yes checking suppress runtime logging... no checking squid runtime user ... squid checking for ldap_init in -lldap... yes checking for ldap support... yes checking for mysql support... no checking for pthread_create in -lpthread... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for regcomp... yes checking for regerror... yes checking for regexec... yes checking for strdup... yes checking for strerror... yes checking for vsprintf... yes checking for sigaction... yes checking for signal... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sgDiv.c config.status: creating src/sg.h config.status: creating src/sg.y config.status: creating test/Makefile config.status: creating test/test1.conf config.status: creating test/test2.conf config.status: creating samples/Makefile config.status: creating samples/sample.conf config.status: creating samples/squidGuard.cgi config.status: creating samples/squidGuard-simple.cgi config.status: creating samples/squidGuard-simple-de.cgi config.status: creating contrib/Makefile config.status: creating contrib/squidGuardRobot/squidGuardRobot config.status: creating contrib/sgclean/sgclean config.status: creating contrib/hostbyname/hostbyname config.status: creating src/config.h + /usr/bin/make making all in squidGuard-1.4 make[1]: Entering directory '/builddir/build/BUILD/squidGuard-1.4/src' making all in src gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c main.c gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c sgLog.c sgLog.c: In function 'sgSetGlobalErrorLogFile': sgLog.c:38:5: warning: 'strncpy' specified bound 12288 equals destination size [-Wstringop-truncation] 38 | strncpy(file,globalLogDir,MAX_BUF); | ^ gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c sgDb.c sgDb.c: In function 'updateProgressBar': sgDb.c:357:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 357 | if(((int)(prog*100.0) % 100) == 0) | ^~ sgDb.c:358:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 358 | printf(".");fflush(stderr); | ^~~~~~ gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c HTParse.c gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c sgDiv.c sgDiv.c: In function 'parseLine': sgDiv.c:104:3: warning: implicit declaration of function 'HTUnEscape' [-Wimplicit-function-declaration] 104 | HTUnEscape(field); | ^~~~~~~~~~ sgDiv.c: In function 'sgParseRedirect': sgDiv.c:695:30: warning: format '%d' expects argument of type 'int', but argument 4 has type 'time_t' {aka 'long int'} [-Wformat=] 695 | sprintf(qbuf, "%d-%d-%d-%d-%d-%d", s->userquota.renew, s->userquota.seconds, userquota->status, userquota->time, userquota->last, userquota->consumed); | ~^ ~~~~~~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld sgDiv.c:695:36: warning: format '%d' expects argument of type 'int', but argument 6 has type 'time_t' {aka 'long int'} [-Wformat=] 695 | sprintf(qbuf, "%d-%d-%d-%d-%d-%d", s->userquota.renew, s->userquota.seconds, userquota->status, userquota->time, userquota->last, userquota->consumed); | ~^ ~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld sgDiv.c:695:39: warning: format '%d' expects argument of type 'int', but argument 7 has type 'time_t' {aka 'long int'} [-Wformat=] 695 | sprintf(qbuf, "%d-%d-%d-%d-%d-%d", s->userquota.renew, s->userquota.seconds, userquota->status, userquota->time, userquota->last, userquota->consumed); | ~^ ~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld In file included from /usr/include/string.h:535, from sg.h:27, from sgDiv.c:19: In function 'strncpy', inlined from 'parseLine' at sgDiv.c:158:10: /usr/include/bits/string_fortified.h:95:10: warning: 'strncpy' accessing between 0 and 9223372036854775805 bytes at offsets [3, 2147483650] and [4, 2147483651] may overlap up to 9223372036854775804 bytes at offset [4, 9223372036854775807] [-Wrestrict] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'parseLine' at sgDiv.c:145:10: /usr/include/bits/string_fortified.h:95:10: warning: 'strncpy' accessing between 0 and 9223372036854775805 bytes at offsets [3, 2147483650] and [4, 2147483651] may overlap up to 9223372036854775804 bytes at offset [4, 9223372036854775807] [-Wrestrict] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ sgDiv.c: In function 'sgParseRedirect': sgDiv.c:748:7: warning: '__strncat_chk' output may be truncated copying 2048 bytes from a string of length 12287 [-Wstringop-truncation] 748 | strncat(buf, req->orig, 2048); | ^ sgDiv.c: In function 'niso': sgDiv.c:863:21: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 8 and 15 [-Wformat-overflow=] 863 | sprintf(buf,"%04d-%02d-%02d %02d:%02d:%02d",lc->tm_year + 1900,lc->tm_mon + 1, | ^~~~ sgDiv.c:863:15: note: directive argument in the range [-2147483647, 2147483647] 863 | sprintf(buf,"%04d-%02d-%02d %02d:%02d:%02d",lc->tm_year + 1900,lc->tm_mon + 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from sg.h:19: In function 'sprintf', inlined from 'niso' at sgDiv.c:863:3: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 20 and 72 bytes into a destination of size 20 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c sgFree.c sg.y:98.16-19: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 98 | %type WORD | ^~~~ sg.y:99.16-22: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 99 | %type EXECCMD | ^~~~~~~ sg.y:100.16-22: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 100 | %type WEEKDAY | ^~~~~~~ sg.y:101.16-24: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 101 | %type LDAPDNSTR | ^~~~~~~~~ sg.y:102.16-21: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 102 | %type NUMBER | ^~~~~~ sg.y:103.14-17: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 103 | %type TVAL | ^~~~ sg.y:104.16-19: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 104 | %type DVAL | ^~~~ sg.y:105.16-23: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 105 | %type DVALCRON | ^~~~~~~~ sg.y:106.16-19: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 106 | %type CHAR | ^~~~ sg.y:107.16-20: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 107 | %type SUBST | ^~~~~ sg.y:108.16-21: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 108 | %type IPADDR | ^~~~~~ sg.y:109.16-21: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 109 | %type DBHOME LOGDIR | ^~~~~~ sg.y:109.23-28: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 109 | %type DBHOME LOGDIR | ^~~~~~ sg.y:110.16-19: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 110 | %type CIDR | ^~~~ sg.y:111.16-22: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 111 | %type IPCLASS | ^~~~~~~ gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c y.tab.c sg.y: In function 'sgFindSource': sg.y:1057:29: warning: unused variable 'uq' [-Wunused-variable] 1057 | struct UserInfo uq; | ^~ sg.y: In function 'sgTimeSetAcl': sg.y:2043:9: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 2043 | if(rew->within == OUTSIDE) | ^ sg.y: In function 'sgDoLdapSearch': sg.y:2731:17: warning: implicit declaration of function 'ldap_init'; did you mean 'db_init'? [-Wimplicit-function-declaration] 2731 | if((ld = ldap_init(lud->lud_host, lud->lud_port)) == NULL) { | ^~~~~~~~~ | db_init sg.y:2731:15: warning: assignment to 'LDAP *' {aka 'struct ldap *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2731 | if((ld = ldap_init(lud->lud_host, lud->lud_port)) == NULL) { | ^ sg.y:2792:12: warning: implicit declaration of function 'ldap_simple_bind_s'; did you mean 'ldap_sasl_bind_s'? [-Wimplicit-function-declaration] 2792 | if (ldap_simple_bind_s(ld, binddn, bindpass) != LDAP_SUCCESS) { | ^~~~~~~~~~~~~~~~~~ | ldap_sasl_bind_s sg.y:2795:16: warning: implicit declaration of function 'ldap_unbind'; did you mean 'ldap_txn_end'? [-Wimplicit-function-declaration] 2795 | ldap_unbind(ld); | ^~~~~~~~~~~ | ldap_txn_end sg.y:2823:27: warning: implicit declaration of function 'ldap_get_values'; did you mean 'ldap_get_values_len'? [-Wimplicit-function-declaration] 2823 | ldapvals = ldap_get_values(ld, ldapentry, lud->lud_attrs[0]); | ^~~~~~~~~~~~~~~ | ldap_get_values_len sg.y:2823:25: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2823 | ldapvals = ldap_get_values(ld, ldapentry, lud->lud_attrs[0]); | ^ sg.y:2827:24: warning: implicit declaration of function 'ldap_value_free'; did you mean 'ldap_value_free_len'? [-Wimplicit-function-declaration] 2827 | ldap_value_free(ldapvals); | ^~~~~~~~~~~~~~~ | ldap_value_free_len sg.y: In function 'sgLogFileStat': sg.y:480:3: warning: 'strncpy' specified bound 12288 equals destination size [-Wstringop-truncation] 480 | strncpy(buf,file,MAX_BUF); | ^ sg.y:485:7: warning: 'strncpy' specified bound 12288 equals destination size [-Wstringop-truncation] 485 | strncpy(buf,globalLogDir,MAX_BUF); | ^ gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -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 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/local/BerkeleyDB/include -c lex.yy.c lex.yy.c:2064:16: warning: 'input' defined but not used [-Wunused-function] 2064 | #else | ^ lex.yy.c:2021:17: warning: 'yyunput' defined but not used [-Wunused-function] 2021 | | ^ gcc -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 -L/usr/local/BerkeleyDB/lib -o squidGuard main.o sgLog.o sgDb.o HTParse.o sgDiv.o sgFree.o y.tab.o lex.yy.o -lpthread -lldap -ldb sgDiv.c:104:3: warning: type of 'HTUnEscape' does not match original declaration [-Wlto-type-mismatch] 104 | HTUnEscape(field); | ^ HTParse.c:73:8: note: return value type mismatch 73 | char * HTUnEscape (char * str) | ^ HTParse.c:73:8: note: 'HTUnEscape' was previously declared here HTParse.c:73:8: note: code may be misoptimized unless '-fno-strict-aliasing' is used making squidGuard in src make[1]: Leaving directory '/builddir/build/BUILD/squidGuard-1.4/src' make[1]: Entering directory '/builddir/build/BUILD/squidGuard-1.4/test' making all in test making all in test make[1]: Leaving directory '/builddir/build/BUILD/squidGuard-1.4/test' make[1]: Entering directory '/builddir/build/BUILD/squidGuard-1.4/samples' making all in samples make[1]: Leaving directory '/builddir/build/BUILD/squidGuard-1.4/samples' make[1]: Entering directory '/builddir/build/BUILD/squidGuard-1.4/contrib' making all in contrib make[1]: Leaving directory '/builddir/build/BUILD/squidGuard-1.4/contrib' + pushd contrib ~/build/BUILD/squidGuard-1.4/contrib ~/build/BUILD/squidGuard-1.4 + /usr/bin/make -j4 making all in contrib + popd ~/build/BUILD/squidGuard-1.4 + tar -xzf /builddir/build/SOURCES/squidGuard-1.4-patch-20150201.tar.gz --overwrite -C samples/ --strip-components=1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pgRUYD + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64 ++ dirname /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64 + 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 -fcommon -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 -fcommon -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 -fcommon -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 -fcommon -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 -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 squidGuard-1.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64 + /usr/bin/install -p -D -m 0755 src/squidGuard /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin/squidGuard + /usr/bin/install -p -D -m 0644 /builddir/build/SOURCES/squidGuard.logrotate /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/etc/logrotate.d/squidGuard + /usr/bin/install -p -D -m 0644 samples/sample.conf /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/etc/squid/squidGuard.conf + /usr/bin/install -p -D -m 0644 /builddir/build/SOURCES/blacklists.tgz /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/squidGuard/blacklists.tar.gz + /usr/bin/install -p -D -m 0755 squid-getlist.html /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/etc/cron.daily/squidGuard + /usr/bin/install -p -d /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/www/cgi-bin + /usr/bin/install samples/squidGuard-simple-de.cgi samples/squidGuard-simple.cgi samples/squidGuard.cgi /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/www/cgi-bin + /usr/bin/install contrib/hostbyname/hostbyname /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin + /usr/bin/install contrib/sgclean/sgclean /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin + /usr/bin/install -p -D -m 0644 /builddir/build/SOURCES/squidGuard.service '/builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64%{_unitdir}/squidGuard.service' + /usr/bin/install -p -D -m 0644 /builddir/build/SOURCES/transparent-proxying.service '/builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64%{_unitdir}/transparent-proxying.service' + /usr/bin/install -p -D -m 0744 /builddir/build/SOURCES/squidGuard-helper /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin/squidGuard-helper + /usr/bin/install -p -D -m 0744 /builddir/build/SOURCES/transparent-proxying-helper /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin/transparent-proxying-helper + tar xfz /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/squidGuard/blacklists.tar.gz + sed -i s,dest/adult/,blacklists/porn/,g /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/etc/squid/squidGuard.conf + /usr/bin/install -p -D -m 0644 samples/babel.de samples/babel.en samples/babel.es samples/babel.fr samples/babel.nl samples/babel.no samples/babel.ru /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/www/cgi-bin + mkdir -p /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/log/squidGuard + mkdir -p /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/log/squid + ln -s ../squidGuard/squidGuard.log /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/log/squid/squidGuard.log + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 1.4-42.fc37 --unique-debug-suffix -1.4-42.fc37.riscv64 --unique-debug-src-base squidGuard-1.4-42.fc37.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/squidGuard-1.4 extracting debug info from /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/bin/squidGuard original debug info size: 1064kB, size after compression: 940kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 738 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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /etc/cron.daily/squidGuard from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/transparent-proxying-helper from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/squidGuard-helper from /bin/bash to #!/usr/bin/bash + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: squidGuard-1.4-42.fc37.riscv64 error: File must begin with "/": %{_unitdir}/squidGuard.service error: File must begin with "/": %{_unitdir}/transparent-proxying.service warning: Explicit %attr() mode not applicable to symlink: /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/log/squid/squidGuard.log Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8SB3Wm + umask 022 + cd /builddir/build/BUILD + cd squidGuard-1.4 + DOCDIR=/builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr samples/sample.conf /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr samples/squidGuard-simple-de.cgi samples/squidGuard-simple.cgi samples/squidGuard.cgi /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr samples/dest/blacklists.tar.gz /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr COPYING /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr GPL /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr doc/LDAPFlow.txt doc/authentication.txt doc/configuration.txt doc/configure.txt doc/expressionlist.txt doc/extended.txt doc/faq.txt doc/features.txt doc/install.txt doc/installation.txt doc/ldap-ad-tips.txt doc/ldap.txt doc/runtimeops.txt doc/troubleshoot.txt /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr doc/authentication.html doc/configuration.html doc/configure.html doc/expressionlist.html doc/extended.html doc/faq.html doc/features.html doc/index.html doc/install.html doc/installation.html doc/ldap-ad-tips.html doc/ldap.html doc/runtimeops.html doc/troubleshoot.html /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr doc/squidGuard.gif /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + cp -pr squidGuard.conf.k12ltsp.template /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/usr/share/doc/squidGuard + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: RPM build errors: Macro expanded in comment on line 59: %{_bindir}/chcon Macro expanded in comment on line 248: %{_sysconfdir}/selinux/targeted/src/policy/domains/program/squidGuard.te Macro expanded in comment on line 249: %{_sysconfdir}/selinux/targeted/src/policy/file_contexts/program/squidGuard.fc Explicit %attr() mode not applicable to symlink: /builddir/build/BUILDROOT/squidGuard-1.4-42.fc37.riscv64/var/log/squid/squidGuard.log File must begin with "/": %{_unitdir}/squidGuard.service File must begin with "/": %{_unitdir}/transparent-proxying.service 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/squidGuard.spec