[MPICH] Application Link Error when using mpich2-1.0.6 in smpd mode

Cavey, Lester Lester.Cavey at ATK.COM
Tue Oct 16 15:31:08 CDT 2007


I don't have a libssl or a libcrypt on my linux machine, even when I
build mpich2-1.0.6 configured in smpd mode.  Are you saying that you all
will add that feature, and then I will be able to link to those
libraries?  If so, could you let me know when that feature gets added?

Thanks,
Lester
 
-----Original Message-----
From: Robert Latham [mailto:robl at mcs.anl.gov] 
Sent: Tuesday, October 16, 2007 1:28 PM
To: Cavey, Lester
Cc: mpich-discuss at mcs.anl.gov
Subject: Re: [MPICH] Application Link Error when using mpich2-1.0.6 in
smpd mode

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