Mock Version: 4.1
Mock Version: 4.1
Mock Version: 4.1
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gocr.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-79312-53294/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f15accd9908>timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gocr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/gocr-0.52-1.oc9.src.rpm
RPM build warnings:
    %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps --nocheck /builddir/build/SPECS/gocr.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-79312-53294/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f15accd9908>timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps --nocheck /builddir/build/SPECS/gocr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dlBgNi
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf gocr-0.52
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gocr-0.52.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gocr-0.52
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (gocr-0.46-perms.patch):'
Patch #0 (gocr-0.46-perms.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .perms --fuzz=0
patching file man/Makefile.in
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jPAqaU
+ 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd gocr-0.52
+ '[' '-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
--- ./configure.backup	2018-10-16 05:52:22.000000000 +0800
+++ ./configure	2024-06-04 12:45:41.390967643 +0800
@@ -1705,7 +1705,7 @@
 #ifdef __cplusplus
 extern "C"
 #endif
-char $2 ();
+__attribute__ ((used)) char $2 ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
+ /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/OpenCloudOS/OpenCloudOS-hardened-ld' ']'
++ find . -name ltmain.sh
+ ./configure --build=x86_64-opencloudos-linux-gnu --host=x86_64-opencloudos-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
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking for x86_64-opencloudos-linux-gnu-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 a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for library containing pnm_readpnminit... -lnetpbm
checking how to run the C preprocessor... gcc -E
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 for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking pam.h usability... no
checking pam.h presence... no
checking for pam.h... no
checking pnm.h usability... no
checking pnm.h presence... no
checking for pnm.h... no
checking for an ANSI C-conforming const... yes
checking for wcschr... yes
checking for wcsdup... yes
checking for gettimeofday... yes
checking for popen... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: WARNING:  'man/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating include/config.h
configure: WARNING: unrecognized options: --disable-dependency-tracking
+ make -j32
make -C src all
make[1]: Entering directory '/builddir/build/BUILD/gocr-0.52/src'
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o pgm2asc.o pgm2asc.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o box.o box.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o database.o database.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o detect.o detect.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o barcode.o barcode.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o lines.o lines.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o list.o list.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o ocr0.o ocr0.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o ocr0n.o ocr0n.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o ocr1.o ocr1.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o otsu.o otsu.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o output.o output.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o pixel.o pixel.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o unicode.o unicode.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o remove.o remove.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o pnm.o pnm.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o pcx.o pcx.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o progress.o progress.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o job.o job.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -I../include -DHAVE_CONFIG_H -c -o gocr.o gocr.c
ocr0.c: In function 'testumlaut':
ocr0.c:369:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  369 |              if (getpixel(box1->p,xl+i,yu+i)< cs) break; i3=i;
      |              ^~
ocr0.c:369:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  369 |              if (getpixel(box1->p,xl+i,yu+i)< cs) break; i3=i;
      |                                                          ^~
ocr0.c:368:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  368 |            for (i=0;i<xr-xl+1 && i<yl-yu+1;i++)
      |            ^~~
ocr0.c:369:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  369 |              if (getpixel(box1->p,xl+i,yu+i)< cs) break; i3=i;
      |                                                          ^~
ocr0.c:371:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  371 |              if (getpixel(box1->p,xl+i,yu+i)>=cs) break; i3=i-i3;
      |              ^~
ocr0.c:371:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  371 |              if (getpixel(box1->p,xl+i,yu+i)>=cs) break; i3=i-i3;
      |                                                          ^~
ocr0.c:370:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  370 |            for (   ;i<xr-xl+1 && i<yl-yu+1;i++)
      |            ^~~
ocr0.c:371:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  371 |              if (getpixel(box1->p,xl+i,yu+i)>=cs) break; i3=i-i3;
      |                                                          ^~
ocr0.c:373:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  373 |              if (getpixel(box1->p,xr-i,yu+i)< cs) break; i4=i;
      |              ^~
ocr0.c:373:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  373 |              if (getpixel(box1->p,xr-i,yu+i)< cs) break; i4=i;
      |                                                          ^~
