symbol lookup error in each application linking KDE4Support

Martin Graesslin mgraesslin at kde.org
Mon Jul 29 09:04:20 UTC 2013


On Saturday 27 July 2013 12:47:53 you wrote:
> On Wednesday 24 July 2013 12:01:07 Martin Graesslin wrote:
> > Hi,
> > 
> > when I try to run binaries which links KDE4Support (e.g. kdeinit5) I get
> > the following symbol lookup error:
> > 
> > [...]lib/x86_64-linux-gnu/libKDE4Support.so.5: undefined symbol:
> > kde_kiosk_admin
> > 
> > kde_kiosk_admin is used in kstandarddirs.cpp as an extern bool. It's
> > defined and exported in kdecore/kernel/kcomponentdata.cpp.
> 
> The export macro was wrong though, I fixed it to KDECORE_EXPORT
> (just now, in 6118d590c7b2d50bf1881a6a379e0bcc75836a3c).
> 
> I'm not sure it fixes it, but can you try again?
Just did a clean recompile - did not fix it.
> 
> If the problem is still there, check this:
> 
> $ nm -D libkdecore.so | grep kde_kiosk_admin
> 000000000023be40 B kde_kiosk_admin
> $ objdump -t libkdecore.so | grep kde_kiosk_admin
> 000000000023be40 g     O .bss   0000000000000001             
> kde_kiosk_admin
> 
> ('g' = global = exported)
looks, the same, but it seems like KDE4Support picks up parts from KDE4 
instead of KF5:
ldd /home/martin/kf5/lib/x86_64-linux-gnu/libKDE4Support.so.5 | grep kdecore
        libkdecore.so.5 => /home/martin/kde/lib/libkdecore.so.5 
(0x00007f3d5b232000)

And there it is not exported, so I think the root problem is that KDE4 is 
picked instead of KF5.

Cheers
Martin


More information about the Kde-frameworks-devel mailing list