#13 uic linking error with libkio.4

reproducible
closed
compiling (22)
5
2012-09-30
2002-06-18
No

"Plugins" compiles ok, but doesn't link with libkio (of KDE3):

plugin "about": generating implementation from
KwaveAboutDialogBase.ui
/usr/bin/uic-real: relocation error: /usr/lib/libkio.so.4: undefined
symbol:
unregisterStaticDeleter__7KGlobalP18KStaticDeleterBase

Discussion

  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    this does not look like a problem of Kwave. Your KDE build
    environment seems to be buggy/broken. Do other applications
    (that also use .ui files) compile/link?

    did you check for updates of the KDE packages?

    (the libkio.so.4.0.0 on my SuSE-7.3 system contains that symbol)

     
  • Jarno Elonen

    Jarno Elonen - 2002-06-19

    Logged In: YES
    user_id=312071

    nm -D /usr/lib/libkio.so.4 | grep registerStatic

    U registerStaticDeleter__7KGlobalP18KStaticDeleterBase       
    U unregisterStaticDeleter__7KGlobalP18KStaticDeleterBase
    

    The symbol seems to be there..
    Can you suggest, for testing, any small application that uses .ui files,
    too?

     
  • Jarno Elonen

    Jarno Elonen - 2002-06-19

    Logged In: YES
    user_id=312071

    This is really a weird problem. "plugins/amplifyfree" for example
    compiles ok:

    /usr/bin/uic -o AmplifyFreeDlg.uic.cpp -tr i18n -impl
    AmplifyFreeDlg.uih.h AmplifyFreeDlg.ui
    plugin "amplifyfree": compiling dialog 'AmplifyFreeDlg.uic.cpp'
    ...

    It seems that "about" and "selectrange" are the only plugins that don't
    compile. What's the difference between them and the others? The
    others don't use unregisterStaticDeleter?

     
  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    For tracking this down: please edit
    plugins/common/Makefile.am and remove the "@" characters at
    the start of all build rules. This should make visible what
    is really linked / compiled or built. Maybe this reveals
    something...

    The fact that only "about" and "selectrange" plugins are
    affected is very curious, I will try to find some differences...

     
  • Jarno Elonen

    Jarno Elonen - 2002-06-20

    Logged In: YES
    user_id=312071

    I've attached output of "make" for individual plugins below.

     
  • Thomas Eschenbacher

    Logged In: YES
    user_id=37622

    which uic do you use? In your first posting there was a
    message from /usr/bin/uic-real, later you sent output with
    /usr/bin/uic.

    does at least any of your KDE libraries contain that symbol?
    Please try the following:

    1. cd /usr/lib

    2. get a list of all filenames that contain or need the symbol:

    grep -rl
    unregisterStaticDeleter__7KGlobalP18KStaticDeleterBase *.so | nl

    1. get the index of the file that actually contains the symbol:

    grep -rl
    unregisterStaticDeleter7KGlobalP18KStaticDeleterBase *.so
    | xargs -n1 objdump -T | grep
    unregisterStaticDeleter
    7KGlobalP18KStaticDeleterBase | nl
    | grep .text

    on my system it is libkdecore.so.4.0.0

    But why does uic complain, it is not the linker? Can you
    please e-mail me the complete output of the make process,
    from "make -f Makefile.dist" up to the error message?

     
  • Jarno Elonen

    Jarno Elonen - 2002-06-20

    Logged In: YES
    user_id=312071

    uic-real and uic are actually the same program - "/usr/bin/uic" is just a
    wrapper:

    #!/bin/sh
    # Support script to properly set environments for uic to run
    export QTDIR=/usr/share/qt
    exec /usr/bin/uic-real "$@"

    ..and /usr/share/qt then contains a bunch of symlinks to correct
    places; a hack to satisfy both Debian filesystem policy and software
    that requires QTDIR.

    Version: "User Interface Compiler for Qt version 3.0.3"

    For 1. :
    1 ksmserver.so
    2 libkdecore.so
    3 libkdeprint.so
    4 libkdeui.so
    5 libkhtml.so
    6 libkio.so
    7 libkparts.so

    For 2.:
    libkdecore.so.4.0.0 on my system, too

    The log you asked for is attached as whole-build.log.bz2.
    It's made from a fresh CVS checkout, so I haven't removed the @s from
    any Makefile.am:s as in the previous attachment.

     
  • Jarno Elonen

    Jarno Elonen - 2002-06-21

    Logged In: YES
    user_id=312071

    Most likely a bug in Debian packages or uic:

    uic loads "/usr/lib/kde3/plugins/designer/kdewidgets.so", which
    seemingly causes some errors.

    Once that file is removed/renamed, Kwave compiles ok.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks