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

svn build error

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

svn build error

Fri Nov 17, 2006 5:23 am
I was using the gentoo ktorrent-svn ebuild from the sticky, here are my results (i hope they help someone)

Code: Select all
/usr/qt/3/bin/moc ./webinterfaceplugin.h -o webinterfaceplugin.moc
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g               
++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../libktorrent -I../../../ktorrent               
/libktorrent -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/incl               
ude -I./../../libktorrent  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wu               
ndef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-su               
bscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -Os -p               
ipe -ftracer -fweb -frename-registers -Wformat-security -Wmissing-format-attribu               
te -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_N               
AMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexc               
eptions  -c -o webinterfaceplugin.lo webinterfaceplugin.cpp
httpserver.h:115: error: 'QMutex' does not name a type
make[5]: *** [webinterfaceplugin.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr               
ent-svn-2.1/ktorrent/plugins/webinterface'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr               
ent-svn-2.1/ktorrent/plugins/webinterface'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr               
ent-svn-2.1/ktorrent/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr               
ent-svn-2.1/ktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr               
ent-svn-2.1'
make: *** [all] Error 2


This came off an svn build that i did a couple of minutes ago (9:22 pm 11/16/06 PST)
George
Moderator
Posts
5421
Karma
1

Fri Nov 17, 2006 11:25 am
This should be fixed now, allthough I don't not understand why it compiles for me and why it doesn't for you. Anyway, I have added an additional include for qmutex.h, so now it can't complain that it doesn't know QMutex.
jdong
Registered Member
Posts
358
Karma
0

Fri Nov 17, 2006 4:13 pm
heh, different versions of GCC maybe?
louiscipher
Registered Member
Posts
7
Karma
0

Sat Nov 18, 2006 5:14 am
Thanks George for the update. Just FYI, I'm using gcc (GCC) 4.1.1 (Gentoo 4.1.1-r2), on a 64 bit machine.

So good news is that the first error went away. Bad news is that I got another (after deleting the old svn code and downloading the svn code... about 9pm PST). Here is the error:

Code: Select all
/usr/qt/3/bin/moc ./webinterfaceplugin.h -o webinterfaceplugin.moc
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g           
++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../libktorrent -I../../../ktorrent           
/libktorrent -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/incl           
ude -I./../../libktorrent  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wu           
ndef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-su           
bscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -Os -p           
ipe -ftracer -fweb -frename-registers -Wformat-security -Wmissing-format-attribu           
te -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_N           
AMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexc           
eptions  -c -o webinterfaceplugin.lo webinterfaceplugin.cpp
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g           
++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../libktorrent -I../../../ktorrent           
/libktorrent -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/incl           
ude -I./../../libktorrent  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wu           
ndef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-su           
bscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -Os -p           
ipe -ftracer -fweb -frename-registers -Wformat-security -Wmissing-format-attribu           
te -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_N           
AMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexc           
eptions  -c -o httpserver.lo httpserver.cpp
httpserver.cpp: In member function 'void kt::HttpServer::processRequest(QSocket*           
)':
httpserver.cpp:267: error: no matching function for call to 'KMD5::KMD5(QString&           
)'
/usr/kde/3.5/include/kmdcodec.h:540: note: candidates are: KMD5::KMD5(const KMD5           
&)
/usr/kde/3.5/include/kmdcodec.h:432: note:                 KMD5::KMD5(const QCSt           
ring&)
/usr/kde/3.5/include/kmdcodec.h:425: note:                 KMD5::KMD5(const QByt           
eArray&)
/usr/kde/3.5/include/kmdcodec.h:418: note:                 KMD5::KMD5(const char           
*, int)
/usr/kde/3.5/include/kmdcodec.h:408: note:                 KMD5::KMD5()
make[5]: *** [httpserver.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr           
ent-svn-2.1/ktorrent/plugins/webinterface'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr           
ent-svn-2.1/ktorrent/plugins/webinterface'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr           
ent-svn-2.1/ktorrent/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr           
ent-svn-2.1/ktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-p2p/ktorrent-svn-2.1/work/ktorr           
ent-svn-2.1'
make: *** [all] Error 2
jdong
Registered Member
Posts
358
Karma
0

Sat Nov 18, 2006 5:51 am
What kind of CFLAGS are you using?
louiscipher
Registered Member
Posts
7
Karma
0

Sat Nov 18, 2006 6:12 am
Code: Select all
CFLAGS="-march=athlon64 -Os -pipe -ftracer -fweb -frename-registers"


I'll try w/ the general -02... as -Os does has problems, and i forget that i use it .
santiago
Registered Member
Posts
11
Karma
0

Sat Nov 18, 2006 7:51 am
I'm having exactly the same problem.
Code: Select all
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"

same gcc version. kdelibs 3.5.5-r5

Never had this problems before.
louiscipher
Registered Member
Posts
7
Karma
0

Sat Nov 18, 2006 9:28 am
ok, sorry for the late reply.

it has nothing to do with the -O2 conversion. There is a problem with the code... however, i spent some time with it and i couldn't really figure out a simple solution to it. As i don't know if there is a way to convert a QString to a QCString. But then i'm not familiar with QT code so that would explain it ( or so i would like to think :? ).

Long story short, retired with -O2 and the the error is still the same.
J
Registered Member
Posts
86
Karma
0

Sat Nov 18, 2006 9:31 am
I don't know whether this would be a correct fix, but you could change the line
Code: Select all
KMD5 context(requestParams["password"]);
to
Code: Select all
KMD5 context(requestParams["password"].utf8());
in plugins/webinterface/httpserver.php

So this still needs an official fix in SVN.


Thank you KTorrent developers! :)
_________________
"Thou shalt not steal." - STOP PIRACY NOW!
louiscipher
Registered Member
Posts
7
Karma
0

Sun Nov 19, 2006 7:34 am
Ok, that seemed to do it.

And all is happy in compile land. Gotta say, I like the new interface! Keep up the good work dev's.


Bookmarks



Who is online

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