Thank you for the reply.  It turned out the linker tried to use petsc installed by Ubuntu, not the one I built.  After removing the one installed by Ubuntu, the error disappeared.<br><br>K. Lee.<br><br><div class="gmail_quote">
On Mon, Aug 13, 2012 at 10:39 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This report has incomplete info [you listed errors - but not the link command]<br>
<br>
does 'make test' work for your PETSc build? If so you should check<br>
with libmesh folks about libmesh issues.<br>
<span class="HOEnZb"><font color="#888888"><br>
satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, 13 Aug 2012, Kyunghoon Lee wrote:<br>
<br>
> Hi all,<br>
><br>
> I got the following linking error when I was building libmesh:<br>
><br>
> /homehome//aeronova/aeronova/<br>
> Development/Developmentlocal//localshare//sharelibmesh//libmesh/liblib//x86_64-unknownx86_64--unknown-linux-linux-gnu_dbg/gnu_dbg/libmesh.so:libmesh.so<br>
> undefined : referenceundefined  referenceto ` to `MatSetType(_p_Mat*, char<br>
> const*)'MatSetType(_p_Mat*, char const*)'<br>
> /<br>
> /home/aeronovahome//Developmentaeronova/Development//locallocal//share/libmeshshare//lib/libmesh/x86_64-unknownlib/-x86_64-unknownlinux--linuxgnu_dbg/-libmesh.so:<br>
> gnu_dbg/undefined referencelibmesh.so: to `<br>
> undefinedEPSSetTolerances(_p_EPS*, double, int)'<br>
>  reference/ home/toaeronova/ `DevelopmentEPSSetTolerances(_p_EPS*, double,<br>
> int)'/local/<br>
> /share/libmeshhome//libaeronova//x86_64Development/-local/unknownshare/libmesh-linux/lib/-x86_64-gnu_dbg/libmesh.sounknown-:<br>
> linux-gnu_dbgundefined/libmesh.so reference : toundefined reference `<br>
> VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode, ScatterMode)to'<br>
>  `/VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode,<br>
> ScatterMode)home/'aeronova<br>
> /Development/home//localaeronova/Development//localshare//libmeshshare//liblibmesh/x86_64/lib/-unknownx86_64-unknown--linuxlinux--gnu_dbg/gnu_dbglibmesh.so:<br>
> /libmesh.soundefined: undefined reference reference  to<br>
> to`SNESGetLinearSolveIterations(_p_SNES*, int*) '<br>
> `SNESGetLinearSolveIterations(_p_SNES*, int*)/home'<br>
><br>
> It looks like I'm missing some libraries in my petsc, but I'm not sure how<br>
> to resolve the link problem.  My petsc configuration is<br>
><br>
> ./configure --download-mpich=1 --download-blacs=1 --download-parmetis=1<br>
> --download-scalapack=1 --download-mumps=1 --download-umfpack=1<br>
> --with-clanguage=C++<br>
><br>
<br>
</div></div></blockquote></div><br>