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.
ucs were named isalpha
etc. which are also functions (which are really macros) in ctypes.
They were renamed so that they
would not collide with the macros in ctypes.h.
std::isalpha etc. changed in to isalpha.std::getc changed to std::fgetc
since getc is a macro.HAVE_GETOPT_H in the file main.cc.
bzcat ocrad-0.8.tar.bz2 | tar -xvf -
gunzip -c ocrad_0_8_old_gcc_or_no_getopt.patch.gz | patch -p0
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) |