Is your test C program directly linked against the secondary
shared library? If so then it may be loading the library and
masking this error as compared to running xpcshell.
[EMAIL PROTECTED] wrote:
> Hi,
>
> I've expanded the ~/mozilla/xpcom/sample example and created a component that
> uses another shared library (.so) in which some functions can be found. When
> I create a C test program that creates an instance of the component (just
> like in the sample example), all goes well. The component does what i want.
> BUT, when i'm using javascript (in the xpcshell) to create an instance it
> goes well up to the point that functions are called that are defined in the
> "other" shared library (which is not a component or whatever). The error it
> comes up with is something like:
>
> ./xpcshell: error in loading shared libraries:
> /export/home/mozilla/dist/bin/components/libcompmathlib.so: undefined symbol:
> vonneumann_init
>
> No what's the matter i'm asking myself... No problem to create an instance of
> the component using a simple C program like the sample nsTestSample.cpp file,
> but hughe (it appears so) problem using javascript to create an instance that
> works (the instance is there all right, it just doesn't work).
>
> Has anyone got an idea what's going on...
>
> cheers,
>
> Roger