I am trying to build kdesupport, and getting the following error-

[ 24%] Built target testrunner-streams
[ 24%] Building CXX object strigi/src/searchclient/filterwidget/CMakeFiles/filterwidgettest.dir/filterwidgettest.cpp.o
Linking CXX executable strigiasynctest
Linking CXX executable filterwidgettest
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QString::indexOf(QLatin1String const&, int, Qt::CaseSensitivity) const'
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QByteArray::replace(int, int, char const*)'
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QString::replace(QLatin1String const&, QLatin1String const&, Qt::CaseSensitivity)'
collect2: ld returned 1 exit status
make[2]: *** [strigi/src/searchclient/qtdbus/strigiasynctest] Error 1
make[1]: *** [strigi/src/searchclient/qtdbus/CMakeFiles/strigiasynctest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable strigiqtdbustest
[ 24%] Built target filterwidgettest
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QString::replace(QLatin1String const&, QLatin1String const&, Qt::CaseSensitivity)'
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QByteArray::replace(int, int, char const*)'
/home/kde-devel/qt-copy/lib/libQtXml.so.4: undefined reference to `QString::indexOf(QLatin1String const&, int, Qt::CaseSensitivity) const'
collect2: ld returned 1 exit status
make[2]: *** [strigi/src/searchclient/qtdbus/strigiqtdbustest] Error 1
make[1]: *** [strigi/src/searchclient/qtdbus/CMakeFiles/strigiqtdbustest.dir/all] Error 2
make: *** [all] Error 2
makeobj[0]: Leaving directory `/home/kde-devel/kde/build/kdesupport'

Before this, latest svn qt-copy successfully builds and gets installed. By the way, I'm trying to build KDE on my friend's computer using the sources i checked out (copied to his system) and following the procedure on techbase. I have a working trunk build of KDE on my computer.
I tried doing make clean and make -B on both qt-copy and kdesupport, but still the same error. I tried to remove /home/kde-devel/qt-copy/lib/libQtXml.so and recompile qt-copy, but still the error persists. Any ideas what am I doing wrong ?

Thanks :)

--
Shantanu Tushar    (GMT +0530)
http://www.shantanutushar.com