Issue 53850 - Openoffice 1.9.122-125 fails to start when executed by ldap user.
Summary: Openoffice 1.9.122-125 fails to start when executed by ldap user.
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m122
Hardware: PC (x86_64) Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: Martin Hollmichel
QA Contact: issues@framework
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2005-08-27 17:18 UTC by twsnnva
Modified: 2006-07-01 22:21 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description twsnnva 2005-08-27 17:18:17 UTC
Under Ubuntu 5.04, when executing soffice.bin as an ldap user openoffice.org
fails to start with the following error:
./soffice.bin: relocation error: /lib/libnss_ldap.so.2: Undefined symbol:
__db185_open_4002 

When using a local user account (and removing /lib/libnss_ldap.so.2),
openoffice.org starts up as expected. As there are no "official" debian packages
available, I've converted the official RPMs to DEBs using alien, and also tried
using the copies available here:
ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/ 

Openoffice 1.1.4 does not exhibit this behavior nor do any other applications.
Comment 1 caolanm 2005-08-27 19:26:08 UTC
without knowing the problem (issue 52774 sounds similiar-ish) I suspect that the
problem is a mismatch between the system libdb and the OOo libdb copy
Comment 2 Olaf Felka 2005-08-29 10:03:34 UTC
of: Changing version and adding CCs
Comment 3 nospam4obr 2005-08-29 13:05:17 UTC
Workaround: remove from the /opt/openoffice.org1.9.125/program/libdb-4.2.so 

Long version: I see 2 possible solutions for this:

1. add /lib to the rpath of the OOo libraries to prefer a libdb installed in the
system. The LD_LIBRARY_PATH would additionally require us to move libdb into a
subfolder. The drawback would be that this would require additional testing with
each libdb version.

2. replace the code that needs libdb.so with something less problematic.

obr @ kr: you mentioned a potential 3rd solution with a special linker switch,
but I forgot it's name :(.
Comment 4 caolanm 2005-08-29 13:11:43 UTC
*** Issue 52774 has been marked as a duplicate of this issue. ***
Comment 5 twsnnva 2005-08-29 14:52:00 UTC
Workaround: remove from the /opt/openoffice.org1.9.125/program/libdb-4.2.so

Indeed, this does solve the problem. Thanks for the quick fix.
Comment 6 nospam4obr 2005-08-29 15:00:34 UTC
Thanks for confirming the workaround. Unfortunatly it is still a workaround, not
a solution :(.
Comment 7 kay.ramme 2005-08-29 17:21:48 UTC
Hi Ollie,

what I meant was generally linking with -Bgroup, ensuring that symbols only get
resolved from a specific set (namely ours) of shared libraries. This should
allow us to load both, the system provided libdb and the one comming with OOo,
while ensuring that the right symbols get selected. This is not as strong as
-Bdirect but better than nothing :-)

Taking a concrete look, it seems that libdb-* is currently only used by
libucpchelp1.so and deployment680li.uno.so, which are both uno components.
Changing the uno servicemanager to load the libraries with RTLD_GROUP might
already be enough, to fix the current problem. (change to be applied in
cppuhelper/source/shlib.cxx)

Hope that helps

Kay
Comment 8 janvlug 2005-08-30 08:57:33 UTC
The workaround does *not* work for me on Fedora Core 3.
I removed both:
/opt/openoffice.org1.9.122/program/libdb-4.2.so
/opt/openoffice.org1.9.122/program/libdb-4.2.so.1
I still experiece the problem as described in issue 52774.
Comment 9 janvlug 2005-08-31 12:25:29 UTC
I could not add comments at issue 52774, therefore my comment here:
I installed the new OpenOffice beta2 1.9.125 on Fedora Core 3.
The problem still exists. Where can I download the debugging rpm's?
Comment 10 hwoarang 2006-06-28 12:43:10 UTC
No more information for months.

Reporter, can you reproduce the problem with a newer version? like
(http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/2.0.3-RC7/)

Thank you.

Hwoarang
Comment 11 hwoarang 2006-07-01 22:21:14 UTC
Closing this one for now.

Reporter, feel free to reopen it if necessary.

Thank you.

Hwoarang
Comment 12 hwoarang 2006-07-01 22:21:30 UTC
.