Summary: | kopete >=3.5_beta2 won't compile on ppc64 | ||
---|---|---|---|
Product: | [Applications] kopete | Reporter: | Markus Rothe <markus> |
Component: | general | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christopher.cradock, epic |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
compile error
Possible patch for compiling problems |
Description
Markus Rothe
2005-11-14 12:47:56 UTC
Created attachment 13438 [details]
compile error
Pasting the relevant error message: kircmessage.cpp: In static member function `static KIRC::Message KIRC::Message::parse(KIRC::Engine*, const QTextCodec*, bool*)': kircmessage.cpp:171: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: /usr/qt/3/include/qmemarray.h:100: note: candidate 1: type& QMemArray<type>::operator[](int) const [with type = char] kircmessage.cpp:171: note: candidate 2: operator[](const char*, long int) <built-in> Created attachment 13450 [details]
Possible patch for compiling problems
Hi, could you test this patch? It should fix these errors.
I got the same error on amd64 and this patch fixed it. Thanks a lot for the quick fix! SVN commit 480399 by rantala: BUG: 116339 Fix reported compilation problems with some 64-bit architectures. M +4 -4 kircmessage.cpp --- branches/KDE/3.5/kdenetwork/kopete/protocols/irc/libkirc/kircmessage.cpp #480398:480399 @@ -168,11 +168,11 @@ // // Some servers send '\n' instead of '\r\n' that the RFCs say they should be sending. - if (length > 1 && raw[length-2] == '\n') { - raw[length-2] = '\0'; + if (length > 1 && raw.at(length-2) == '\n') { + raw.at(length-2) = '\0'; } - if (length > 2 && raw[length-3] == '\r') { - raw[length-3] = '\0'; + if (length > 2 && raw.at(length-3) == '\r') { + raw.at(length-3) = '\0'; } kdDebug(14121) << "<< " << raw << endl; *** Bug 116451 has been marked as a duplicate of this bug. *** *** Bug 117124 has been marked as a duplicate of this bug. *** |