ocr0.c:372:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  372 |            for (i=0;i<xr-xl+1 && i<yl-yu+1;i++)
      |            ^~~
ocr0.c:373:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  373 |              if (getpixel(box1->p,xr-i,yu+i)< cs) break; i4=i;
      |                                                          ^~
ocr0.c:375:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  375 |              if (getpixel(box1->p,xr-i,yu+i)>=cs) break; i4=i-i4;
      |              ^~
ocr0.c:375:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  375 |              if (getpixel(box1->p,xr-i,yu+i)>=cs) break; i4=i-i4;
      |                                                          ^~
ocr0.c:374:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  374 |            for (   ;i<xr-xl+1 && i<yl-yu+1;i++)
      |            ^~~
ocr0.c:375:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  375 |              if (getpixel(box1->p,xr-i,yu+i)>=cs) break; i4=i-i4;
      |                                                          ^~
ocr0.c:235:13: warning: variable 'x' set but not used [-Wunused-but-set-variable]
  235 |    int  r,y,x,x0,x1,y0,y1,dx,dy,m1,m2,m3,
      |             ^
database.c: In function 'load_db':
database.c:60:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   60 |     if (!fgets(s1, Blen, f1)) break; line++;
      |     ^~
database.c:60:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   60 |     if (!fgets(s1, Blen, f1)) break; line++;
      |                                      ^~~~
database.c: In function 'out_env':
database.c:233:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  233 |     if (x0<0) x0=0;  if (x1>=b->x) x1=b->x-1;
      |     ^~
database.c:233:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  233 |     if (x0<0) x0=0;  if (x1>=b->x) x1=b->x-1;
      |                      ^~
database.c:234:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  234 |     if (y0<0) y0=0;  if (y1>=b->y) y1=b->y-1;
      |     ^~
database.c:234:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  234 |     if (y0<0) y0=0;  if (y1>=b->y) y1=b->y-1;
      |                      ^~
output.c: In function 'out_b':
output.c:36:27: warning: variable 'n1' set but not used [-Wunused-but-set-variable]
   36 |   int x,y,x2,y2,yy0,tx,ty,n1,i;
      |                           ^~
ocr0.c: In function 'ocr0_eE':
ocr0.c:648:22: warning: variable 'i4' set but not used [-Wunused-but-set-variable]
  648 |      int i1, i2, i3, i4, i5;  // line derivation + corners
      |                      ^~
output.c: In function 'debug_img':
output.c:210:13: warning: variable 'ic' set but not used [-Wunused-but-set-variable]
  210 |   int x, y, ic, dx, i, j, col;
      |             ^~
remove.c: In function 'smooth_borders':
remove.c:206:33: warning: variable 'dy' set but not used [-Wunused-but-set-variable]
  206 |     int ii=0,x,y,x0,x1,y0,y1,dx,dy,cs,i0,i1,i2,i3,i4,n1,n2,
      |                                 ^~
remove.c:206:30: warning: variable 'dx' set but not used [-Wunused-but-set-variable]
  206 |     int ii=0,x,y,x0,x1,y0,y1,dx,dy,cs,i0,i1,i2,i3,i4,n1,n2,
      |                              ^~
pgm2asc.c: In function 'my_strchr':
pgm2asc.c:276:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  276 |       if (s1) return 1; break;
      |       ^~
pgm2asc.c:276:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  276 |       if (s1) return 1; break;
      |                         ^~~~~
ocr0.c:648:14: warning: variable 'i2' set but not used [-Wunused-but-set-variable]
  648 |      int i1, i2, i3, i4, i5;  // line derivation + corners
      |              ^~
pnm.c: In function 'readpgm':
pnm.c:340:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  340 |     if (f1) fclose(f1); f1=NULL; return(-1);
      |     ^~
pnm.c:340:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  340 |     if (f1) fclose(f1); f1=NULL; return(-1);
      |                         ^~
