<div>Hi ,</div>
<div>I am using mpich 1.2.7, and installing mpi flavor of Globus 4.0.1 in order to install mpich G2.</div>
<div>I am using via as device in mpid</div>
<div> </div>
<div>The installation is successful but for globus the libraries should be shared so to make all the libraries shared I am configuring mpich with </div>
<div>"--enable-sharedlib" flag.</div>
<div> </div>
<div>After this there was no problem regarding the installation but i was not getting "libmpich.so" inside "lib/" directory or 'lib/shared/" </div>
<div> </div>
<div>-> I think the reason was "inside mpid/via in Makefile only ar crl is used that is creating libmpich.a only"</div>
<div> </div>
<div>so i manualy created the libmpich.so by passing all the object files using gcc</div>
<div> </div>
<div>gcc -shared .......(all .o files ).......-o lib/libmpich.so</div>
<div> </div>
<div>the libmpich.so got created successfully </div>
<div> </div>
<div>But when i try to compile any of the C program using bin/mpicc i get following error :</div>
<div> </div>
<div>"Could not link a C program with MPI libraries"</div>
<div> </div>
<div>For cheking the library link i run </div>
<div> </div>
<div>$ make linktest<br> </div>
<div>and the output is as follows"</div>
<div> </div>
<div>make overtake<br>/home/hmpi/mpich-1.2.7/mpich-1.2.7/bin/mpicc -o overtake overtake.o test.o<br>/home/hmpi/mpich-1.2.7/mpich-1.2.7/lib/libmpich.so: undefined reference to `getarg_'<br>/home/hmpi/mpich-1.2.7/mpich-1.2.7
/lib/libmpich.so: undefined reference to `f__xargc'<br>collect2: ld returned 1 exit status<br>make[2]: *** [overtake] Error 1<br>make[1]: [linktest] Error 2 (ignored)<br>Could not link a C program with MPI libraries<br>make[1]: *** [linktest] Error 1
<br>make: *** [linktest] Error 2<br> </div>
<div> </div>
<div>I am not able to understand why its not able to link with libmpich.so </div>
<div> </div>
<div>Please tell me the exact way How i can create shared libraries "libmpich.so" & use them ?</div>
<div> </div>
<div>Please guide me</div>
<div> </div>
<div>Thanks</div>
<div>-Vikas Bhardwaj </div>
<div> </div>
<div> </div>
<div> </div>