+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/iec16022.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.92z1kd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf iec16022-0.2.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/iec16022-0.2.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd iec16022-0.2.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (iec16022-0.2.4-test-suite-fix.patch):' Patch #0 (iec16022-0.2.4-test-suite-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .orig --fuzz=0 patching file test/testsuite.sh + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VExxeg + umask 022 + cd /builddir/build/BUILD + cd iec16022-0.2.4 + autoconf aclocal.m4:16: warning: this file was generated for autoconf 2.64. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'. configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:1037: _LT_SYS_MODULE_PATH_AIX is expanded from... aclocal.m4:4185: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:5267: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:159: _LT_SETUP is expanded from... aclocal.m4:88: LT_INIT is expanded from... aclocal.m4:123: AC_PROG_LIBTOOL is expanded from... configure.ac:39: the top level configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:4185: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:5267: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:159: _LT_SETUP is expanded from... aclocal.m4:88: LT_INIT is expanded from... aclocal.m4:123: AC_PROG_LIBTOOL is expanded from... configure.ac:39: the top level + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./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 --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 for style of include used by make... GNU checking dependency style of gcc... none checking whether gcc and cc understand -c and -o together... yes checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok 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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for main in -lpopt... yes checking for main in -lz... yes configure: creating ./config.status config.status: creating Makefile config.status: creating test/Makefile config.status: creating libiec16022.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4' Making all in test make[2]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[2]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4' CC iec16022ecc200.lo /bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o iec16022ecc200.lo iec16022ecc200.c CC image.lo /bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o image.lo image.c CC reedsol.lo CC iec16022.o /bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o reedsol.lo reedsol.c gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o iec16022.o iec16022.c iec16022.c: In function 'main': iec16022.c:135:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (poptPeekArg(optCon) || !barcode && !infile || barcode && infile) { ~~~~~~~~~^~~~~~~~~~ iec16022.c:135:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (poptPeekArg(optCon) || !barcode && !infile || barcode && infile) { ~~~~~~~~^~~~~~~~~ iec16022.c:158:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(f); ^~~~~ pclose iec16022.c:187:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (ecc && ecc != 50 && ecc != 80 && ecc != 100 && ecc != 140 || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ iec16022.c:188:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ecc == 50 && W < 11 || ecc == 80 && W < 13 || ecc == 100 ~~~~~~~~~~^~~~~~~~~ iec16022.c:189:7: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ecc == 50 && W < 11 || ecc == 80 && W < 13 || ecc == 100 ~~~~~~~~~~ && W < 13 || ecc == 140 && W < 17) { ^~~~~~~~~ iec16022.c:189:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses] && W < 13 || ecc == 140 && W < 17) { ~~~~~~~~~~~^~~~~~~~~ iec16022.c:243:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || n + 3 <= barcodelen ~~~~~~~~~~~~~~~~~~~ && (!isdigit(barcode[n]) ^~~~~~~~~~~~~~~~~~~~~~~~ || ~~ !isdigit(barcode ~~~~~~~~~~~~~~~~ [n + 1]))) ~~~~~~~~~ iec16022.c:279:53: warning: pointer targets in passing argument 5 of 'iec16022ecc200' differ in signedness [-Wpointer-sign] iec16022ecc200(&W, &H, &encoding, barcodelen, barcode, &len, ^~~~~~~ In file included from iec16022.c:34:0: iec16022ecc200.h:42:16: note: expected 'unsigned char *' but argument is of type 'char *' unsigned char *iec16022ecc200(int *Wptr, int *Hptr, char **encodingptr, ^~~~~~~~~~~~~~ iec16022ecc200.c:41:20: warning: missing braces around initializer [-Wmissing-braces] } ecc200matrix[] = { ^ 10, 10, 10, 10, 3, 3, 5, // { } 12, 12, 12, 12, 5, 5, 7, // { } 8, 18, 8, 18, 5, 5, 7, // { } 14, 14, 14, 14, 8, 8, 10, // { } 8, 32, 8, 16, 10, 10, 11, // { } 16, 16, 16, 16, 12, 12, 12, // { } 12, 26, 12, 26, 16, 16, 14, // { } 18, 18, 18, 18, 18, 18, 14, // { } 20, 20, 20, 20, 22, 22, 18, // { } 12, 36, 12, 18, 22, 22, 18, // { } 22, 22, 22, 22, 30, 30, 20, // { } 16, 36, 16, 18, 32, 32, 24, // { } 24, 24, 24, 24, 36, 36, 24, // { } 26, 26, 26, 26, 44, 44, 28, // { } 16, 48, 16, 24, 49, 49, 28, // { } 32, 32, 16, 16, 62, 62, 36, // { } 36, 36, 18, 18, 86, 86, 42, // { } 40, 40, 20, 20, 114, 114, 48, // { } 44, 44, 22, 22, 144, 144, 56, // { } 48, 48, 24, 24, 174, 174, 68, // { } 52, 52, 26, 26, 204, 102, 42, // { } 64, 64, 16, 16, 280, 140, 56, // { } 72, 72, 18, 18, 368, 92, 36, // { } 80, 80, 20, 20, 456, 114, 48, // { } 88, 88, 22, 22, 576, 144, 56, // { } 96, 96, 24, 24, 696, 174, 68, // { } 104, 104, 26, 26, 816, 136, 56, // { } 120, 120, 20, 20, 1050, 175, 68, // { } 132, 132, 22, 22, 1304, 163, 62, // { } 144, 144, 24, 24, 1558, 156, 62, // 156*4+155*2 { } 0 // terminate { }; } iec16022ecc200.c: In function 'ecc200encode': iec16022ecc200.c:247:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (tl - tp <= 1 && (enc == 'c' || enc == 't') || tl - tp <= 2 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ iec16022ecc200.c:281:10: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = 1; ^ iec16022ecc200.c:282:10: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = 30; ^ iec16022ecc200.c:286:10: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = ((w - e) + 3) % 40; ^ iec16022ecc200.c:295:11: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = 0; ^ iec16022ecc200.c:296:11: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = c; ^ iec16022ecc200.c:300:12: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = 1; ^ iec16022ecc200.c:301:12: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = ^ iec16022ecc200.c:307:13: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] ^ iec16022ecc200.c:309:13: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] ^ iec16022ecc200.c:325:10: warning: array subscript has type 'char' [-Wchar-subscripts] out[p++] = 0; // shift 1 pad at end ^ iec16022ecc200.c:358:19: warning: variable 'out' set but not used [-Wunused-but-set-variable] unsigned char out[4], p = 0; ^~~ iec16022ecc200.c: At top level: iec16022ecc200.c:469:42: warning: missing braces around initializer [-Wmissing-braces] unsigned char switchcost[E_MAX][E_MAX] = { ^ 0, 1, 1, 1, 1, 2, // From E_ASCII { } 1, 0, 2, 2, 2, 3, // From E_C40 { } 1, 2, 0, 2, 2, 3, // From E_TEXT { } 1, 2, 2, 0, 2, 3, // From E_X12 { } 1, 2, 2, 2, 0, 3, // From E_EDIFACT { } 0, 1, 1, 1, 1, 0, // From E_BINARY { }; } iec16022ecc200.c: In function 'encmake': iec16022ecc200.c:526:20: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + sl][e].t && ((t = enc[p + sl][e].t + ^ iec16022ecc200.c:526:46: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + sl][e].t && ((t = enc[p + sl][e].t + ^ iec16022ecc200.c:528:10: warning: array subscript has type 'char' [-Wchar-subscripts] [e]) < bl || !bl)) { ^ iec16022ecc200.c:535:10: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ iec16022ecc200.c:535:30: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ reedsol.c: In function 'rs_init_gf': reedsol.c:83:16: warning: argument 1 value '18446744073709551612' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] alog = (int *)malloc(sizeof(int) * logmod); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ iec16022ecc200.c:562:21: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + sl][e].t ^ In file included from reedsol.c:42:0: /usr/include/stdlib.h:539:14: note: in a call to allocation function 'malloc' declared here extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^~~~~~ iec16022ecc200.c:565:23: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p + sl][e].t + ^ iec16022ecc200.c:566:29: warning: array subscript has type 'char' [-Wchar-subscripts] switchcost[E_C40][e]) < bl ^ iec16022ecc200.c:579:11: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ iec16022ecc200.c:579:31: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ iec16022ecc200.c:607:21: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + sl][e].t ^ iec16022ecc200.c:610:23: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p + sl][e].t + ^ iec16022ecc200.c:611:30: warning: array subscript has type 'char' [-Wchar-subscripts] switchcost[E_TEXT][e]) < bl ^ iec16022ecc200.c:623:11: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ image.c:244:8: warning: return type defaults to 'int' [-Wimplicit-int] static LZWFlush(Private * p) ^~~~~~~~ image.c:250:8: warning: return type defaults to 'int' [-Wimplicit-int] static LZWOut(Private * p, short v) ^~~~~~ iec16022ecc200.c:623:31: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ image.c:263:8: warning: return type defaults to 'int' [-Wimplicit-int] static LZWClear(Private * p) ^~~~~~~~ iec16022ecc200.c:644:21: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + sl][e].t ^ image.c:277:8: warning: return type defaults to 'int' [-Wimplicit-int] static ImageStart(Private * p) ^~~~~~~~~~ iec16022ecc200.c:647:23: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p + sl][e].t + ^ image.c:288:8: warning: return type defaults to 'int' [-Wimplicit-int] static ImageEnd(Private * p) ^~~~~~~~ iec16022ecc200.c:648:29: warning: array subscript has type 'char' [-Wchar-subscripts] switchcost[E_X12][e]) < bl ^ image.c:297:8: warning: return type defaults to 'int' [-Wimplicit-int] static ImageOut(Private * p, unsigned char c) ^~~~~~~~ iec16022ecc200.c:661:11: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ iec16022ecc200.c:661:31: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + sl][b].s; ^ iec16022ecc200.c:672:38: warning: array subscript has type 'char' [-Wchar-subscripts] if (e != E_EDIFACT && enc[p + 1][e].t ^ iec16022ecc200.c:675:26: warning: array subscript has type 'char' [-Wchar-subscripts] 2 + enc[p + 1][e].t + ^ iec16022ecc200.c:676:31: warning: array subscript has type 'char' [-Wchar-subscripts] switchcost[E_ASCII][e]) ^ iec16022ecc200.c:690:24: warning: array subscript has type 'char' [-Wchar-subscripts] && enc[p + 2][e].t ^ iec16022ecc200.c:693:27: warning: array subscript has type 'char' [-Wchar-subscripts] 3 + enc[p + 2][e].t + ^ iec16022ecc200.c:694:32: warning: array subscript has type 'char' [-Wchar-subscripts] switchcost[E_ASCII][e]) ^ iec16022ecc200.c:708:25: warning: array subscript has type 'char' [-Wchar-subscripts] && enc[p + 3][e].t ^ iec16022ecc200.c:712:17: warning: array subscript has type 'char' [-Wchar-subscripts] 3][e].t + ^ iec16022ecc200.c:714:23: warning: array subscript has type 'char' [-Wchar-subscripts] [E_ASCII][e]) ^ iec16022ecc200.c:730:13: warning: array subscript has type 'char' [-Wchar-subscripts] [e].t ^ iec16022ecc200.c:735:14: warning: array subscript has type 'char' [-Wchar-subscripts] 4][e]. ^ iec16022ecc200.c:739:15: warning: array subscript has type 'char' [-Wchar-subscripts] [e]) < bl ^ iec16022ecc200.c:768:11: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + bs][b].s; ^ iec16022ecc200.c:768:31: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + bs][b].s; ^ iec16022ecc200.c:773:18: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p + 1][e].t ^ iec16022ecc200.c:776:20: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p + 1][e].t + switchcost[E_BINARY][e] + ^ iec16022ecc200.c:776:48: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p + 1][e].t + switchcost[E_BINARY][e] + ^ iec16022ecc200.c:778:18: warning: array subscript has type 'char' [-Wchar-subscripts] && enc[p + 1][e].t == 249) ? 1 : 0)) ^ iec16022ecc200.c:786:10: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + 1][b].s; ^ iec16022ecc200.c:786:29: warning: array subscript has type 'char' [-Wchar-subscripts] enc[p][b].s += enc[p + 1][b].s; ^ image.c: In function 'writechunk': iec16022ecc200.c:801:15: warning: array subscript has type 'char' [-Wchar-subscripts] if (enc[p][e].t ^ image.c:546:19: warning: implicit declaration of function 'htonl' [-Wimplicit-function-declaration] unsigned int v = htonl(len), crc; ^~~~~ iec16022ecc200.c:802:24: warning: array subscript has type 'char' [-Wchar-subscripts] && ((t = enc[p][e].t + switchcost[cur][e]) < ^ iec16022ecc200.c:802:42: warning: array subscript has type 'char' [-Wchar-subscripts] && ((t = enc[p][e].t + switchcost[cur][e]) < ^ iec16022ecc200.c:802:47: warning: array subscript has type 'char' [-Wchar-subscripts] && ((t = enc[p][e].t + switchcost[cur][e]) < ^ iec16022ecc200.c:803:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] m || t == m && e == cur || !m)) { ~~~~~~~^~~~~~~~~~~ iec16022ecc200.c:808:14: warning: array subscript has type 'char' [-Wchar-subscripts] m = enc[p][b].s; ^ iec16022ecc200.c:810:19: warning: array subscript has type 'char' [-Wchar-subscripts] *lenp = enc[p][b].t; ^ iec16022ecc200.c:812:27: warning: array subscript has type 'char' [-Wchar-subscripts] encoding[p++] = encchr[b]; ^ iec16022ecc200.c: In function 'iec16022ecc200': iec16022ecc200.c:941:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (v == 1 || v > 7 ~~~~~ && (binary[(v >> 3) - 1] & (1 << (v & 7)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.c: In function 'ImageWriteGif': image.c:394:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, buf, n); ^~~~~~~~~~~~~~~~~ image.c:421:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, "\0", 1); // end of image data ^~~~~~~~~~~~~~~~~~ image.c:422:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, "\x3B", 1); // trailer ^~~~~~~~~~~~~~~~~~~~ image.c: In function 'ImageStart': image.c:280:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(p->fh, &b, 1); ^~~~~~~~~~~~~~~~~~~ image.c:286:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'LZWClear': image.c:275:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'LZWOut': image.c:261:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'LZWFlush': image.c:246:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(p->fh, p->block, *p->block + 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.c:248:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'ImageOut': image.c:320:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'ImageEnd': image.c:295:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ image.c: In function 'writecrc': image.c:538:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, ptr, len); ^~~~~~~~~~~~~~~~~~~ image.c: In function 'writechunk': image.c:547:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ image.c:552:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ image.c: In function 'ImageWritePNG': image.c:573:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, "\211PNG\r\n\032\n", 8); // PNG header ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.c:591:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ image.c:598:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ image.c:607:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ image.c:612:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fh, &v, 4); ^~~~~~~~~~~~~~~~ iec16022ecc200.c: In function 'ecc200encode': iec16022ecc200.c:284:8: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized] w = strchr(e, c); ~~^~~~~~~~~~~~~~ CCLD libiec16022.la CCLD iec16022 make[2]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4' make[1]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EgFNPl + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 + cd iec16022-0.2.4 + make install DESTDIR=/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 Making install in test make[1]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[2]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[1]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4/test' make[1]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4' make[2]: Entering directory '/builddir/build/BUILD/iec16022-0.2.4' test -z "/usr/lib64" || /usr/bin/mkdir -p "/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64" /bin/sh ./libtool --mode=install /usr/bin/install -c libiec16022.la '/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64' libtool: install: /usr/bin/install -c .libs/libiec16022.so.0.0.0 /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64/libiec16022.so.0.0.0 libtool: install: (cd /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64 && { ln -s -f libiec16022.so.0.0.0 libiec16022.so.0 || { rm -f libiec16022.so.0 && ln -s libiec16022.so.0.0.0 libiec16022.so.0; }; }) libtool: install: (cd /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64 && { ln -s -f libiec16022.so.0.0.0 libiec16022.so || { rm -f libiec16022.so && ln -s libiec16022.so.0.0.0 libiec16022.so; }; }) libtool: install: /usr/bin/install -c .libs/libiec16022.lai /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64/libiec16022.la libtool: install: warning: remember to run `libtool --finish /usr/lib64' test -z "/usr/bin" || /usr/bin/mkdir -p "/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/bin" /bin/sh ./libtool --mode=install /usr/bin/install -c iec16022 '/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/bin' libtool: install: warning: `libiec16022.la' has not been installed in `/usr/lib64' libtool: install: /usr/bin/install -c .libs/iec16022 /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/bin/iec16022 test -z "/usr/include/iec16022" || /usr/bin/mkdir -p "/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/include/iec16022" /usr/bin/install -c -m 644 iec16022ecc200.h image.h reedsol.h '/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/include/iec16022' test -z "/usr/share/man/man1" || /usr/bin/mkdir -p "/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/man/man1" /usr/bin/install -c -m 644 iec16022.1 '/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/man/man1' test -z "/usr/lib64/pkgconfig" || /usr/bin/mkdir -p "/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64/pkgconfig" /usr/bin/install -c -m 644 libiec16022.pc '/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64/pkgconfig' make[2]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4' make[1]: Leaving directory '/builddir/build/BUILD/iec16022-0.2.4' + rm -f /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/lib64/libiec16022.la + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: iec16022-0.2.4-19.fc28.riscv64 Provides: iec16022 = 0.2.4-19.fc28 iec16022(riscv-64) = 0.2.4-19.fc28 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) libiec16022.so.0()(64bit) libpopt.so.0()(64bit) libpopt.so.0(LIBPOPT_0)(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: iec16022-libs-0.2.4-19.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.DK7bbr + umask 022 + cd /builddir/build/BUILD + cd iec16022-0.2.4 + DOCDIR=/builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + cp -pr AUTHORS /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + cp -pr ChangeLog /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + cp -pr COPYING /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + cp -pr README /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + cp -pr TODO /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64/usr/share/doc/iec16022-libs + exit 0 Provides: iec16022-libs = 0.2.4-19.fc28 iec16022-libs(riscv-64) = 0.2.4-19.fc28 libiec16022.so.0()(64bit) Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig 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) libpopt.so.0()(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: iec16022-devel-0.2.4-19.fc28.riscv64 Provides: iec16022-devel = 0.2.4-19.fc28 iec16022-devel(riscv-64) = 0.2.4-19.fc28 pkgconfig(libiec16022) = 0.2.4 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libiec16022.so.0()(64bit) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 Wrote: /builddir/build/SRPMS/iec16022-0.2.4-19.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/iec16022-0.2.4-19.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/iec16022-libs-0.2.4-19.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/iec16022-devel-0.2.4-19.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7jDXdK + umask 022 + cd /builddir/build/BUILD + cd iec16022-0.2.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/iec16022-0.2.4-19.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff