Bug 140033 - digikam and two release of libpng --- linker issue?
Summary: digikam and two release of libpng --- linker issue?
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-PNG (show other bugs)
Version: 0.9.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-13 21:29 UTC by gio_ors_67
Modified: 2022-01-18 16:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gio_ors_67 2007-01-13 21:29:51 UTC
Version:           0.9.0 (using KDE KDE 3.5.4)
Installed from:    SuSE RPMs
Compiler:          gcc version 3.3.4 on x86_64 
OS:                Linux

On my "old" suse box I could not compile digikam (libpng too old), so i've installed an updated release of libpng:

./configure --prefix=/usr/local --libdir=/usr/local/lib64/ --mandir=/usr/local/man/ --with-libpng-compat=no
make && make install

old libpng release (mandatory....) is installed in /usr/lib64/

digikam compiles without errors with:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig/
make -f Makefile.cvs

./configure  --with-qt-dir=/usr/lib64/qt3/ --with-qt-includes=/usr/lib64/qt3/include --with-qt-libraries=/usr/lib64/qt3/lib64/ --enable-mt --prefix=/opt/kde3/ --enable-libsuffix=64 --with-extra-libs=/usr/local/lib64/ --with-png-dir=/usr/local/lib64/ --with-png-includes=/usr/local/include/

make && make install

digikam starts without either splash screen or toolbar icons, so I guess it does not call correct release of libpng

ldd /opt/kde3/bin/digikam | grep -i libpng

        libpng12.so.0 => /usr/local/lib64/libpng12.so.0 (0x00002b947121f000)	<- this one seems Ok
        libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002b94733f8000)		<- this one is undoubtely not Ok
Comment 1 gio_ors_67 2007-01-13 22:32:28 UTC
...sorry, source is tar.gz NOT RPMs
Comment 2 Arnd Baecker 2007-07-01 12:09:26 UTC
Have a look at
http://www.digikam.org/?q=download/svn
in particular the script start_digikam.sh
where the necessary paths are set.
This might cure the problem.Otherwise go through the steps
given under "Install digiKam in your Home Directory".
Please report back about success/failure, 
I am optimistic that this bug can be closed quickly...
Comment 3 Achim Bohnet 2007-07-02 00:27:45 UTC
That ldd lists libpng is twice does not necessarily
mean that digikam itself links against 2 libpng version.
ldd lists share libs needed by digikam and the share libs
(recursively).

Please try

objdump -p /your/path/to/digikam | grep NEEDED | grep libpng
objdump -p /your/path/to/lib/libdigikam.so | grep NEEDED | grep libpng

If the libpng.so.3 is not listed, I suspect that one of
the libraries listed as NEEDED is linked against the old libpng.
rebuild it with the new png library.

Achim
Comment 4 Arnd Baecker 2007-07-13 10:26:13 UTC
gio_ors_67, please give an update on this bug
(Digikam 0.9.2 is out).

Thanks a lot in advance, Arnd
Comment 5 Arnd Baecker 2007-08-21 22:10:37 UTC
Without further feedback, nothing can be done here.
Therefore closing this bug.
Don't hesitate to re-open with updated information.

Best, Arnd