database.c: In function 'ocr_db':
database.c:417:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  417 |     fgets((char *)buf,200,stdin); /* including \n=0x0a */
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocr0.c: In function 'ocr0_n':
ocr0.c:788:12: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  788 |            if( i>y ) y=i; if( i<y/2 ) break;
      |            ^~
ocr0.c:788:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  788 |            if( i>y ) y=i; if( i<y/2 ) break;
      |                           ^~
ocr0.c:741:28: warning: variable 'handwritten' set but not used [-Wunused-but-set-variable]
  741 |    int  i,j,d,x,y,i1,i2,i3,handwritten=0,
      |                            ^~~~~~~~~~~
ocr0.c:741:25: warning: variable 'i3' set but not used [-Wunused-but-set-variable]
  741 |    int  i,j,d,x,y,i1,i2,i3,handwritten=0,
      |                         ^~
ocr0n.c: In function 'ocr0n':
ocr0n.c:1037:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1037 |         if( num_cross(dx/2,dx-1,y,y,bp,cs) > 1 ) i++; if( i>dy/8 ) break;
      |         ^~
ocr0n.c:1037:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1037 |         if( num_cross(dx/2,dx-1,y,y,bp,cs) > 1 ) i++; if( i>dy/8 ) break;
      |                                                       ^~
ocr0.c: In function 'ocr0_M':
ocr0n.c:1118:12: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1118 |            if (j>x) x=j; i=y; if (i1>i2) i2=i1; }
      |            ^~
ocr0.c:856:15: warning: variable 'i0' set but not used [-Wunused-but-set-variable]
  856 |    int  d,x,y,i0,i1,i2,i3,i4,i5,i6,i7,t1,
      |               ^~
ocr0n.c:1118:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1118 |            if (j>x) x=j; i=y; if (i1>i2) i2=i1; }
      |                          ^
ocr0n.c:1144:12: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1144 |            if (j>x) x=j; i=y; }
      |            ^~
ocr0n.c:1144:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1144 |            if (j>x) x=j; i=y; }
      |                          ^
ocr0n.c:1163:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1163 |         if( j<i ) i=j; if( j>i+dx/16 ) break;
      |         ^~
ocr0n.c:1163:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1163 |         if( j<i ) i=j; if( j>i+dx/16 ) break;
      |                        ^~
