[kde-freebsd] kio_file still have error while trying to get loaded

Tsampros Leonidas ltsampros at upnet.gr
Sat Jun 16 14:16:13 CEST 2007


On Sat, Jun 16, 2007 at 12:39:50PM +0100, Bartosz Fabianowski wrote:
> I hit a very similar problem last August when first trying to compile 
> KDE4 on FreeBSD. I added lots of debug outputs and found out that the 
> problem was as follows:
> 
> * Some Qt3/KDE 3 libraries have the same names and version numbers as 
> their Qt4/KDE4 counterparts
> 
> * /usr/local/lib, where Qt3 and KDE 3 reside, is near the front of ldd's 
> search path and these libraries get located first
> 
> * Thus, the dynamic linker links a Qt4-based library against Qt3
> 
> I remember we had a discussion on kde-buildsystem at kde.org about getting 
> CMake to set up -rpath correctly to work around this issue, but then 
> real life got in the way and I never got time to finish investigating 
> this. Maybe you are being bitten by a similar thing?
> 
> - Bartosz

I seem to get exactly the same problems on my recently built KDE4
system. Here is some example ldd output on the kfmclient residing
inside my devel's user home directory:

/home/devel/kde/bin/kfmclient:
        libkdeinit4_kfmclient.so => /home/devel/kde/lib/libkdeinit4_kfmclient.so (0x2807a000)
        libkparts.so.3 => /usr/local/lib/libkparts.so.3 (0x28094000)
        libkio.so.6 => /usr/local/lib/libkio.so.6 (0x280d7000)
        libkdeui.so.6 => /usr/local/lib/libkdeui.so.6 (0x283f9000)
        libQtSvg.so.4 => /home/devel/qt-copy/lib/libQtSvg.so.4 (0x286a6000)
        libSM.so.6 => /usr/local/lib/libSM.so.6 (0x2870e000)
        libICE.so.6 => /usr/local/lib/libICE.so.6 (0x28716000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x2872c000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0x28812000)
        libXft.so.2 => /usr/local/lib/libXft.so.2 (0x2881f000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x2882f000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x28832000)
        libXpm.so.4 => /usr/local/lib/libXpm.so.4 (0x28837000)
        libkdefx.so.6 => /usr/local/lib/libkdefx.so.6 (0x28846000)
        libQtGui.so.4 => /home/devel/qt-copy/lib/libQtGui.so.4 (0x2886d000)
        libXtst.so.6 => /usr/local/lib/libXtst.so.6 (0x29128000)
        libstreamanalyzer.so.0 => /home/devel/kde/lib/libstreamanalyzer.so.0 (0x29136000)
        libstreams.so.0 => /home/devel/kde/lib/libstreams.so.0 (0x291de000)
        libsolid.so.5 => /home/devel/kde/lib/libsolid.so.5 (0x2921f000)
        libkdesu.so.6 => /usr/local/lib/libkdesu.so.6 (0x292d1000)
        libkdecore.so.6 => /usr/local/lib/libkdecore.so.6 (0x292ea000)
        libQtCore.so.4 => /home/devel/qt-copy/lib/libQtCore.so.4 (0x29518000)
        libpthread.so.2 => /lib/libpthread.so.2 (0x296e3000)
        libQtNetwork.so.4 => /home/devel/qt-copy/lib/libQtNetwork.so.4 (0x29708000)
        libQtDBus.so.4 => /home/devel/qt-copy/lib/libQtDBus.so.4 (0x297bd000)
        libutil.so.5 => /lib/libutil.so.5 (0x2983a000)
        libz.so.3 => /lib/libz.so.3 (0x29846000)
        libbz2.so.2 => /usr/lib/libbz2.so.2 (0x29857000)
        libfam.so.0 => /usr/local/lib/libfam.so.0 (0x29868000)
        libQtXml.so.4 => /home/devel/qt-copy/lib/libQtXml.so.4 (0x29870000)
        libQt3Support.so.4 => /home/devel/qt-copy/lib/libQt3Support.so.4 (0x298e0000)
        libkde3support.so.5 => /home/devel/kde/lib/libkde3support.so.5 (0x29be0000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x29cf8000)
        libm.so.4 => /lib/libm.so.4 (0x29dc3000)
        libc.so.6 => /lib/libc.so.6 (0x29dd9000)
        libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 (0x29ebe000)
        libkwalletclient.so.1 => /usr/local/lib/libkwalletclient.so.1 (0x29edb000)
        librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x29eeb000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x29ef3000)
        libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x29f1b000)
        libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x29f7f000)
        libqt-mt.so.3 => /usr/local/lib/libqt-mt.so.3 (0x29f87000)
        libpng.so.5 => /usr/local/lib/libpng.so.5 (0x2a612000)
        libXi.so.6 => /usr/local/lib/libXi.so.6 (0x2a634000)
        libXrandr.so.2 => /usr/local/lib/libXrandr.so.2 (0x2a63c000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0x2a642000)
        libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0x2a647000)
        libXinerama.so.1 => /usr/local/lib/libXinerama.so.1 (0x2a650000)
        libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x2a653000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2a75f000)
        libDCOP.so.6 => /usr/local/lib/libDCOP.so.6 (0x2a84c000)
        libart_lgpl_2.so.5 => /usr/local/lib/libart_lgpl_2.so.5 (0x2a87d000)
        libidn.so.16 => /usr/local/lib/libidn.so.16 (0x2a891000)
        libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0x2a8c1000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x2a8c5000)
        libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x2a94f000)
        libQtSql.so.4 => /home/devel/qt-copy/lib/libQtSql.so.4 (0x2a984000)
        libkdecore.so.5 => /home/devel/kde/lib/libkdecore.so.5 (0x2a9c2000)
        libkdeui.so.5 => /home/devel/kde/lib/libkdeui.so.5 (0x2ac49000)
        libkio.so.5 => /home/devel/kde/lib/libkio.so.5 (0x2b085000)
        libkparts.so.5 => /home/devel/kde/lib/libkparts.so.5 (0x2b3fa000)
        libkdefx.so.5 => /home/devel/kde/lib/libkdefx.so.5 (0x2b451000)
        libkdesu.so.5 => /home/devel/kde/lib/libkdesu.so.5 (0x2b495000)
        libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x2b4ad000)
        libaudio.so.2 => /usr/local/lib/libaudio.so.2 (0x2b4cb000)
        libXt.so.6 => /usr/local/lib/libXt.so.6 (0x2b4de000)
        libmng.so.1 => /usr/local/lib/libmng.so.1 (0x2b529000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2b57f000)
        liblcms.so.1 => /usr/local/lib/liblcms.so.1 (0x2b588000)

As you can see there are two references on libkio, libkdeui, libkparts
etc (one for the lib residing in /usr/local and one for the
/home/deve/kde version).

I hope I'll find a workaround for this.


More information about the kde-freebsd mailing list