FS#15480 - qt3 does not find libraries in /opt/qt/lib

Attached to Project: Arch Linux
Opened by Wim Herremans (herremaw) - Saturday, 11 July 2009, 11:14 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 11 July 2009, 18:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Applications that use qt3, fail to start because qt3 does not find the
shared libraries in /opt/qt/lib.

Here are two examples:

1. scribus: error while loading shared libraries: libqt-mt.so.3: cannot
open shared object file: No such file or directory

2. qt3config: error while loading shared libraries: libqt-mt.so.3: cannot
open shared object file: No such file or directory

These applications do work properly when started as follows:

env LD_LIBRARY_PATH=/opt/qt/lib scribus

and

env LD_LIBRARY_PATH=/opt/qt/lib qt3config


Additional info:
* package version(s)
qt3: version 3.3.8-11
qt4: version 4.5.2-1
scribus: version 1.3.3.13-1
qt3config is included in package qt
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 11 July 2009, 18:52 GMT
Reason for closing:  Not a bug
Additional comments about closing:  bug in third party package manager
Comment by Gerhard Brauer (GerBra) - Saturday, 11 July 2009, 12:06 GMT
/etc/ld.so.conf exists, so what the problem?
Comment by Wim Herremans (herremaw) - Saturday, 11 July 2009, 14:37 GMT
That file exists indeed. It contains:

#
# /etc/ld.so.conf
#

# End of file
/opt/qt/lib

But that does not solve the problem. I still need to set LD_LIBRARY_PATH explicitly.
Comment by Wim Herremans (herremaw) - Saturday, 11 July 2009, 14:49 GMT
Running ldconfig as root seems to solve the problem.

So, apparently, /etc/ld.so.conf was modified when qt3 was installed, but ldconfig was not run.
Comment by Pierre Schmitz (Pierre) - Saturday, 11 July 2009, 17:27 GMT
Afaik pacman does run ldconfig.
Comment by Wim Herremans (herremaw) - Saturday, 11 July 2009, 18:48 GMT
I have done the following experiment:

1. pacman --remove --cascade qt3

On my system, this removes qt3 and scribus and /etc/ld.so.conf becomes empty.

2. Run 'ldconfig'

3. pacman --sync --refresh scribus

This installs scribus and qt3.

Result: scribus runs without problem.

4. pacman --remove --cascade qt3

This removes qt3 and scribus and makes /etc/ld.so.conf empty

5. Run ldconfig

6. Install scribus using shaman instead of pacman.

Result: qt3 and scribus are installed and /etc/ld.so.conf gets an entry for /opt/qt/lib.

In this case, scribus does not start and reports: error while loading shared libraries: libqt-mt.so.3: cannot
open shared object file: No such file or directory

Conclusion: It looks like the problem is caused by using shaman. So, maybe this bug report should be rerouted to the
maintainer of shaman?
Comment by Pierre Schmitz (Pierre) - Saturday, 11 July 2009, 18:52 GMT
Sure, we can only support pacman here. But good catch.

Loading...