pgm2asc.c: In function 'measure_pitch':
pgm2asc.c:1607:12: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
 1607 |        || 0*(box2->x0 - pre2->x1 >  2*mono_em_min+mono_em_min/8  // min. 2 ex between
      |           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1608 |           && box2->x0 - pre2->x1 <= 3*mono_em_max-mono_em_max/4  // ?????? ToDo oebb
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1609 | //        && box2->x1 - pre2->x0 >  4*mono_em_max)) { // crossing 3 em border?
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1610 |           && box2->x1 - pre2->x0 >  4*mono_em_min+mono_em_min/2)) { // 2018-09 rnd80
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocr0n.c:1168:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1168 |         if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if( i>dy/8 ) break;
      |         ^~
ocr0n.c:1168:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1168 |         if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if( i>dy/8 ) break;
      |                                                    ^~
ocr0.c: In function 'ocr0_h':
ocr0.c:1179:10: warning: variable 'i1' set but not used [-Wunused-but-set-variable]
 1179 |      int i1, i2, i3, i4, i5, i6, i7, i8;  // line derivation + corners
      |          ^~
ocr0.c: In function 'ocr0_H':
ocr0.c:1327:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1327 |       if (i<=dx/2) Break; ya-=y0;
      |       ^~
ocr0.c:1327:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1327 |       if (i<=dx/2) Break; ya-=y0;
      |                           ^~
ocr0n.c:1316:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1316 |         if (i<x-dx/16-1) break; if (i>x) x=i;
      |         ^~
ocr0n.c:1316:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1316 |         if (i<x-dx/16-1) break; if (i>x) x=i;
      |                                 ^~
ocr0.c: In function 'ocr0_k':
ocr0.c:1479:41: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1479 |       i =loop(bp,dx-1,dy-1,dx,cs,0,LE); if(i>dx/2)
      |                                         ^~
ocr0.c:1480:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1480 |       i =loop(bp,dx-1,dy-2,dx,cs,0,LE); if(i>dx/2) Break;
      |                                         ^~
ocr0.c:1399:37: warning: variable 'i7' set but not used [-Wunused-but-set-variable]
 1399 |      int d, i1, i2, i3, i4, i5, i6, i7, i8;  // line derivation + corners
      |                                     ^~
ocr0.c: In function 'ocr0_K':
ocr0.c:1565:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1565 |       if(j<=i  ) Break; i=j;
      |       ^~
ocr0.c:1565:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1565 |       if(j<=i  ) Break; i=j;
      |                         ^
ocr0.c:1514:13: warning: variable 'i1' set but not used [-Wunused-but-set-variable]
 1514 |    int  i,j,i1,i2,d,x,y,hchar=sdata->hchar,gchar=sdata->gchar,
      |             ^~
ocr0.c: In function 'ocr0_f':
ocr0.c:1658:41: warning: variable 'i8' set but not used [-Wunused-but-set-variable]
 1658 |      int d, i1, i2, i3, i4, i5, i6, i7, i8, i9;  // line derivation + corners
      |                                         ^~
ocr0.c:1658:33: warning: variable 'i6' set but not used [-Wunused-but-set-variable]
 1658 |      int d, i1, i2, i3, i4, i5, i6, i7, i8, i9;  // line derivation + corners
      |                                 ^~
ocr0.c:1658:25: warning: variable 'i4' set but not used [-Wunused-but-set-variable]
 1658 |      int d, i1, i2, i3, i4, i5, i6, i7, i8, i9;  // line derivation + corners
      |                         ^~
ocr0n.c:47:18: warning: variable 'yb' set but not used [-Wunused-but-set-variable]
   47 |    int  xa,xb,ya,yb, /* tmp-vars */
      |                  ^~
ocr0n.c:47:15: warning: variable 'ya' set but not used [-Wunused-but-set-variable]
   47 |    int  xa,xb,ya,yb, /* tmp-vars */
      |               ^~
ocr0.c: In function 'ocr0_dD':
ocr0.c:2087:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 2087 |         if (dx<6) Break; ad=95*ad/100; } // glued j above 8 (4x6 sample)
      |         ^~
ocr0.c:2087:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 2087 |         if (dx<6) Break; ad=95*ad/100; } // glued j above 8 (4x6 sample)
      |                          ^~
ocr0.c: In function 'ocr0_uU':
ocr0.c:2208:18: warning: unused variable 'i4' [-Wunused-variable]
 2208 |    int  i1,i2,i3,i4,i,j,d,x,y,hchar=sdata->hchar,gchar=sdata->gchar,
      |                  ^~
ocr0.c:2208:15: warning: unused variable 'i3' [-Wunused-variable]
 2208 |    int  i1,i2,i3,i4,i,j,d,x,y,hchar=sdata->hchar,gchar=sdata->gchar,
      |               ^~
ocr0.c: In function 'ocr0_micro':
ocr0.c:2318:19: warning: variable 'i2' set but not used [-Wunused-but-set-variable]
 2318 |    int  i,j,d,x,y,i2,hchar=sdata->hchar,gchar=sdata->gchar,
      |                   ^~
ocr0.c: In function 'ocr0_m':
ocr0.c:2768:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 2768 |          if( i>y ) y=i; if( 2*i<y ) Break;
      |          ^~
ocr0.c:2768:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 2768 |          if( i>y ) y=i; if( 2*i<y ) Break;
      |                         ^~
ocr0.c: In function 'ocr0_tT':
ocr0.c:2940:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 2940 |         if (dy<10) Break; ad=98*ad/100;
      |         ^~
ocr0.c:2940:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 2940 |         if (dy<10) Break; ad=98*ad/100;
      |                           ^~
ocr0.c:2943:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 2943 |         if (dy<10) Break; ad=98*ad/100;
      |         ^~
