mpich2 on ubuntu seems to require an explicit -lmpl to link with libmpl on my test system. The fix is obviously to include this library in MPI_LIBS.
Index: mdb/optionlists/ubuntu.cfg =================================================================== --- mdb/optionlists/ubuntu.cfg (revision 1828) +++ mdb/optionlists/ubuntu.cfg (working copy) @@ -79,6 +79,6 @@ MPI_DIR = /usr MPI_INC_DIRS = /usr/include/mpich2 MPI_LIB_DIRS = /usr/lib -MPI_LIBS = mpich fmpich +MPI_LIBS = mpich fmpich mpl PTHREADS = yes
This makes ubuntu.cfg almost a superset of the options set in debian.cfg. If we either have a willing maintainer for ubuntu.cfg or Frank is willing to take over ubuntu.cfg I'd think it might be a good idea to drop the explicit debian.cfg in favor of ubuntu.cfg since ubuntu is the more populer distribution.