xutuan Zhang wrote:
Dear Stephan,
Thanks for your email..
--- Stephan Bergmann <[EMAIL PROTECTED]> wrote:
.
.
.
Are you trying this with OOo/SDK 1.1.4 or with OOo/SDK 1.9.113?
IIRC, libraries built with the 1.1.x SDK failed to record their NEEDS
for the UNO base libraries (sal etc.) and the libstdc++.so. That
would
explain the ldd output. However, since those libraries are already
loaded when your library is loaded in, that would not explain the
problems you experience.
Yes.. you are right. I just added all the .so files I can find under
/opt/OpenOffice.org1.1.4/program to my linker's command line, and I
don't see any "undefined symbols" now. But my problem remains..i.e., I
get the following error:
***************************
pkgchk -v -f MyAddinPkg.zip
***************************
scanning uno packages from
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages
finished scanning uno packages.
balancing cache dir
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages/cache
revoking
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/MyAddinPkg.zip.1121429946/MyAddinPkg/MyAddin.uno.so
from registry
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages/cache/services.rdb:
ok.
inflating
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages/MyAddinPkg.zip
into directory
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages/cache/uno_packages/MyAddinPkg.zip.1121430051:
ok.
warning: registering
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/MyAddinPkg.zip.1121430051/MyAddinPkg/MyAddin.uno.so
into registry
file:///home/chatter/OpenOffice.org1.1.4/user/uno_packages/cache/services.rdb:
failed! (cannot register implementation: cannot get uno environments!)!
This error message suggests that your
componet_getImplementationEnvironment function is not implemented
properly. See the Devloper's Guide for details.
finished balancing cache dir.
***************************
With the 1.9.113 SDK, things should generally be better; a library
built
with that SDK should correctly record all its NEEDS (and, due to
-Zdefs
should even fail to link in case of missing dependencies), and
missing
symbols in the ldd output would point to real problems. Have you
already tried to build your component with the 1.9.113 SDK and to
then
deploy it into the 1.9.113 OOo?
-Stephan
Yes, I tried several versions of OOo 1.9.114/1.9.103/1.9.79 and serval
latest snapshot build of SDKs..and my problem is the same.
Do you have any suggestions/hints etc.?
Best Regards,
Xutuan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]