ocr0.c:2943:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 2943 |         if (dy<10) Break; ad=98*ad/100;
      |                           ^~
ocr0.c:2812:26: warning: variable 'i6' set but not used [-Wunused-but-set-variable]
 2812 |    int  i,i1,i2,i3,i4,i5,i6, j,d,d2,x,y,yb,
      |                          ^~
ocr0.c:2812:23: warning: variable 'i5' set but not used [-Wunused-but-set-variable]
 2812 |    int  i,i1,i2,i3,i4,i5,i6, j,d,d2,x,y,yb,
      |                       ^~
ocr0.c: In function 'ocr0_sS':
ocr0.c:3115:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 3115 |       if (x>3*dx/4) Break; if(x>dx/2) { ad=98*ad/100; MSG({})}
      |       ^~
ocr0.c:3115:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 3115 |       if (x>3*dx/4) Break; if(x>dx/2) { ad=98*ad/100; MSG({})}
      |                            ^~
ocr0.c: In function 'ocr0_gG':
ocr0.c:3228:39: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 3228 |       y =loop(bp,dx/16,0,dy,cs,0,DO); if(y<=dy/8)
      |                                       ^~
ocr0.c:3229:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 3229 |       y+=loop(bp,dx/16,y,dy,cs,1,DO); if(16*y>=15*dy) Break; // ~B
      |                                       ^~
database.c: In function 'store_db':
database.c:168:3: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
  168 |   strncpy(s2+i2,s3,strlen(s3)); s2[i2+strlen(s3)]=0;
      |   ^
database.c:168:3: note: length computed here
  168 |   strncpy(s2+i2,s3,strlen(s3)); s2[i2+strlen(s3)]=0;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocr0.c: In function 'ocr0_xX':
ocr0.c:3420:27: warning: variable 'i4' set but not used [-Wunused-but-set-variable]
 3420 |       int ld, i1, i2, i3, i4;  // lien derivation, 4 inner edges
      |                           ^~
ocr0.c: In function 'ocr0_wW':
ocr0.c:3920:57: warning: variable 'handwritten' set but not used [-Wunused-but-set-variable]
 3920 |    int  i,j,d,x,y,hchar=sdata->hchar,gchar=sdata->gchar,handwritten=0,
      |                                                         ^~~~~~~~~~~
ocr0.c: In function 'ocr0_aA':
ocr0.c:4091:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4091 |       if( y==ya+dy/2 ) Break; i1=y;
      |       ^~
ocr0.c:4091:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4091 |       if( y==ya+dy/2 ) Break; i1=y;
      |                               ^~
ocr0.c:4109:46: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4109 |        i4=num_cross(i2,x,y      ,dy-1,bp,cs);if(i4<1 || i4>2)
      |                                              ^~
ocr0.c:4110:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4110 |        i4=num_cross(i2,x,y+dy/16,dy-1,bp,cs);if(i4<1 || i4>2) break;
      |                                              ^~
ocr0.c:4134:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4134 |         if(i1+i2>i3+dx/16) break; if( i1+12<i3 ) i3=i1+i2;
      |         ^~
ocr0.c:4134:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4134 |         if(i1+i2>i3+dx/16) break; if( i1+12<i3 ) i3=i1+i2;
      |                                   ^~
ocr0.c:4359:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4359 |       if( y==dy/2 ) break; i1=y;
      |       ^~
ocr0.c:4359:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4359 |       if( y==dy/2 ) break; i1=y;
      |                            ^~
ocr0.c:4375:46: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4375 |        i4=num_cross(i2,x,y      ,dy-1,bp,cs);if(i4<1 || i4>2)
      |                                              ^~
ocr0.c:4376:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4376 |        i4=num_cross(i2,x,y+dy/16,dy-1,bp,cs);if(i4<1 || i4>2) break;
      |                                              ^~
ocr0.c:4402:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4402 |         if(i1+i2>i3+dx/16) break; if( i1+12<i3 ) i3=i1+i2;
      |         ^~
