Back to pi

Patches for ocrad-0.8

What the patches are for

ocrad_0_8_old_gcc_or_no_getopt.patch.gz
The above patch makes it possible to compile ocrad version 0.8 on a system with an older version of the gcc-compiler (e.g. 2.96) or a system that lacks gnu getopts.

Description of changes

Instructions

  1. Download ocrad version 0.8 from http://www.gnu.org/software/ocrad/ocrad.html
  2. Download the patch above
  3. Unpack the archive by running bzcat ocrad-0.8.tar.bz2 | tar -xvf -
  4. Apply the patches by running gunzip -c ocrad_0_8_old_gcc_or_no_getopt.patch.gz | patch -p0
  5. Follow the compile options for ocrad

Working systems

The following table contains the systems on which ocrad-0.8 with the patches has been succesfully compiled. The ones marked with an asterisk have also been verified to produce the same output as the original with a rather large input file supplied to ocrad -l 2

* i486-linux gcc version 3.3.4 (Debian 1:3.3.4-3)
* i386-pc-solaris2.8 gcc version 3.3
* sparc-sun-solaris2.8 gcc version 2.95.3 20010315 (release)
i386-freebsd4.9 gcc version 2.95.4 20020320 [FreeBSD]
* i386-redhat-linux gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
* sparc-openbsd3.3 gcc version 2.95.3 20010125 (prerelease, propolice)
* i386-redhat-linux gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)