Hello Marco,

Unfortunately, something is not working totally correctly with Bacula 
installation with shared libraries.  I ran into a problem where everything 
was failing after your patch to update to use .so.5 instead of .so.1

What I ended up in my lib installation directory was stuff like:

libbacsql.la
lrwxrwxrwx 1 kern kern      18 2010-02-09 14:00 libbacsql.so -> 
libbacsql.so.5.0.0
lrwxrwxrwx 1 kern kern      18 2010-02-09 14:00 libbacsql.so.5 -> 
libbacsql.so.5.0.0
-rwxr-xr-- 1 kern kern  420362 2010-02-09 14:00 libbacsql.so.5.0.0

Plus:

libbacsql.so.1.0.0

which was left over from a prior install.  Now, one would normally think that 
everything would work correctly.  Here is a listing of what bacula-dir 
wanted:

ldd bacula-dir
        linux-gate.so.1 =>  (0xb7f1f000)
        libbacfind.so.5 => /opt/bacula/lib/libbacfind.so.5 (0xb7f10000)
        libbacsql.so.5 => /opt/bacula/lib/libbacsql.so.5 (0xb7eed000)
        libbacpy.so.5 => /opt/bacula/lib/libbacpy.so.5 (0xb7eea000)
        libbaccfg.so.5 => /opt/bacula/lib/libbaccfg.so.5 (0xb7ee3000)
        libbac.so.5 => /opt/bacula/lib/libbac.so.5 (0xb7e92000)
        libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15 (0xb7c99000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7c67000)
        libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7c4e000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7c39000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7c21000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7c1d000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7bdb000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 
(0xb7a99000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb79a5000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7980000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7975000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7826000)
        /lib/ld-linux.so.2 (0xb7f20000)

all that looks perfectly fine.  In principle, the extra libbacsql.so.1.0.0, 
should not harm anything, but when I execute bacula-dir, I get:

Starting the Bacula Director daemon
/opt/bacula/bin/bacula-dir: Symbol `uar_create_temp1' has different size in 
shared object, consider re-linking
/opt/bacula/bin/bacula-dir: Symbol `create_deltabs' has different size in 
shared object, consider re-linking
/opt/bacula/bin/bacula-dir: Symbol `uar_file' has different size in shared 
object, consider re-linking
/opt/bacula/bin/bacula-dir: Symbol `uar_create_temp' has different size in 
shared object, consider re-linking
/opt/bacula/bin/bacula-dir: Symbol `uar_jobid_fileindex_from_dir' has 
different size in shared object, consider re-linking

The solution is very simple in my case, just delete everything from lib 
(single file Bacula install) and redo make install, and all works, but on a 
standard system where .so files are installed in /usr/lib, it is much more 
complicated.

Do you have any idea what went wrong and how to correct it?

Best regards,

Kern

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to