<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 9, 2016 at 12:01 PM, Marco Zocca <span dir="ltr"><<a href="mailto:zocca.marco@gmail.com" target="_blank">zocca.marco@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All the KSPConv* symbols are defined (`nm -u ...` shows the blank string):<br>
<br>
$ nm ${PETSC_DIR}/${PETSC_ARCH}/lib/libpetsc.3.7.2.dylib | grep KSPConv<br>
<br>
000000000110a652 T _KSPConvergedDefault<br>
0000000001109703 T _KSPConvergedDefaultCreate<br>
000000000110b934 T _KSPConvergedDefaultDestroy<br>
0000000001109a96 T _KSPConvergedDefaultSetUIRNorm<br>
000000000110a074 T _KSPConvergedDefaultSetUMIRNorm<br>
000000000106533d T _KSPConvergedLSQR<br>
0000000001743280 D _KSPConvergedReasons<br></blockquote><div><br></div><div>Then that symbol should be resolved by this library. It looks like you have a problem in your link line.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
000000000173d300 s _KSPConvergedReasons_Shifted<br>
000000000110920d T _KSPConvergedSkip<br>
0000000001224e94 t _SNES_TR_KSPConverged_Destroy<br>
00000000012248f6 t _SNES_TR_KSPConverged_Private<br>
<br>
<br>
<br>
>><br>
>> I encounter this bug when accessing the PETSc and SLEPc dynamic<br>
>> library under OSX:<br>
>><br>
>> user specified .o/.so/.DLL could not be loaded<br>
>> (dlopen($SLEPC_DIR/arch-darwin-c-debug/lib/libslepc.dylib, 5): Symbol<br>
>> not found: _KSPConvergedReasons<br>
>> Referenced from: $SLEPC_DIR/arch-darwin-c-debug/lib/libslepc.dylib<br>
>> Expected in: flat namespace<br>
>> in $SLEPC_DIR/arch-darwin-c-debug/lib/libslepc.dylib)<br>
>><br>
>> Surely, enough, `nm -u` shows _KSPConvergedReasons as an undefined<br>
>> symbol (see below).<br>
>> I don't understand the reason of this behaviour since I first compile<br>
>> with all the relevant PETSc and SLEPc headers and link against both<br>
>> .dylibs.<br>
>><br>
>> Thank you in advance for any pointers,<br>
>> Marco<br>
>><br>
>> -------<br>
>> $ nm -u libslepc.3.7.1.dylib | grep KSP<br>
><br>
><br>
> What do you get for<br>
><br>
> nm -u libpetsc.3.7.1.dylib | grep KSPConv<br>
><br>
> Matt<br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">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>