[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-windows
Subject: Re: emerge of kdelibs fails with "2 overloads have
From: Andreas Holzammer <andreas.holzammer () kdab ! com>
Date: 2011-06-06 11:28:06
Message-ID: 4DECB9C6.6040408 () kdab ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hi,
as it seems, somebody has added that there is no direct conversion of an
ascii to an QString, so thats where these errors are comming from. I
started to fix these but as it seems it is too much for me. I dont have
the time to fix them all. To get the impression, i added the fix for the
below problem, but after that there are others showing up like this. So
feel free to fix the issues.
cheers
Andreas
Am 06.06.2011 01:38, schrieb Andrius da Costa Ribas:
> I also still get this same error :(
>
> 2011/5/8 Thomas Fischer <ml@t-fischer.net>
>
>> Hello,
>>
>> I am trying to emerge kdelibs, but it fails at 70%
>> with the following output:
>>
>>
>> ls w[ 70%] Building CXX object khtml/CMakeFiles/khtml.dir/xpath/parser.obj
>> parser.cpp
>> parser.tab.c(827) : warning C4065: switch statement contains 'default' but
>> no 'case' labels
>> parser.tab.c(1193) : warning C4065: switch statement contains 'default' but
>> no 'case' labels
>> parser.y(204) : error C2666: 'DOM::DOMString::operator +' : 2 overloads
>> have similar conversions
>> C:\Users\N00B\KDE-devel\git\kdelibs\khtml\dom\dom_string.h(75):
>> could be 'DOM::DOMString DOM::DOMString::operator +(const DOM::DOMString &)'
>> C:\Users\N00B\KDE-devel\include\QtCore/qstringbuilder.h(307): or
>> 'QStringBuilder operator +<DOM::DOMString,const char[3]>(const A&,B (&))'
>> with
>> [
>> A=DOM::DOMString,
>> B=const char [3]
>> ]
>> while trying to match the argument list '(DOM::DOMString, const char
>> [3])'
>> note: qualification adjustment (const/volatile) may be causing the
>> ambiguity
>> NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : return
>> code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\BIN\nmake.exe"' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\BIN\nmake.exe"' : return code '0x2'
>> Stop.
>> emerge fatal error: while running make cmd: nmake /NOLOGO
>> emerge fatal error: running python
>> C:\Users\N00B\KDE-devel\emerge\portage\kde\kdelibs\kdelibs-20110130.py
>> compile
>>
>>
>> Any ideas how to fix this? I guess the original
>> developer used gcc and a different interpretation
>> of operators and overloading compared to msvc...
>>
>> How to proceed here?
>>
>> Thanks in advance!
>>
>> -- Thomas
>> _______________________________________________
>> Kde-windows mailing list
>> Kde-windows@kde.org
>> https://mail.kde.org/mailman/listinfo/kde-windows
>>
>
>
>
> _______________________________________________
> Kde-windows mailing list
> Kde-windows@kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
--
Andreas Holzammer | andreas.holzammer@kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
["0001-compile-fix.patch" (text/plain)]
From d9d1193546378e652d45b45edf032b717a32f62c Mon Sep 17 00:00:00 2001
From: Andreas Holzammer <andreas.holzammer@kdab.com>
Date: Tue, 31 May 2011 21:26:30 +0200
Subject: [PATCH 1/2] compile fix
---
khtml/xpath/parser.cpp | 2 +-
khtml/xpath/parser.y | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/khtml/xpath/parser.cpp b/khtml/xpath/parser.cpp
index e024d88..8257072 100644
--- a/khtml/xpath/parser.cpp
+++ b/khtml/xpath/parser.cpp
@@ -1645,7 +1645,7 @@ yyreduce:
/* Line 1464 of yacc.c */
#line 203 "parser.y"
{
- (yyval.str) = new DOMString( *(yyvsp[(1) - (3)].str) + "()" );
+ (yyval.str) = new DOMString( (yyvsp[(1) - (3)].str)->string() + QLatin1String("()") );
;}
break;
diff --git a/khtml/xpath/parser.y b/khtml/xpath/parser.y
index 60b2057..c17323b 100644
--- a/khtml/xpath/parser.y
+++ b/khtml/xpath/parser.y
@@ -201,7 +201,7 @@ NodeTest:
|
NODETYPE '(' ')'
{
- $$ = new DOMString( *$1 + "()" );
+ $$ = new DOMString( $1->string() + QLatin1String("()") );
}
|
PI '(' ')'
--
1.7.4.msysgit.0
["0002-compile-fix.patch" (text/plain)]
From 29024774f3ef7c2f268ca30e59f39197fccb8e0a Mon Sep 17 00:00:00 2001
From: Andreas Holzammer <andreas.holzammer@kdab.com>
Date: Mon, 6 Jun 2011 13:05:52 +0200
Subject: [PATCH 2/2] compile fix
---
khtml/xml/dom_textimpl.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/khtml/xml/dom_textimpl.cpp b/khtml/xml/dom_textimpl.cpp
index 1645b13..70e4039 100644
--- a/khtml/xml/dom_textimpl.cpp
+++ b/khtml/xml/dom_textimpl.cpp
@@ -313,7 +313,7 @@ bool CommentImpl::childTypeAllowed( unsigned short /*type*/ )
DOMString CommentImpl::toString() const
{
// FIXME: substitute entity references as needed!
- return DOMString("<!--") + nodeValue() + "-->";
+ return DOMString(QLatin1String("<!--") + nodeValue().string() + QLatin1String("-->"));
}
// ---------------------------------------------------------------------------
@@ -636,7 +636,7 @@ TextImpl *CDATASectionImpl::createNew(DOMStringImpl *_str)
DOMString CDATASectionImpl::toString() const
{
- return DOMString("<![CDATA[") + nodeValue() + "]]>";
+ return DOMString(QLatin1String("<![CDATA[") + nodeValue().string() + QLatin1String("]]>"));
}
// ---------------------------------------------------------------------------
--
1.7.4.msysgit.0
["smime.p7s" (application/pkcs7-signature)]
_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic