<div>Hi,</div>
<div> </div>
<div>   First I built mpich2-1.3.1 following the directions in install.pdf doc with --enable-shared </div>
<div>and the built and install complete successfully but I got the following error when building </div>
<div>my application:</div>
<div> </div>
<div><font color="#ff0000"><em>relocation R_X86_64_32 against `a local symbol&#39; can not be used when making a shared object, </em></font></div>
<div><font color="#ff0000"><font face="Courier New">recompile with -fPIC</font><br></font></div>
<div>   Then I built mpich2-1.3.1 with CFLAGS=-fPIC and --enable-shared and the build and install </div>
<div>again comlpete successfully. (This is on RHEL 5). However when I try to build my application </div>
<div>using the resulting mpicxx compilers and link to the installed mpich libraries (my application </div>
<div>is written in C++), this time I got the following error:</div>
<div> </div>
<div><em><font color="#ff0000"> relocation R_X86_64_32 against `mpifcmb2_&#39; can not be used when making a shared object; </font></em></div>
<div><em><font color="#ff0000">recompile with -fPIC</font></em></div>
<div> </div>
<div>Greatly appreciate any advice on a fix to the this issue. Let me know if I can provide more </div>
<div>info.</div>
<div> </div>
<div>Thanks!</div>
<div>--Sunil.</div>
<div> </div>
<div> </div>