<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>It works. Thanks a lot.<br><br><div><hr id="stopSpelling">Date: Thu, 26 Sep 2013 11:40:48 -0700<br>Subject: Re: [petsc-users] compiling error after re-installation with --download_hypre<br>From: knepley@gmail.com<br>To: pengxwang@hotmail.com<br>CC: petsc-users@mcs.anl.gov<br><br><div dir="ltr">On Thu, Sep 26, 2013 at 11:34 AM, Roc Wang <span dir="ltr"><<a href="mailto:pengxwang@hotmail.com" target="_blank">pengxwang@hotmail.com</a>></span> wrote:<br><div class="ecxgmail_extra"><div class="ecxgmail_quote">
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Hello,<br><br>   I re-installed the petsc with --download_hypre and --download_ml.  The two test examples ex19 and ex5f run successfully. <br><br>   I added the libraries link in the makefile like:<br>
 <br> -Wl,-rpath,${PETSC_DIR}/${PETSC_ARCH}/lib -L${PETSC_DIR}/${PETSC_ARCH}/lib -lHYPRE -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lmpichcxx -lstdc++ \<br>    -Wl,-rpath,${PETSC_DIR}/${PETSC_ARCH}/lib -L${PETSC_DIR}/${PETSC_ARCH}/lib -lml -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lmpichcxx -lstdc++ \<br>
<br>  However, the compiling errors occurred:<br><br> /home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(init.o): In function `PMPI_Init':<br>/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/init.c:106: undefined reference to `MPL_env2str'<br>
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/init.c:132: undefined reference to `MPL_env2bool'<br>/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(initthread.o): In function `PMPI_Init_thread':<br>
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/mpi/init/initthread.c:535: undefined reference to `MPL_env2bool'<br>/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(param_vals.o): In function `MPIR_Param_init_params':<br>
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:249: undefined reference to `MPL_env2int'<br>/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:251: undefined reference to `MPL_env2int'<br>
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:254: undefined reference to `MPL_env2int'<br>/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:256: undefined reference to `MPL_env2int'<br>
/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:259: undefined reference to `MPL_env2int'<br>/home/pwang/soft/petsc-3.3-p6/arch-linux2-c-debug/lib/libmpich.a(param_vals.o):/home/pwang/soft/petsc-3.3-p6/externalpackages/mpich2-1.4.1p1/src/util/param/param_vals.c:261: more undefined references to `MPL_env2int' follow<br>
...  ...<br><br>It seems there is some library link I missed in the makefile. What should I add? Why it didn't happen before I re-install? Thanks.<br></div></div></blockquote></div><br clear="all"><div>make getlinklibs</div>
<div><br></div><div>   Matt</div><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener
</div></div></div>                                      </div></body>
</html>