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:
So it appears that the gcc in /usr/local/lib (which is gcc 4.3.4) has the required library. However, I have tried setting the following environment and then running configure & make without success: