There are two versions of gcc
installed on this RHEL4 system. Octave 3.2.2 will not build with the
gcc version already installed (3.4.6), so I
installed gcc 4.3.4. The rather long output from 'make' prior to the gendoc error indicates that 'make' is using the gcc 4.3.4 library for everything up to the point at which it stops on gendoc.
Nevertheless, here is information about the two installations: