There is no stub entry for MPI_Cart_rank in STUBS as of the lammps-26Apr07 release.
--Craig
Just posted a patch for this ...
Steve