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

Compiling ktorrent 2.2rc1

Tags: None
(comma "," separated)
johnjaylward
Registered Member
Posts
63
Karma
0

Compiling ktorrent 2.2rc1

Thu Jun 14, 2007 2:29 am
I get the following error while compiling on Gentoo:

cachefile.cpp: In member function 'void bt::CacheFile::preallocate(bt::PreallocationThread*)':
cachefile.cpp:455: error: 'XfsPreallocate' was not declared in this scope
cachefile.cpp: At global scope:
cachefile.cpp:428: warning: unused parameter 'prealloc'
authenticationmonitor.cpp: In member function 'void bt::AuthenticationMonitor::update()':
authenticationmonitor.cpp:93: warning: comparison between signed and unsigned integer expressions
timeestimator.cpp: In member function 'bt::Uint32 bt::TimeEstimator::estimate()':
timeestimator.cpp:59: warning: enumeration value 'ETA_WINX' not handled in switch
timeestimator.cpp:59: warning: enumeration value 'ETA_MAVG' not handled in switch
make[4]: *** [libtorrent_la.all_cpp.lo] Error 1
make[4]: Leaving directory `/tmp/portage/net-p2p/ktorrent-2.2_rc1/work/ktorrent-2.2rc1/libktorrent/torrent'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/portage/net-p2p/ktorrent-2.2_rc1/work/ktorrent-2.2rc1/libktorrent'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/portage/net-p2p/ktorrent-2.2_rc1/work/ktorrent-2.2rc1/libktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/net-p2p/ktorrent-2.2_rc1/work/ktorrent-2.2rc1'
make: *** [all] Error 2


I wonder if I'm missing a dependency... this is not from an official Gentoo ebuild, just my own attempt at compiling which is why I posted here instead of Gentoo.
johnjaylward
Registered Member
Posts
63
Karma
0

Thu Jun 14, 2007 2:50 am
I also get this error (I missed it the first time)

multifilecache.cpp: In member function 'void bt::MultiFileCache::recreateFile(bt::TorrentFile*, const QString&, const QString&)':
multifilecache.cpp:573: error: 'XfsPreallocate' was not declared in this scope
multifilecache.cpp:573: error: expected `;' before ')' token
6kutijs
Registered Member
Posts
1
Karma
0

Thu Jun 14, 2007 11:18 am
yeah I have the same problem as johnjaylward !!! can anyone help us out ... I really dont know what to do !!! :?
Athantor
Registered Member
Posts
45
Karma
0

Fri Jun 15, 2007 12:18 am
I've successfully compiled this version on „Gentoo Base System release 1.12.10” with „gcc version 4.1.2 (Gentoo 4.1.2)”. :?

Please send me your „config.h”, „config.log” and „libktorrent/util/fileops.h” files.


Image Image
johnjaylward
Registered Member
Posts
63
Karma
0

Fri Jun 15, 2007 2:22 pm
Athantor wrote:I've successfully compiled this version on „Gentoo Base System release 1.12.10” with „gcc version 4.1.2 (Gentoo 4.1.2)”. :?

Please send me your „config.h”, „config.log” and „libktorrent/util/fileops.h” files.


sent you an email with files attached
Athantor
Registered Member
Posts
45
Karma
0

Sat Jun 16, 2007 1:24 am
OMG, how did it get through?! :shock:

First try this patch and if it still doesn't compile then apply this patch (in the same dir, after applying first patch).

Patching:
in unpacked KT dir (where the „configure” file):
Code: Select all
$ patch -p1 < path/where/you've/saved/patches/ktorrent-patch.patch


<making_it_visible>
:!: Please, someone check-in first patch (and maybe second too).
</making_it_visible>


Image Image
johnjaylward
Registered Member
Posts
63
Karma
0

Sat Jun 16, 2007 3:38 am
was there something I did with the configure that is different from normal? The reason I ask is because I have 2 Gentoo boxes that have reasonably the same config (only difference is one is AMD 64 X2 while the other is only AMD 64) and some packages differ. But overall they are the same. One of the systems (X2) failed compilation, while single core passed

The computer the compilation failed on has the sys-fs/xfsprogs installed, while the single core machine did not. Was that the only difference?

John
johnjaylward
Registered Member
Posts
63
Karma
0

Sat Jun 16, 2007 3:48 am
Athantor wrote:OMG, how did it get through?! :shock:

First try this patch and if it still doesn't compile then apply this patch (in the same dir, after applying first patch).

Patching:
in unpacked KT dir (where the „configure” file):
Code: Select all
$ patch -p1 < path/where/you've/saved/patches/ktorrent-patch.patch



Looks like applying both patches worked for me. Thanks for your help.
George
Moderator
Posts
5421
Karma
1

Sat Jun 16, 2007 10:15 am
Why did we miss this ??

I will commit the patches ASAP
Athantor
Registered Member
Posts
45
Karma
0

Sat Jun 16, 2007 10:31 am
johnjaylward wrote:Was that the only difference?


I really don't know :?. I think maybe something is different with GCC or build system on this arch.

George wrote:Why did we miss this ??


Because of „config.h” not being included in „fileops”, the syntax error between preprocessor „guards” (which evaluated as false due to missing hdr) passed through.


Image Image
George
Moderator
Posts
5421
Karma
1

Sat Jun 16, 2007 10:41 am
It seems my configure is complaining about missing prerequisite headers (I have the xfs headers installed), so it never got to compiling that piece of code.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]