Compiling Error

Dear sir,

I received a problem when I try to compile latest version of lammps. I
have installed mpich and fftw. I have tried to compile g++3. The
following error came, how to solve this? any help...

estart.o -lmpich -lpthread -lfftw -o ../lmp_g++3
/usr/local/lib/libmpich.a(init.o)(.text+0x39): In function `PMPI_Init':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(init.o)(.text+0x73): In function `PMPI_Init':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(initthread.o)(.text+0x483): In function
`PMPI_Init_thread':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x12): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x30): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x4c): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x68): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x84): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0xa0): more undefined
references to `MPL_env2int' follow
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x3b0): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x3cc): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x3e8): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x404): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x420): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x43c): more undefined
references to `MPL_env2bool' follow
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x500): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x51c): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x538): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x554): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x570): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x58c): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x5a8): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x5c4): more undefined
references to `MPL_env2bool' follow
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x5e0): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x5fc): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x618): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x634): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x650): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x66c): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x688): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x6a4): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x6c0): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2str'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x6dc): more undefined
references to `MPL_env2str' follow
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x6f8): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x714): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x730): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x74c): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x768): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x784): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x7a0): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x7bc): more undefined
references to `MPL_env2bool' follow
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x813): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2range'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x832): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2range'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x851): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2range'
/usr/local/lib/libmpich.a(param_vals.o)(.text+0x870): In function
`MPIR_Param_init_params':
: undefined reference to `MPL_env2range'
/usr/local/lib/libmpich.a(mpid_init.o)(.text+0x37): In function `MPID_Init':
: undefined reference to `MPL_env2bool'
/usr/local/lib/libmpich.a(mpid_vc.o)(.text+0x9cb): In function
`MPIDI_Populate_vc_node_ids':
: undefined reference to `MPL_env2int'
/usr/local/lib/libmpich.a(mpid_vc.o)(.text+0x9db): In function
`MPIDI_Populate_vc_node_ids':
: undefined reference to `MPL_env2int'
collect2: ld returned 1 exit status
gmake[1]: *** [../lmp_g++3] Error 1

with regards
Angela

Looks like an MPI library problem, not a LAMMPS problem.

Steve