ocr0.c:4402:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4402 |         if(i1+i2>i3+dx/16) break; if( i1+12<i3 ) i3=i1+i2;
      |                                   ^~
ocr0.c: In function 'ocr0_cC':
ocr0.c:4433:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4433 |       if( y==y0+3*dy/4 ) Break; i1=y;   // i1: upper end of right gap
      |       ^~
ocr0.c:4433:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4433 |       if( y==y0+3*dy/4 ) Break; i1=y;   // i1: upper end of right gap
      |                                 ^~
ocr0.c:4451:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4451 |       if( y-i1<dy/6 ) Break; i2=y-1;   // i2: lower end of right gap
      |       ^~
ocr0.c:4451:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4451 |       if( y-i1<dy/6 ) Break; i2=y-1;   // i2: lower end of right gap
      |                              ^~
ocr0.c: In function 'ocr0_oO':
ocr0.c:4952:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 4952 |         if( i<x ) break; x=i;
      |         ^~
ocr0.c:4952:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 4952 |         if( i<x ) break; x=i;
      |                          ^
ocr0.c: In function 'ocr0_qQ':
ocr0.c:5192:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 5192 |       if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if(i>dy/8) Break; // ~a \it a
      |       ^~
ocr0.c:5192:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 5192 |       if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if(i>dy/8) Break; // ~a \it a
      |                                                  ^~
ocr0.c:5191:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 5191 |       for(i=0,y=0;y<dy/2;y++)
      |       ^~~
ocr0.c:5192:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
 5192 |       if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if(i>dy/8) Break; // ~a \it a
      |                                                  ^~
ocr0.c: In function 'ocr0_brackets':
ocr0.c:5814:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 5814 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |       ^~
ocr0.c:5814:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 5814 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |                                  ^~
ocr0.c:5820:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 5820 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |       ^~
ocr0.c:5820:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 5820 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |                                  ^~
ocr0.c:5841:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 5841 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |       ^~
ocr0.c:5841:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 5841 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |                                  ^~
ocr0.c:5851:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 5851 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |       ^~
ocr0.c:5851:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 5851 |       if (d >sq(1024/4)) Break;  ad=ad-d*100/sq(1024);
      |                                  ^~
ocr0.c: In function 'ocr0p9':
ocr0.c:6197:8: warning: variable 'dbg' set but not used [-Wunused-but-set-variable]
 6197 |        dbg[9]={0,0,0,0,0,0,0,0,0},  /* debugging space */
      |        ^~~
ocr0.c: In function 'ocr0px':
ocr0.c:6689:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 6689 |         if( j>10*dx/16 ) i=0; if ( j>j1 ) j1=j; }
      |         ^~
ocr0.c:6689:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 6689 |         if( j>10*dx/16 ) i=0; if ( j>j1 ) j1=j; }
      |                               ^~
ocr0.c:6708:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 6708 |       if( i<=dx/2 ) break; ya-=y0;
      |       ^~
ocr0.c:6708:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 6708 |       if( i<=dx/2 ) break; ya-=y0;
      |                            ^~
ocr0.c:6660:17: warning: variable 'i4' set but not used [-Wunused-but-set-variable]
 6660 |        i1,i2,i3,i4,j1,cs=sdata->cs;     /* tmp-vars */
      |                 ^~
barcode.c: In function 'detect_barcode':
barcode.c:1637:21: warning: 'box2' may be used uninitialized [-Wmaybe-uninitialized]
 1637 |           bits[i]=((getpixel(box2->p,
      |                     ^~~~~~~~~~~~~~~~~
 1638 |             x03 + ((i%x)*dx3 + dx3/2) / x,
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1639 |             y03 + ((i/x)*dy3 + dy3/2) / y) < job->cfg.cs) ? 1 : 0);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barcode.c:964:15: note: 'box2' was declared here
  964 |   struct box *box2, *box3;
      |               ^~~~
