<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Hi Matthieu,<br>
<br>
Please let us know the compilers an versions you are using, as
well as a minimal code demonstrating the issue.<br>
<br>
Best,<br>
Antonio<br>
<br>
<br>
On 01/18/2014 07:44 AM, Matthieu Dorier wrote:<br>
</div>
<blockquote
cite="mid:1397725590.3598975.1390052652850.JavaMail.root@irisa.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">Hi,
<div><br>
</div>
<div>I've overwritten some MPI_* functions in a C library
(typically MPI_Init and MPI_Finalize). When I link a C program
with this library using gcc, the overwritten symbols are
called correctly. However when using a fortran program, it
does not work: the original functions are called. When I do
"nm myprog" I see that MPI_Init and PMPI_Init have the same
address, which is not the case with a C program. I also tried
to compile the fortran program into a .o file using gfortran,
then use gcc to link it to mpich, but I get the same result?
Any workaround?</div>
<div>Thanks!<br>
<br>
<div><span name="x"></span><font size="2"><font size="3">Matthieu
Dorier<br>
</font>PhD student at ENS Rennes<br>
<a moz-do-not-send="true"
href="http://people.irisa.fr/Matthieu.Dorier">http://people.irisa.fr/Matthieu.Dorier</a></font><span
name="x"></span><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/~apenya">www.mcs.anl.gov/~apenya</a></pre>
</body>
</html>