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

compile error

Tags: None
(comma "," separated)
louiscipher
Registered Member
Posts
7
Karma
0

compile error

Wed Dec 13, 2006 6:19 am
Hi again, I found another compile error:

Code: Select all
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -Os -pipe -ftracer -fweb -frename-registers -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -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 udptrackersocket.lo udptrackersocket.cpp
udptrackersocket.cpp: In member function 'void bt::UDPTrackerSocket::dataRecieved(int)':
udptrackersocket.cpp:174: error: 'read' was not declared in this scope
make[4]: *** [udptrackersocket.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorrent-svn-2.1/ktorrent/libktorrent/torrent'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorrent-svn-2.1/ktorrent/libktorrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorrent-svn-2.1/ktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorrent-svn-2.1'
make: *** [all] Error 2



I recieved this while trying to do the most recent SVN build.
louiscipher
Registered Member
Posts
7
Karma
0

Thu Dec 14, 2006 12:24 am
I think i got it, but I can't figure out how to build "configure" from SVN.

Anyway, the read function needs unistd.h included, which it is not with the includes at the start of udptrackersocket.cpp.

Upon doing a
Code: Select all
 grep -Rn "read(fd,&tmp,1);" ktorrent


i found out that this same line of code is also in
    libktorrent/kademlia/rpcserver.cpp
    plugins/upnp/upnpmcastsocket.cpp

so someone may want to check to make sure that the same includes are put there as well.
maxime94
Registered Member
Posts
14
Karma
0

Thu Dec 14, 2006 4:17 am
Got the same compile error... I was here to report it :). Good to see that you found the cause of the error too. What's weird is that I only have this error when i update from svn, not when I download a clean svn copy. Hope it will get fixed asap =).
George
Moderator
Posts
5421
Karma
1

Thu Dec 14, 2006 7:01 am
Strange, it compiled when I added that code.
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Thu Dec 14, 2006 2:50 pm
Just a note that I was also unable to compile svn from r613282.

I don't remember the exact error but it was in the infowidgetbase.cpp file. I had to remove three lines in the includes section.

IIRC I had to remove the redundant line for these entries

Code: Select all
#include "downloadedchunkbar.h"
#include "availabilitychunkbar.h"
#include "floatspinbox.h"


I think they started with ktorrent::downloadchunkbar.h etc.

After that it compiled fine. I had no issues with the above error, but this seemed similar so I figured I would post it here.

Jeremy
George
Moderator
Posts
5421
Karma
1

Thu Dec 14, 2006 5:14 pm
Everything should compile now
maxime94
Registered Member
Posts
14
Karma
0

Thu Dec 14, 2006 6:38 pm
Working fine for me now, thanks !


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar