Compile probs

Help
2004-02-06
2004-02-08
  • Nobody/Anonymous

    I am running gentoo and I connot get ksetispy 0.6.1 to compile. Any help will be appreciated.

    n file included from ksetispydoc.h:27,
                     from ksetispyview.h:28,
                     from wucalendar.h:24,
                     from wucalendar.cpp:23:
    /usr/kde/3.2/include/knotifyclient.h:164: error: `warning' redeclared as
       different kind of symbol
    /usr/qt/3/include/qglobal.h:967: error: previous declaration of `void
       warning(const char*, ...)'
    In file included from ksetispydoc.h:27,
                     from ksetispyview.h:28,
                     from wucalendar.h:24,
                     from wucalendardialog.cpp:27:
    /usr/kde/3.2/include/knotifyclient.h:164: error: `warning' redeclared as
       different kind of symbol
    /usr/qt/3/include/qglobal.h:967: error: previous declaration of `void
       warning(const char*, ...)'
    wucalendar.cpp: In member function `virtual void
       WUCalendar::paintEvent(QPaintEvent*)':
    wucalendar.cpp:128: warning: `monthName' is deprecated (declared at
       /usr/kde/3.2/include/klocale.h:474)
    wucalendar.cpp:141: warning: `weekStartsMonday' is deprecated (declared at
       /usr/kde/3.2/include/klocale.h:454)
    make[2]: *** [wucalendar.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** [wucalendardialog.o] Error 1
    make[2]: Leaving directory `/var/tmp/portage/ksetispy-0.6.1/work/ksetispy-0.6.1/ksetispy'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/var/tmp/portage/ksetispy-0.6.1/work/ksetispy-0.6.1'
    make: *** [all] Error 2

    !!! ERROR: app-sci/ksetispy-0.6.1 failed.
    !!! Function kde_src_compile, Line 127, Exitcode 2
    !!! died running emake, kde_src_compile:make

     
    • Roberto Virga

      Roberto Virga - 2004-02-07

      KSetiSpy compiles without modification under KDE 3.2 (I'm running KDE 3.2 with FC1), albeit it uses a few constructs (like monthName and weekStartsMonday above) which are now deprecated (but still allowed).

      From the output above, the problem you're having is a conflict between the Qt and KDE headers on your installation. This is not related to KSetiSpy in particular (you'll likely encounter the same problem compiling other KDE programs), and it is triggered by the inclusion of the header file knotifyclient.h.  Specifically, there are conflicting definitions of the of the symbol "warning", which is a function in qglobbal.h of Qt, and an enum item in knotifyclient.h of KDE, and this conflict causes the compiler to bail out.

      Some possible causes, and remedies:
      1. How old is the version of Qt you're using? From the KDE 3.2 requirements page:
      http://www.kde.org/info/requirements/3.2.php
      you need Qt 3.2.3 or newer.
      2. Also, what c++ compiler are you using? Again, check that it's one of those listed in the KDE 3.2 requirements.
      3. Finally, what flags are passed to the c++ compiler? In normal circumnstances, if a symbol is redefined, the new definition should shadow the old one, and compilation would proceed, generating at most a warning. Is it possible that the compilation flags you're using cause the compiler to be particularly unforgiving in this instance?

      - Roberto

       
    • Nobody/Anonymous

      Roberto, Thanks for the reply.  I downgraded gcc and that fixed the prob. Just goes to show if you go bleeding edge, sometimes you bleed. Thanks again for putting me on track!!

       

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks