[MPICH] Application Link Error when using mpich2-1.0.6 in smpd mode
Robert Latham
robl at mcs.anl.gov
Tue Oct 16 12:27:41 CDT 2007
On Tue, Oct 16, 2007 at 10:02:11AM -0600, Cavey, Lester wrote:
> If I build mpich2-1.0.6 configured in regular mode (non-smpd), my linux
> application links and runs fine. If I build mpich2-1.0.6 configured in
> smpd mode, I get the following error message when I try to link my
> application:
> "/usr/local/mpich2-1.0.6/lib//libmpich.a(smpd_hash.o): In function
> `smpd_hash':
> smpd_hash.c:(.text+0x4b): undefined reference to `MD5'"
It looks like a missing '-lssl' or '-lcrypt'.
>
> I get the error when I build mpich2-1.0.6 either like this:
> ./configure --with-pm=smpd --prefix=/usr/local/mpich2
Looks like a bug in our configure script (didn't add the necessary
libraries to mpicc or mpif90).
> Any ideas on how I can take care of the undefined reference?
If you add -lssl or -lcrypt to your link step, and the error goes
away, then we know what we need to fix.
==rob
--
Rob Latham
Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA B29D F333 664A 4280 315B
More information about the mpich-discuss
mailing list