[Paraview] dlopen question
Mattijs Janssens
m.janssens at opencfd.co.uk
Mon Sep 22 05:22:49 EDT 2008
In our code we use dlopen with RTLD_LAZY|RTLD_GLOBAL to optionally load
additional libraries.
We noticed that this gives problems in the paraview reader. The same code
which happily loads when running from the command line now gives undefined
symbols when used through the reader.
E.g. the additional library libAdditional uses a symbol aaa from library
libmain which is already a dependency of my application. (so 'ldd
application' shows up libmain). My application does a dlopen of libAdditional
and it all works fine.
Now when invoked in a reader (the reader itself I assume is loaded using
dlopen into Paraview?) the dlopen of libAdditional complains about unresolved
symbol aaa. Funnily enough it works if we first do a dlopen of libmain and
then of libAdditional.
Is this related to the flags passed into dlopen? To complicate the matter,
from what we heard, the problem does not appear on OSX.
Regards,
Mattijs
--
Mattijs Janssens
OpenCFD Ltd.
9 Albert Road,
Caversham,
Reading RG4 7AN.
Tel: +44 (0)118 9471030
Email: M.Janssens at OpenCFD.co.uk
URL: http://www.OpenCFD.co.uk
More information about the ParaView
mailing list