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/libcgi.spec'], chrootPath='/var/lib/mock/f33-build-290725-54516/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/libcgi.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=1595894400 Wrote: /builddir/build/SRPMS/libcgi-1.0-30.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/libcgi.spec'], chrootPath='/var/lib/mock/f33-build-290725-54516/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/libcgi.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=1595894400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wLPnS7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libcgi-1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/libcgi-1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libcgi-1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (libcgi-1.0-Makefile.in.patch): + echo 'Patch #0 (libcgi-1.0-Makefile.in.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in + echo 'Patch #1 (libcgi-1.0-cgi.c-hextable.patch):' Patch #1 (libcgi-1.0-cgi.c-hextable.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/cgi.c Patch #2 (libcgi-1.0-string.c-make_string.patch): + echo 'Patch #2 (libcgi-1.0-string.c-make_string.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/string.c + find examples/ -name Makefile.am -delete + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZFs0P7 + umask 022 + cd /builddir/build/BUILD + cd libcgi-1.0 + 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 creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -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 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) works... yes checking whether the C compiler (gcc -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 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes updating cache ./config.cache creating ./config.status creating Makefile creating src/config.h src/config.h is unchanged + make SOMAJOR=1 SOMINOR=0 -j4 gcc -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 -fPIC -o src/error.sh.o -c src/error.c gcc -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 -fPIC -o src/cgi.sh.o -c src/cgi.c gcc -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 -fPIC -o src/session.sh.o -c src/session.c gcc -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 -fPIC -o src/base64.sh.o -c src/base64.c src/cgi.c: In function 'cgi_escape_special_chars': src/cgi.c:462:9: warning: pointer targets in returning 'unsigned char *' from a function with return type 'char *' differ in signedness [-Wpointer-sign] 462 | return tmp; | ^~~ src/cgi.c: In function 'cgi_process_form': src/cgi.c:173:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 173 | fread(post_data, content_length, 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_start': src/session.c:542:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 542 | fgets(buf, st.st_size+1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -fPIC -o src/md5.sh.o -c src/md5.c src/md5.c: In function 'md5': src/md5.c:81:22: warning: pointer targets in passing argument 2 of 'MD5Update' differ in signedness [-Wpointer-sign] 81 | MD5Update(&context, str, strlen(str)); | ^~~ | | | const char * src/md5.c:48:65: note: expected 'const unsigned char *' but argument is of type 'const char *' 48 | void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len); | ~~~~~~~~~~~~~~~~~~~~~^~~ src/md5.c: In function 'MD5Final': src/md5.c:251:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 251 | memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ | ^ src/md5.c: In function 'md5': src/md5.c:89:42: warning: iteration 16 invokes undefined behavior [-Waggressive-loop-optimizations] 89 | snprintf(buf, sizeof(float), "%02x", md[i]); | ~~^~~ src/md5.c:88:2: note: within this loop 88 | for(i = 0; i < 32; i++) { | ^~~ gcc -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 -fPIC -o src/string.sh.o -c src/string.c In file included from /usr/include/string.h:519, from src/session.c:60: In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:351:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_register_var': src/session.c:351:3: note: length computed here 351 | strncpy(data->name, name, strlen(name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from src/session.c:60: In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:354:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_register_var': src/session.c:354:3: note: length computed here 354 | strncpy(data->value, value, strlen(value)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -fPIC -o src/general.sh.o -c src/general.c gcc -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 -fPIC -o src/list.sh.o -c src/list.c In file included from /usr/include/string.h:519, from src/md5.c:24: In function 'strncat', inlined from 'md5' at src/md5.c:90:3: /usr/include/bits/string_fortified.h:137:10: warning: 'strncat' output may be truncated copying 4 bytes from a string of length 31 [-Wstringop-truncation] 137 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -fPIC -o src/cookie.sh.o -c src/cookie.c gcc -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 -o src/error.o -c src/error.c gcc -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 -o src/cgi.o -c src/cgi.c In file included from /usr/include/string.h:519, from src/cookie.c:24: In function 'strncpy', inlined from 'cgi_get_cookies' at src/cookie.c:131:3: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/cookie.c: In function 'cgi_get_cookies': src/cookie.c:117:15: note: length computed here 117 | position = strlen(cookies); | ^~~~~~~~~~~~~~~ gcc -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 -o src/session.o -c src/session.c gcc -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 -o src/base64.o -c src/base64.c gcc -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 -o src/md5.o -c src/md5.c src/cgi.c: In function 'cgi_escape_special_chars': src/cgi.c:462:9: warning: pointer targets in returning 'unsigned char *' from a function with return type 'char *' differ in signedness [-Wpointer-sign] 462 | return tmp; | ^~~ src/cgi.c: In function 'cgi_process_form': src/cgi.c:173:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 173 | fread(post_data, content_length, 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_start': src/session.c:542:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 542 | fgets(buf, st.st_size+1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/md5.c: In function 'md5': src/md5.c:81:22: warning: pointer targets in passing argument 2 of 'MD5Update' differ in signedness [-Wpointer-sign] 81 | MD5Update(&context, str, strlen(str)); | ^~~ | | | const char * src/md5.c:48:65: note: expected 'const unsigned char *' but argument is of type 'const char *' 48 | void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len); | ~~~~~~~~~~~~~~~~~~~~~^~~ src/md5.c: In function 'MD5Final': src/md5.c:251:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 251 | memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ | ^ src/md5.c: In function 'md5': src/md5.c:89:42: warning: iteration 16 invokes undefined behavior [-Waggressive-loop-optimizations] 89 | snprintf(buf, sizeof(float), "%02x", md[i]); | ~~^~~ src/md5.c:88:2: note: within this loop 88 | for(i = 0; i < 32; i++) { | ^~~ gcc -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 -o src/string.o -c src/string.c In file included from /usr/include/string.h:519, from src/session.c:60: In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:351:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_register_var': src/session.c:351:3: note: length computed here 351 | strncpy(data->name, name, strlen(name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from src/session.c:60: In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:354:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/session.c: In function 'cgi_session_register_var': src/session.c:354:3: note: length computed here 354 | strncpy(data->value, value, strlen(value)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -o src/general.o -c src/general.c gcc -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 -o src/list.o -c src/list.c In file included from /usr/include/string.h:519, from src/md5.c:24: In function 'strncat', inlined from 'md5' at src/md5.c:90:3: /usr/include/bits/string_fortified.h:137:10: warning: 'strncat' output may be truncated copying 4 bytes from a string of length 31 [-Wstringop-truncation] 137 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -o src/cookie.o -c src/cookie.c gcc -shared -fPIC -Wl,-soname,libcgi.so.1.0 -o src/libcgi.so.1.0 src/error.sh.o src/cgi.sh.o src/session.sh.o src/base64.sh.o src/md5.sh.o src/string.sh.o src/general.sh.o src/list.sh.o src/cookie.sh.o In file included from /usr/include/string.h:519, from src/cookie.c:24: In function 'strncpy', inlined from 'cgi_get_cookies' at src/cookie.c:131:3: /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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/cookie.c: In function 'cgi_get_cookies': src/cookie.c:117:15: note: length computed here 117 | position = strlen(cookies); | ^~~~~~~~~~~~~~~ ar rc src/libcgi.a src/error.o src/cgi.o src/session.o src/base64.o src/md5.o src/string.o src/general.o src/list.o src/cookie.o In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:351:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^ src/session.c: In function 'cgi_session_register_var': src/session.c:351:3: note: length computed here 351 | strncpy(data->name, name, strlen(name)); | ^ In function 'strncpy', inlined from 'cgi_session_register_var' at src/session.c:354:3, inlined from 'cgi_session_register_var' at src/session.c:313:5: /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)); | ^ src/session.c: In function 'cgi_session_register_var': src/session.c:354:3: note: length computed here 354 | strncpy(data->value, value, strlen(value)); | ^ src/md5.c: In function 'md5': src/md5.c:89:42: warning: iteration 16 invokes undefined behavior [-Waggressive-loop-optimizations] 89 | snprintf(buf, sizeof(float), "%02x", md[i]); | ^ src/md5.c:88:2: note: within this loop 88 | for(i = 0; i < 32; i++) { | ^ +---------------------------------------+ | Thanks for using LibCGI | +---------------------------------------+ | LibCGI is getting better because | | people like you are using it. So, if | | LibCGI is helping you in some way, | | please help us to improve it, sending | | suggestions, bug reports, bug fixes, | | and specially improvment code. | | You can subscribe to the mailing list | | or send a mail to the author. | +---------------------------------------+---------------------------+ | List: http://lists.sourceforge.net/lists/listinfo/libcgi-general | +-------------------------------------------------------------------+ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6XDfH4 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 + cd libcgi-1.0 + make SOMAJOR=1 SOMINOR=0 DESTDIR=/builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 LIBDIR=/usr/lib64 INCDIR=/usr/include/libcgi install [ -d /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/lib64 ] || mkdir -p -m 0755 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/lib64 cp -p src/libcgi.a /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64 cp -p src/libcgi.so.1.0 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64 ln -sf libcgi.so.1.0 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64/libcgi.so.1 ln -sf libcgi.so.1 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64/libcgi.so [ -d /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/include/libcgi ] || mkdir -p -m 0755 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/include/libcgi cp -p src/cgi.h /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/include/libcgi cp -p src/session.h /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/include/libcgi + make DESTDIR=/builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 install_man [ -d /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/share/man/man3 ] || mkdir -p -m 0755 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64//usr/share/man/man3 cp -p doc/man/man3/libcgi_cgi.3 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/man/man3 cp -p doc/man/man3/libcgi_general.3 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/man/man3 cp -p doc/man/man3/libcgi_string.3 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/man/man3 cp -p doc/man/man3/libcgi_session.3 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/man/man3 cp -p doc/man/man3/libcgi_cookie.3 /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/man/man3 + rm -f /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64/libcgi.a + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.0-30.fc33 --unique-debug-suffix -1.0-30.fc33.riscv64 --unique-debug-src-base libcgi-1.0-30.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/libcgi-1.0 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64/libcgi.so.1.0 extracting debug info from /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/lib64/libcgi.so.1.0 original debug info size: 288kB, size after compression: 284kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 147 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: libcgi-1.0-30.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.fZFBE7 + umask 022 + cd /builddir/build/BUILD + cd libcgi-1.0 + DOCDIR=/builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr AUTHORS /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr BUGS /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr ChangeLog /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr README /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr THANKS /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + cp -pr TODO /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi + RPM_EC=0 ++ jobs -p + exit 0 Provides: libcgi = 1.0-30.fc33 libcgi(riscv-64) = 1.0-30.fc33 libcgi.so.1.0()(64bit) 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) rtld(GNU_HASH) Processing files: libcgi-devel-1.0-30.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.O4HCE4 + umask 022 + cd /builddir/build/BUILD + cd libcgi-1.0 + DOCDIR=/builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi-devel + cp -pr doc/html/ /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi-devel + cp -pr examples/ /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64/usr/share/doc/libcgi-devel + RPM_EC=0 ++ jobs -p + exit 0 Provides: libcgi-devel = 1.0-30.fc33 libcgi-devel(riscv-64) = 1.0-30.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libcgi.so.1.0()(64bit) Processing files: libcgi-debugsource-1.0-30.fc33.riscv64 Provides: libcgi-debugsource = 1.0-30.fc33 libcgi-debugsource(riscv-64) = 1.0-30.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libcgi-debuginfo-1.0-30.fc33.riscv64 Provides: debuginfo(build-id) = 52abaea1c75f8ddae355256648c1749cddfa8e0f libcgi-debuginfo = 1.0-30.fc33 libcgi-debuginfo(riscv-64) = 1.0-30.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libcgi-debugsource(riscv-64) = 1.0-30.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 Wrote: /builddir/build/RPMS/libcgi-1.0-30.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/libcgi-debuginfo-1.0-30.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/libcgi-debugsource-1.0-30.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/libcgi-devel-1.0-30.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.b5HDw7 + umask 022 + cd /builddir/build/BUILD + cd libcgi-1.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libcgi-1.0-30.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0