Hi,
I just wanted to add here that I faced very similar problems with parallel feap installation using petsc-3.9.2. Those problems were also resolved by following the above discussion. Thanks.
Here is a summary of to do tasks for someone who is facing similar problems:
1. create module pfeapc.F to replace common block pfeapc.h.
module pfeapc
# include <petsc/finclude/petscksp.h>
use petscksp
Vec :: rhs, sol, xvec, diag
Vec :: yvec, zvec
Vec :: Mdiag, Msqrt
Mat :: Kmat, Mmat, Pmat
KSP :: kspsol, ksp
end module pfeapc
2. find all subroutines where pfeapc.h header file is used.
grep -r 'pfeapc' ver85/
3. Add use pfeapc and comment include "pfeapc.h" in those subroutines.
4. Find all subroutines where mpi_start routine is used.
grep -r 'mpi_start' ver85/
5. Rename mpi_start to mpi_start_feap in all those subroutines as well as makefiles.
6. make install in parfeap directory.