Missing references to libpetsc.so in libpetscksp.so

Satish Balay balay at mcs.anl.gov
Sat Nov 25 00:25:36 CST 2006


You might want to check the code for
PetscInitialize_DynamicLibraries() in src/sys/dll/reg.c

Part of the issue is - on Mac libpetscksp.dylib is linked in with
libpetsc.dylib [otherwise the dylibs can't be created] ..etc - but not
on linux.

Satish

On Sat, 25 Nov 2006, Kishor Gawande wrote:

> Hi,
> 
> I can load libpetsc.so successfully using dlopen, however after that while
> loading libpetscksp.so using dlopen I get following error:
> 
> kishor at tepal:~/snapshot/externalpackages/petsc-2.3.2-p3$~/samples/pet
> [start_test]
> [PetscDLLTest.c] dlopen("libpetsc.so", RTLD_NOW):
> Successful
> [PetscDLLTest.c] Unable to open library:
> /home/kishor/snapshot/externalpackages/petsc-2.3.2-p3/lib/linux-gnu-cxx-debug/libpetscksp.so:
> undefined symbol: _stageLog
> 
> This work successfully on my MAC Os X but it  is not working on Ubuntu Linux
> 6.06
> 
> It seems the symbol is _stageLog is defined in libpetsc.so library but
> libpetsck.so is not able to
> locate it.
> 
> I have checked dependacy using ldd, it does not show any reference to
> libpetsc.so, however it does show references to libmpich.so and other files.
> Also I have edited the binary libpetscksp.so and it also does not include any
> references to libpetsc.so and other libpetsc library files.
> 
> kishor at tepal:~/snapshot/externalpackages/petsc-2.3.2-p3/lib/linux-gnu-cxx-debug$
> ldd libpetscksp.so
>        linux-gate.so.1 =>  (0xffffe000)
>        libmpich.so =>
> /home/kishor/snapshot/externalpackages/petsc-2.3.2-p3/externalpackages/mpich2-1.0.4p1/linux-gnu-cxx-debug/lib/libmpich.so
> (0xb7baf000)
>        libnsl.so.1 =>
> /lib/../lib/tls/i686/cmov/libnsl.so.1 (0xb7b9a000)
>        librt.so.1 =>
> /lib/../lib/tls/i686/cmov/librt.so.1 (0xb7b92000)
>        libdl.so.2 =>
> /lib/../lib/tls/i686/cmov/libdl.so.2 (0xb7b8e000)
>        libgcc_s.so.1 => /lib/../lib/libgcc_s.so.1
> (0xb7b84000)
>        libgfortran.so.0 =>
> /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libgfortran.so.0
> (0xb7b2b000)
>        libm.so.6 =>
> /lib/../lib/tls/i686/cmov/libm.so.6 (0xb7b09000)
>        libstdc++.so.6 =>
> /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libstdc++.so.6
> (0xb7a34000)
>        libc.so.6 =>
> /lib/../lib/tls/i686/cmov/libc.so.6 (0xb7904000)
>        libpthread.so.0 =>
> /lib/../lib/tls/i686/cmov/libpthread.so.0 (0xb78f2000)
>        /lib/ld-linux.so.2 (0x80000000)
> kishor at tepal:~/snapshot/externalpackages/petsc-2.3.2-p3/lib/linux-gnu-cxx-debug$
> 
> These are the PETSC configure Options: --with-cc=gcc
> --download-f-blas-lapack=1 --download-mpich=1
> --with-shared --with-dynamic --with-python
> --with-clanguage=C++ --with-c-support
> 
> Any clue what is wrong here?
> 
> Thanks,
> _KishorG
> 




More information about the petsc-users mailing list