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

ktorrent-1.2 compile time error on Mandrake 10.1

Tags: None
(comma "," separated)
yu210148
Registered Member
Posts
2
Karma
0
Hi all,

I know a solution would be to upgrade to Mandriva 2006 but I'd kinda like to get it working on this version. The configure completes cleanly but make produces the output below.

Any help would be greatly appreciated.

Thanks in advance.

<snip>

make all-recursive
make[1]: Entering directory `/home/kev/tarballs/1/ktorrent-1.2'
Making all in libktorrent
make[2]: Entering directory `/home/kev/tarballs/1/ktorrent-1.2/libktorrent'
Making all in util
make[3]: Entering directory `/home/kev/tarballs/1/ktorrent-1.2/libktorrent/util'
source='httprequest.cpp' object='httprequest.lo' libtool=yes \
depfile='.deps/httprequest.Plo' tmpdepfile='.deps/httprequest.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../libktorrent -I/usr/lib/qt3//include -I/usr/X11R6/include -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 httprequest.lo `test -f 'httprequest.cpp' || echo './'`httprequest.cpp
In file included from httprequest.cpp:22:
httprequest.h:25:27: kstreamsocket.h: No such file or directory
In file included from httprequest.cpp:22:
httprequest.h:85: error: `KNetwork' has not been declared
httprequest.h:85: error: ISO C++ forbids declaration of `KStreamSocket' with no type
httprequest.h:85: error: expected `;' before '*' token
httprequest.cpp: In constructor `bt::HTTPRequest::HTTPRequest(const QString&, const QString&, const QString&, bt::Uint16)':
httprequest.cpp:32: error: `sock' undeclared (first use this function)
httprequest.cpp:32: error: (Each undeclared identifier is reported only once for each function it appears in.)
httprequest.cpp:32: error: `KNetwork' has not been declared
httprequest.cpp:32: error: `KStreamSocket' has not been declared
httprequest.cpp: In destructor `virtual bt::HTTPRequest::~HTTPRequest()':
httprequest.cpp:45: error: `sock' undeclared (first use this function)
httprequest.cpp: In member function `void bt::HTTPRequest::start()':
httprequest.cpp:51: error: `sock' undeclared (first use this function)
httprequest.cpp: In member function `void bt::HTTPRequest::onReadyRead()':
httprequest.cpp:69: error: `sock' undeclared (first use this function)
httprequest.cpp: In member function `void bt::HTTPRequest::onError(int)':
httprequest.cpp:92: error: `sock' undeclared (first use this function)
httprequest.cpp: In member function `void bt::HTTPRequest::onTimeout()':
httprequest.cpp:101: error: `sock' undeclared (first use this function)
make[3]: *** [httprequest.lo] Error 1
make[3]: Leaving directory `/home/kev/tarballs/1/ktorrent-1.2/libktorrent/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kev/tarballs/1/ktorrent-1.2/libktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kev/tarballs/1/ktorrent-1.2'
make: *** [all] Error 2

<snip>


kev.
agforsyth
Registered Member
Posts
133
Karma
0

Tue May 23, 2006 8:27 pm
I think you need a newer version of KDE.

What happens if you "locate kstreamsocket.h"? If you can't find it, but configure succeeded, it means you have the KDE headers but not that header. If you can find it, maybe you have two different sets of KDE headers installed in two diferent places, and you're using the wrong set. Look at ./configure --help to see how to select the correct set.
yu210148
Registered Member
Posts
2
Karma
0

Tue May 23, 2006 9:37 pm
It doesn't look like kstreamsocket.h exists on my box. I think you're right about needing a newer version of KDE. I wonder if I can convince KDE 3.5 to run on MDK 10.1....

Unless I can find a version of that header for 3.2.3....

Thanks for the quick reply.


kev.
djpearman
Registered Member
Posts
54
Karma
0

Wed May 24, 2006 8:14 am
yu210148 wrote:Unless I can find a version of that header for 3.2.3....


I remember George stating that KTorrent made use of some functionality that was introduced in KDE 3.4, so I have the feeling you'll be needing to update to at least that.
George
Moderator
Posts
5421
Karma
1

Wed May 24, 2006 5:10 pm
djpearman wrote:
yu210148 wrote:Unless I can find a version of that header for 3.2.3....


I remember George stating that KTorrent made use of some functionality that was introduced in KDE 3.4, so I have the feeling you'll be needing to update to at least that.


Indeed we use some functionality in the KDE libs which was only added in KDE 3.4.

Allthough, I'm not sure if this applies for KT 1.2, it might be possible to run KT 1.2 on KDE 3.3.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]