<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
{margin-top:0;
margin-bottom:0}
p
{margin-top:0;
margin-bottom:0}
p
{margin-top:0;
margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I got gcc and gfortran on the cluster updated to Red Hat 4.4.6-3. This solves the problem.<br>
<br>
Many Thanks,<br>
Adam<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF174964"><font color="#000000" face="Tahoma" size="2"><b>From:</b> petsc-users-bounces@mcs.anl.gov [petsc-users-bounces@mcs.anl.gov] on behalf of Adam Stanier [adam.stanier-2@postgrad.manchester.ac.uk]<br>
<b>Sent:</b> 24 July 2012 13:11<br>
<b>To:</b> PETSc users list<br>
<b>Subject:</b> Re: [petsc-users] PETSC_NULL_FUNCTION in petsc-3.2-p7/src/snes/examples/tests/ex14f.F<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Satish,<br>
<br>
Thanks for the quick reply, I had corrected that bug in 3.3 you mentioned before getting the linking bug. I have also tried the same configure line (and also a simple configure: ./configure --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack --download-mpich)
on another cluster and got the same problem. I think the problem may be related to gfortran version Red Hat 4.1.2 (there is 4.1.2-14 on one cluster and 4.1.2-46 on another cluster). Another petsc user found ex14f to compile fine with red hat 4.4.6 gfortran.<br>
<br>
The only reference to PETSC_NULL_FUNCTION I can find is where it is declared with External PETSC_NULL_FUNCTION in petscsys.h. Is this set to zero somewhere, or is it just expected to return zero if it is not found?<br>
<br>
Thanks,<br>
Adam<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div id="divRpF719206" style="direction: ltr;"><font color="#000000" face="Tahoma" size="2"><b>From:</b> petsc-users-bounces@mcs.anl.gov [petsc-users-bounces@mcs.anl.gov] on behalf of Adam Stanier [adam.stanier-2@postgrad.manchester.ac.uk]<br>
<b>Sent:</b> 23 July 2012 18:03<br>
<b>To:</b> petsc-users@mcs.anl.gov<br>
<b>Subject:</b> Re: [petsc-users] PETSC_NULL_FUNCTION in petsc-3.2-p7/src/snes/examples/tests/ex14f.F<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Hello, <br>
<br>
I am getting the following error message when linking a code:<br>
<br>
../solver_3.2/libsel.a(p2_snes.o): In function `__p2_snes_mod__p2_snes_error':<br>
/home/stanier/hifi/solver_3.2/p2_snes.F:450: undefined reference to `__local_mod__petsc_null_function'<br>
collect2: ld returned 1 exit status<br>
<br>
I have noticed that src/snes/examples/tests/ex14f.F also gives an error message related to PETSC_NULL_FUNCTION, and make ex14f fails to make<br>
<br>
ex14f.o: In function `MAIN__':<br>
/home/stanier/soft/petsc-3.2-p7/src/snes/examples/tests/ex14f.F:182: undefined reference to `__petscmod__petsc_null_function'<br>
collect2: ld returned 1 exit status<br>
<br>
Also, have checked this with another PETSc user with version 3.2-p7 and version 3.3- the same error occurs.
<br>
<br>
My configure options are <font size="2"><span style="font-size: 10pt;">./configure --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack --download-mpich --download-blacs --download-scalapack --download-parmetis --download-mumps --download-superlu --download-hypre<br>
<br>
I was wondering if anyone else has had this problem, and knew how to get around it.<br>
<br>
Thanks,<br>
Adam<br>
<br>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>