# make it conform to ld --as-needed
#gcc -o gocr -lm -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1 gocr.o ./libPgm2asc.a -lnetpbm 
gcc -o gocr -lm -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1 gocr.o pgm2asc.o box.o database.o detect.o barcode.o lines.o list.o ocr0.o ocr0n.o ocr1.o otsu.o output.o pixel.o unicode.o remove.o pnm.o pcx.o progress.o job.o -lnetpbm 
# if test -r gocr; then cp gocr ../bin; fi
make[1]: Leaving directory '/builddir/build/BUILD/gocr-0.52/src'
 --- for help do:          make help
 --- for documentation do: make doc
 --- for examples do:      make examples
 --- for testing do:       bin/gocr_chk.sh [testbasedir?=.]
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.LBnoTb
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
++ dirname /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
+ cd gocr-0.52
+ rm -rf /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
+ make install DESTDIR=/builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64 'INSTALL=install -p'
make -C src install
make[1]: Entering directory '/builddir/build/BUILD/gocr-0.52/src'
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
Makefile:70: warning: ignoring prerequisites on suffix rule definition
#install -p -d /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/bin /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64 /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
install -p -d /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/bin
install -p gocr /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/bin
install -p ../bin/gocr.tcl   /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/bin  # better X11/bin?
if test -f libPgm2asc.a; then\
 install -p libPgm2asc.a /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64;\
 install -p libPgm2asc.0.52.so /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64;\
 install -p libPgm2asc.so /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64;\
fi
# ToDo: not sure that the link will be installed correctly
#install -p  /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
make[1]: Leaving directory '/builddir/build/BUILD/gocr-0.52/src'
make -C man install
make[1]: Entering directory '/builddir/build/BUILD/gocr-0.52/man'
install -p -d /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/man/man1
install -p -m 0644 ../man/man1/gocr.1 /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/man/man1
make[1]: Leaving directory '/builddir/build/BUILD/gocr-0.52/man'
# following steps are not needed for end users, but cost dependencies
# therefore removed in 0.48
# make -C doc install
# make -C examples install
# make -C frontend install
+ rm -rf /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/lib64 /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/include
+ rm /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64//usr/bin/gocr.tcl
+ /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 0.52-1.oc9 --unique-debug-suffix -0.52-1.oc9.x86_64 --unique-debug-src-base gocr-0.52-1.oc9.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/gocr-0.52
extracting debug info from /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/bin/gocr
1868 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/OpenCloudOS/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs
+ /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0
+ /usr/lib/rpm/OpenCloudOS/brp-python-hardlink
Processing files: gocr-0.52-1.oc9.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.EQe036
+ umask 022
+ cd /builddir/build/BUILD
+ cd gocr-0.52
+ DOCDIR=/builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr AUTHORS /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr BUGS /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr CREDITS /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr doc/gocr.html /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr gpl.html /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr HISTORY /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr README /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr REMARK.txt /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr REVIEW /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr TODO /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ cp -pr READMEde.txt /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64/usr/share/doc/gocr
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: gocr = 0.52-1.oc9 gocr(x86-64) = 0.52-1.oc9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libm.so.6()(64bit) rtld(GNU_HASH)
Processing files: gocr-debugsource-0.52-1.oc9.x86_64
Provides: gocr-debugsource = 0.52-1.oc9 gocr-debugsource(x86-64) = 0.52-1.oc9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: gocr-debuginfo-0.52-1.oc9.x86_64
Provides: debuginfo(build-id) = fe639ceb7ea70d61d1d635e378e4bc615f27e4dd gocr-debuginfo = 0.52-1.oc9 gocr-debuginfo(x86-64) = 0.52-1.oc9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: gocr-debugsource(x86-64) = 0.52-1.oc9
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/gocr-0.52-1.oc9.x86_64
Wrote: /builddir/build/RPMS/gocr-0.52-1.oc9.x86_64.rpm
Wrote: /builddir/build/RPMS/gocr-debugsource-0.52-1.oc9.x86_64.rpm
Wrote: /builddir/build/RPMS/gocr-debuginfo-0.52-1.oc9.x86_64.rpm
RPM build warnings:
    %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
Child return code was: 0