g77 is not searching the include paths, via
% g77 -c code.f -I/usr/include
Thus, fortran include statements of the form
include 'mpif.h' ! the lam package header
fail. However, if the full path is typed in the fortran source file:
then g77 does include the file.
Fixed in gcc-g77-2.96-53