#5 src rpm rebuild fails on FC2

closed-out-of-date
Potolo
None
5
2007-05-06
2004-09-24
Jez Tucker
No

Hey up.

Thought I'd check it out, looks quite nice :)

On FC2, updated to level as stands today, rpmbuild
--rebuild fails on kluje-0.7-1.src.rpm with following
error msg:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt-3.3/include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -O2 -O2 -g -pipe
-march=i386 -mcpu=i686 -fno-exceptions -fno-check-new
-c klujesystray.cpp
In file included from
/usr/include/c++/3.3.3/backward/iostream.h:31,
from editeventsdialog.h:35,
from kluje.h:29,
from klujesystray.cpp:19:
/usr/include/c++/3.3.3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
klujesystray.cpp: In member function `void
KLuJeSysTray::selectedLink(int)':
klujesystray.cpp:100: error: ambiguous overload for
'operator<<' in '
(&kdDebug(int)())->kdbgstream::operator<<("User
selected link ") << url'
/usr/include/kde/kdebug.h:185: error: candidates are:
kdbgstream&
kdbgstream::operator<<(const QString&)
/usr/include/kde/kdebug.h:314: error:
kdbgstream&
kdbgstream::operator<<(const KURL&)
make[2]: *** [klujesystray.o] Error 1
make[2]: Leaving directory
`/usr/src/redhat/BUILD/kluje-0.7/kluje'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/kluje-0.7'
make: *** [all-recursive-am] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.48250 (%build)

Do you need any more info?

Tucks

Discussion

  • Corbin
    Corbin
    2004-10-27

    Logged In: YES
    user_id=811740

    I got the same error, and installing from source also seems to
    fail for me

     
  • Logged In: YES
    user_id=101551

    This case is easy to fix: cast QUrl to KURL like this:

    void KLuJeSysTray::selectedLink(int id)
    {
    QUrl url = *(urls->at(id));
    kdDebug(6969) << "User selected link " << KURL(url) << endl;

    KProcess *proc = new KProcess();

    *proc << "konqueror";
    *proc << url.toString().latin1();
    proc->start( KProcess::DontCare );
    }

    But, there is one more case:
    in EditEventsDialog, there is member 'KEdit *eventEdit;'
    and it's private function setCursor get used. I don't know
    how to deal with it properly. If I comment out 2 cases where
    it is used, everything compiles and work. I commented
    following 2 lines in kluje/editeventsdialog.cpp:

    void EditEventsDialog::disable()
    {
    this->setEnabled(false);
    this->setCursor(QCursor(Qt::WaitCursor));
    subjLineEdit->setCursor(QCursor(Qt::WaitCursor));
    //eventEdit->setCursor(QCursor(Qt::WaitCursor));
    }

    void EditEventsDialog::enable()
    {
    this->setEnabled(true);
    this->setCursor(QCursor(Qt::ArrowCursor));
    subjLineEdit->setCursor(QCursor(Qt::ArrowCursor));
    //eventEdit->setCursor(QCursor(Qt::ArrowCursor));
    }

     
  • Potolo
    Potolo
    2007-05-06

    Logged In: YES
    user_id=1596719
    Originator: NO

    Thanks for the report. This bug report was made some time ago, but the ticket was not resolved.

    The build/install problems happened due to deprecated header/API usage. This was FIXED in the previous - v0.8 - release. Thank you for your interest in KLuJE.

    -- Potolo

     
  • Potolo
    Potolo
    2007-05-06

    • assigned_to: nobody --> potolo
    • status: open --> closed-out-of-date