This forum has been archived. All content is frozen. Please use KDE Discuss instead.

ktorrent 2.0.3 fails to compile under RHEL 4

Tags: None
(comma "," separated)
purefinity
Registered Member
Posts
6
Karma
0
Hi everyone, I'm using CentOS v4.3 (a RHEL 4 clone) and I can't get ktorrent 2.0.3 to compile correctly.

uname -a = 2.6.9-34.0.2.ELsmp #1 SMP Fri Jul 7 19:52:49 CDT 2006 i686 i686 i386 GNU/Linux

qt = 3.3.3-10.RHEL4

Here is the relevant output from the make command:
source='infowidgetbase.cpp' object='infowidgetbase.lo' libtool=yes \
depfile='.deps/infowidgetbase.Plo' tmpdepfile='.deps/infowidgetbase.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -I./../../libktorrent -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o infowidgetbase.lo `test -f 'infowidgetbase.cpp' || echo './'`infowidgetbase.cpp
infowidgetbase.cpp: In constructor `InfoWidgetBase::InfoWidgetBase(QWidget*, const char*, uint)':
infowidgetbase.cpp:40: error: invalid use of undefined type `struct KTabWidget'
infowidgetbase.h:30: error: forward declaration of `struct KTabWidget'
infowidgetbase.cpp:41: error: invalid use of undefined type `struct KTabWidget'
infowidgetbase.h:30: error: forward declaration of `struct KTabWidget'
infowidgetbase.cpp:41: error: invalid use of undefined type `struct KTabWidget'
infowidgetbase.h:30: error: forward declaration of `struct KTabWidget'
infowidgetbase.cpp:42: error: invalid use of undefined type `struct KTabWidget'
infowidgetbase.h:30: error: forward declaration of `struct KTabWidget'
infowidgetbase.cpp:44: error: no matching function for call to `QWidget::QWidget(KTabWidget*&, const char[13])'
/usr/lib/qt-3.3/include/qwidget.h:718: note: candidates are: QWidget::QWidget(const QWidget&)
/usr/lib/qt-3.3/include/qwidget.h:139: note: QWidget::QWidget(QWidget*, const char*, uint)
infowidgetbase.cpp:213: error: no matching function for call to `QWidget::QWidget(KTabWidget*&, const char[12])'
/usr/lib/qt-3.3/include/qwidget.h:718: note: candidates are: QWidget::QWidget(const QWidget&)
/usr/lib/qt-3.3/include/qwidget.h:139: note: QWidget::QWidget(QWidget*, const char*, uint)
infowidgetbase.cpp:224: error: no matching function for call to `QHBoxLayout::addWidget(KTabWidget*&)'
/usr/lib/qt-3.3/include/qlayout.h:386: note: candidates are: void QBoxLayout::addWidget(QWidget*, int, int)
make[4]: *** [infowidgetbase.lo] Error 1

Can someone please help? I really love ktorrent, but I also need to run CentOS/RHEL.
imported4-Ivan
Registered Member
Posts
819
Karma
0

Wed Dec 06, 2006 8:18 pm
It complains about KTabWidget...
You're using a bit older Qt version, what about KDE?
Any chances you could upgrade your KDE to the latest (>= KDE 3.5)?
purefinity
Registered Member
Posts
6
Karma
0

Wed Dec 06, 2006 8:37 pm
Ivan wrote:It complains about KTabWidget...
You're using a bit older Qt version, what about KDE?
Any chances you could upgrade your KDE to the latest (>= KDE 3.5)?


Unfortunately CentOS v4.3 only comes with KDE 3.3.1, and the most recent update (v4.4) does not change that. This is tied directly to Redhat, and which versions they choose to support for their enterprise customers.
http://www.centos.org/docs/4/html/relea ... U4-en.html

Is there a workaround that would allow me to use ktorrent with the older versions of KDE and QT?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Wed Dec 06, 2006 9:47 pm
I'm not sure...
If it's even possible to compile with those versions (which I'm not sure), maybe you can find someone who can provide you binary package (centOS forums or something?).

Considering that log you've posted, I don't think I can help you much...
purefinity
Registered Member
Posts
6
Karma
0

Wed Dec 06, 2006 10:48 pm
Ivan wrote:I'm not sure...
If it's even possible to compile with those versions (which I'm not sure), maybe you can find someone who can provide you binary package (centOS forums or something?).

Considering that log you've posted, I don't think I can help you much...


It's surprising there aren't more people having the same issue considering RHEL has such a large user population. I guess they just use other torrent programs.. :(

I searched for someone with a CentOS package for ktorrent, but no one seems to have one. I tried rebuilding a source RPM, but that doesn't work either (errors).

How can I get in touch with the ktorrent developers?
JiiPee
Registered Member
Posts
5
Karma
0

Thu Dec 07, 2006 6:02 pm
purefinity
Registered Member
Posts
6
Karma
0

Thu Dec 07, 2006 8:30 pm
JiiPee wrote:http://apt.kde-redhat.org/apt/kde-redhat/redhat/kde.repo
Try that, it should help you :)


Thanks, I just found that today. I'm in the process of having yum upgrade me via the KDE packaging project.

Here are the steps
1. rpm --import http://kde-redhat.sourceforge.net/gpg-p ... a-3e1ab2ca
2. Download http://apt.kde-redhat.org/apt/kde-redha ... t/kde.repo and drop it in /etc/yum.repos.d/
3. yum update qt kdelibs kdebase
4. reboot
5. http://dag.wieers.com/packages/ktorrent/

I'll let everyone know if it works..
purefinity
Registered Member
Posts
6
Karma
0

Fri Dec 08, 2006 12:11 am
:o it works!

Hopefully the upgraded components won't compromise the stability of my server. Time will tell..


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]