On 08/27/08 15:09, Andrey Hristov wrote:
Hi,
I am developing a new extension for OOBase, a driver which doesn't use
odbc/jdbc to connect to MySQL. I was developing on the base of
DEV300_m12 and my extension used to build and load. I recently switched
to dev300_m28 sources for building and OOO300_m3 installed from
opensuse's build factory. I checked with old sources if they build and
load with m3 and they did not succeed.
First try : loading mysql-native.oxt
(http://hristov.com/tmp/mysql-native.oxt)
[EMAIL PROTECTED]:~> unopkg add mysql-native.oxt --verbose
Copying: mysql-native.oxt
Enabling: mysql-native.oxt
Enabling: mysqlc.so
ERROR: (com.sun.star.deployment.DeploymentException) { { Message = "An
error occurred while enabling: mysqlc.so", Context =
(com.sun.star.uno.XInterface) @8101740 }, Cause = (any) {
(com.sun.star.registry.CannotRegisterImplementationException) { {
Message = "loading component library failed:
file:///home/andrey/.ooo-2.0/user/uno_packages/cache/uno_packages/Knxtdh_/mysql-native.oxt/mysqlc.so",
Context = (com.sun.star.uno.XInterface) @0 } } } }
rollback...
rollback finished.
An error occurred while enabling: mysqlc.so
------------------------
[EMAIL PROTECTED]:~> ldd tmp7/mysqlc.so
ldd: warning: you do not have execution permission for `tmp7/mysqlc.so'
linux-gate.so.1 => (0xffffe000)
libmysqlclient.so.15 => /home/andrey/tmp7/libmysqlclient.so.15
(0xb7e6f000)
libz.so.1 => /lib/libz.so.1 (0xb7e3e000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7e08000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb7df1000)
libcppdrivermanager.so => /usr/local/lib/libcppdrivermanager.so
(0xb7deb000)
libuno_cppu.so.3 => not found
libvos3gcc3.so => not found
libuno_sal.so.3 => not found
libuno_salhelpergcc3.so.3 => not found
libdbtoolsli.so => not found
libcomphelp4gcc3.so => not found
libutlli.so => not found
libuno_cppuhelpergcc3.so.3 => not found
libdl.so.2 => /lib/libdl.so.2 (0xb7de6000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7dcd000)
libm.so.6 => /lib/libm.so.6 (0xb7da7000)
libstlport_gcc.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7cb7000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ca9000)
libc.so.6 => /lib/libc.so.6 (0xb7b66000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0xb7b5a000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0xb7b54000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb7b41000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7b3d000)
/lib/ld-linux.so.2 (0xb8091000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7a88000)
libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb7a5d000)
OOo guarantees that an (extension) native UNO component library is
loaded in an environment where the public URE libraries (libuno_sal.so.3
etc.) are "just there." However, any OOo-internal libraries cannot be
used from an extension (as they do not offer a stable interface):
$ LD_LIBRARY_PATH=/opt/openoffice.org/ure/lib ldd tmp7/mysqlc.so | grep
'not found'
libvos3gcc3.so => not found
libdbtoolsli.so => not found
libcomphelp4gcc3.so => not found
libutlli.so => not found
[EMAIL PROTECTED]:~> source /media/disk/oo.org-m28/LinuxX86Env.Set.sh
[...]
[EMAIL PROTECTED]:~> unopkg add mysql-native.oxt --verbose
ERROR: cannot initialize UCB!
Exception details:
(com.sun.star.uno.RuntimeException) { { Message = "cannot initialize
UCB!", Context = (com.sun.star.uno.XInterface) @0 } }
unopkg failed.
Calling any code from an OOo installation from within an OOo build
environment (with LD_LIBRARY_PATH etc. set) may lead to strange things.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]