On Wednesday 2003-12-10 11:05 -0500, Ramin Dousti wrote:
> I have an application using xpcom (libxpcom.so) to create some components.
> During the compilation, all is fine but at runtime the application generates
> tons of "referenced symbol not found".
> 
> I've noticed that the symbols being looked for are there but with a
> different prefix assigned to them by g++. Can someone please shed some
> light onto this problem? Here is an example of such an error:
> 
> 1[2d380]: nsNativeComponentLoader: 
> SelfRegisterDll(/usr/local/myapp/components/liblocale.so) Load FAILED with 
> error:ld.so.1: ./myapp: fatal: relocation error: file 
> /usr/local/myapp/components/liblocale.so: symbol 
> _ZNK12nsAutoString6SizeOfEP16nsISizeOfHandlerPj: referenced symbol not found
> 1[2d380]: nsNativeComponentLoader: Autoregistration FAILED for 
> "/usr/local/myapp/components/liblocale.so". Skipping...

It sounds like you might have compiled XPCOM without DEBUG defined but
then compiled your library with DEBUG defined, and then called
DEBUG-only methods.  (Are you actually using nsISizeOfHandler?  It's
been removed.  Or is something else dragging it in automatically?)

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to