kdelibs4-dev: Ambigous overload for 'operator+' error in kresources/manager.h
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdelibs (Debian) |
Fix Released
|
Unknown
|
|||
kdelibs (Ubuntu) |
Fix Released
|
High
|
Kubuntu Bugs |
Bug Description
Automatically imported from Debian bug report #337423 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #2 |
Message-ID: <email address hidden>
Date: Fri, 04 Nov 2005 12:26:31 +0100
From: Xavier FACQ <email address hidden>
To: Bug Tracking System <email address hidden>
Subject: kdelibs4-dev: Ambigous overload for 'operator+' error in kresources/
Package: kdelibs4-dev
Version: 4:3.4.2-4
Severity: serious
Justification: no longer builds from source
When i try to build kopete from svn or using sources from apt-get
source, it always failed with this error :
/usr/include/
KRES::Manager<
/usr/include/
'operator+' in '" (" + ((const
KRES::Manager<
it))'
/usr/share/
QString operator+(QChar, const QString&) <near match>
/usr/share/
QString operator+(char, const QString&) <near match>
make[2]: *** [addresseeitem.lo] Erreur 1
make[2]: Leaving directory
`/home/
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory
`/home/
make: *** [all-recursive] Erreur 1
I tried on Debian sid and etch.
My gcc version is : gcc (GCC) 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)
It seems to appears in sources that use KABC calls like :
KABC::Picture pic = mAddressee.photo();
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.6
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=
Versions of packages kdelibs4-dev depends on:
ii kdelibs-bin 4:3.4.2-4 core binaries for all KDE
applicat
ii kdelibs4c2 4:3.4.2-4 core libraries for all KDE
applica
ii libart-2.0-dev 2.3.17-1 Library of functions for 2D
graphi
ii libarts1-dev 1.4.2-5 development files for the
aRts sou
ii libasound2-dev 1.0.9-3 ALSA library development files
ii libaspell-dev 0.60.4-1 Development files for
applications
ii libbz2-dev 1.0.2-10 high-quality block-sorting
file co
ii libcupsys2-dev 1.1.23-12 Common UNIX Printing
System(tm) -
ii libfam-dev 2.7.0-8 client library to control
the FAM
ii libidn11-dev 0.5.18-1 Development files GNU
libidn, impl
ii libjasper-1.701-dev 1.701.0-2 Development files for the
JasPer J
ii libkrb5-dev 1.3.6-5 Headers and development
libraries
ii libopenexr-dev 1.2.2-4 development files for the
OpenEXR
ii libpcre3-dev 6.4-1.0.1 Perl 5 Compatible Regular
Expressi
ii libqt3-mt-dev 3:3.3.5-1 Qt development files (Threaded)
ii libsasl2-dev 2.1.19-1.6 Development files for
authenticati
ii libssl-dev 0.9.8a-3 SSL developme...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#3 |
On Friday 04 November 2005 06:26 am, Xavier FACQ wrote:
> Package: kdelibs4-dev
> Version: 4:3.4.2-4
> Severity: serious
> Justification: no longer builds from source
>
> When i try to build kopete from svn or using sources from apt-get
> source, it always failed with this error :
>
> /usr/include/
> KRES::Manager<
> /usr/include/
> 'operator+' in '" (" + ((const
> KRES::Manager<
>scription((* it))'
> /usr/share/
> QString operator+(QChar, const QString&) <near match>
> /usr/share/
> QString operator+(char, const QString&) <near match>
> make[2]: *** [addresseeitem.lo] Erreur 1
> make[2]: Leaving directory
> `/home/
> make[1]: *** [all-recursive] Erreur 1
> make[1]: Leaving directory
> `/home/
> make: *** [all-recursive] Erreur 1
Could you somehow have QT_NO_CAST_ASCII defined while building? Looking in
qstring.h, it should be using this operator+ on line 1050:
inline const QString operator+( const char *s1, const QString &s2 )
Your build doesn't appear to be finding that, though. Since the definition is
wrapped in a #ifndef QT_NO_CAST_ASCII, it seems like having that defined
while building could cause your build failure.
...
A quick grep -r through the kdenetwork sources shows that this appears to be
defined in all the kopete Makefile.am's and Makefile.in's, but not in any
other kdenetwork packages. So, I wonder how the buildd's built it?
Josh
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#4 |
Hi,
my build command containts -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST and
the command line looks like :
Making all in ui
make[2]: Entering directory
`/home/
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I../../.. -DKDE_NO_COMPAT -DQT_NO_COMPAT
-DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../..
-I../..
-I../..
-I../..
-I/usr/
-D_REENTRANT -D_FILE_
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security
-Wmissing-
-fno-check-new -fno-common -DQT_CLEAN_
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT addresseeitem.lo -MD
-MP -MF ".deps/
addresseeitem.cpp; \
then mv -f ".deps/
-f ".deps/
But this "article"
(http://
why it's interesting to have this defines.
Xavier
Josh Metzler a écrit :
> On Friday 04 November 2005 06:26 am, Xavier FACQ wrote:
>
>>Package: kdelibs4-dev
>>Version: 4:3.4.2-4
>>Severity: serious
>>Justification: no longer builds from source
>>
>>When i try to build kopete from svn or using sources from apt-get
>>source, it always failed with this error :
>>
>>/usr/
>>KRES:
>>/usr/
>>'operator+' in '" (" + ((const
>>KRES:
>>scription((* it))'
>>/usr/
>>QString operator+(QChar, const QString&) <near match>
>>/usr/
>>QString operator+(char, const QString&) <near match>
>>make[2]: *** [addresseeitem.lo] Erreur 1
>>make[2]: Leaving directory
>>`/home/
>>make[1]: *** [all-recursive] Erreur 1
>>make[1]: Leaving directory
>>`/home/
>>make: *** [all-recursive] Erreur 1
>
>
> Could you somehow have QT_NO_CAST_ASCII defined while building? Looking in
> qstring.h, it should be using this operator+ on line 1050:
> inline const QString operator+( const char *s1, const QString &s2 )
>
> Your build doesn't appear to be finding that, though. Since the definition is
> wrapped in a #ifndef QT_NO_CAST_ASCII, it seems like having that defined
> while building could cause your build failure.
>
> ...
>
> A quick grep -r through the kdenetwork sources shows that this appears to be
> defined in all the kopete Makefile.am's and Makefile.in's, but not in any ...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #5 |
Message-Id: <email address hidden>
Date: Fri, 4 Nov 2005 08:23:19 -0500
From: Josh Metzler <email address hidden>
To: Xavier FACQ <email address hidden>,
<email address hidden>
Subject: Re: Bug#337423: kdelibs4-dev: Ambigous overload for 'operator+' error in
kresources/
On Friday 04 November 2005 06:26 am, Xavier FACQ wrote:
> Package: kdelibs4-dev
> Version: 4:3.4.2-4
> Severity: serious
> Justification: no longer builds from source
>
> When i try to build kopete from svn or using sources from apt-get
> source, it always failed with this error :
>
> /usr/include/
> KRES::Manager<
> /usr/include/
> 'operator+' in '" (" + ((const
> KRES::Manager<
>scription((* it))'
> /usr/share/
> QString operator+(QChar, const QString&) <near match>
> /usr/share/
> QString operator+(char, const QString&) <near match>
> make[2]: *** [addresseeitem.lo] Erreur 1
> make[2]: Leaving directory
> `/home/
> make[1]: *** [all-recursive] Erreur 1
> make[1]: Leaving directory
> `/home/
> make: *** [all-recursive] Erreur 1
Could you somehow have QT_NO_CAST_ASCII defined while building? Looking in
qstring.h, it should be using this operator+ on line 1050:
inline const QString operator+( const char *s1, const QString &s2 )
Your build doesn't appear to be finding that, though. Since the definition is
wrapped in a #ifndef QT_NO_CAST_ASCII, it seems like having that defined
while building could cause your build failure.
...
A quick grep -r through the kdenetwork sources shows that this appears to be
defined in all the kopete Makefile.am's and Makefile.in's, but not in any
other kdenetwork packages. So, I wonder how the buildd's built it?
Josh
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #6 |
Message-ID: <email address hidden>
Date: Fri, 04 Nov 2005 14:53:36 +0100
From: Xavier FACQ <email address hidden>
To: Josh Metzler <email address hidden>
CC: <email address hidden>
Subject: Re: Bug#337423: kdelibs4-dev: Ambigous overload for 'operator+' error
in kresources/
Hi,
my build command containts -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST and
the command line looks like :
Making all in ui
make[2]: Entering directory=20
`/home/
if /bin/sh ../../../libtool --silent --tag=3DCXX --mode=3Dcompile g++=20
-DHAVE_CONFIG_H -I. -I. -I../../.. -DKDE_NO_COMPAT -DQT_NO_COMPAT=20
-DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../..
-I../..
-I../..
-I../..
-I/usr/
-D_REENTRANT -D_FILE_
-D_XOPEN_
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-
-Wmissing-
-fno-check-new -fno-common -DQT_CLEAN_
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT addresseeitem.lo -MD=20
-MP -MF ".deps/
addresseeitem.cpp; \
then mv -f ".deps/
-f ".deps/
But this "article"=20
(http://
why it's interesting to have this defines.
Xavier
Josh Metzler a =E9crit :
> On Friday 04 November 2005 06:26 am, Xavier FACQ wrote:
>=20
>>Package: kdelibs4-dev
>>Version: 4:3.4.2-4
>>Severity: serious
>>Justification: no longer builds from source
>>
>>When i try to build kopete from svn or using sources from apt-get
>>source, it always failed with this error :
>>
>>/usr/
>>KRES:
>>/usr/
r
>>'operator+' in '" (" + ((const
>>KRES:
peDe
>>scription((* it))'
>>/usr/
>>QString operator+(QChar, const QString&) <near match>
>>/usr/
>>QString operator+(char, const QString&) <near match>
>>make[2]: *** [addresseeitem.lo] Erreur 1
>>make[2]: Leaving directory
>>`/home/
>>make[1]: *** [all-recursive] Erreur 1
>>make[1]: Leaving directory
>>`/home/
>>make: *** [all-recursive] Erreur 1
>=20
>=20
> Could you somehow have QT_NO_CAST_ASCII defined while building? Lookin=
g in=20
> qstring.h, it should be using this operator+ on line 1050:
> inline const QString operator+( const char *s1, const QString &s2 )
>=20
> Your build doesn't app...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#7 |
# Automatically generated email from bts, devscripts version 2.9.7
severity 337423 normal
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #8 |
Message-Id: <email address hidden>
Date: Fri, 4 Nov 2005 14:49:39 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: severity of 337423 is normal
# Automatically generated email from bts, devscripts version 2.9.7
severity 337423 normal
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#9 |
On November 4, 2005 06:26, Xavier FACQ wrote:
> Package: kdelibs4-dev
> Version: 4:3.4.2-4
> Severity: serious
> Justification: no longer builds from source
>
> When i try to build kopete from svn or using sources from apt-get
> source, it always failed with this error :
This is fixed by an upstream commit that was backported to the KDE 3.4 and
3.5 branches. Thus the next kdelibs upload will contain the fix.
Cheers,
Christopher Martin
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #10 |
Message-Id: <email address hidden>
Date: Fri, 4 Nov 2005 18:50:51 -0500
From: Christopher Martin <email address hidden>
To: Xavier FACQ <email address hidden>,
<email address hidden>
Subject: Re: Bug#337423: kdelibs4-dev: Ambigous overload for 'operator+' error in
kresources/
On November 4, 2005 06:26, Xavier FACQ wrote:
> Package: kdelibs4-dev
> Version: 4:3.4.2-4
> Severity: serious
> Justification: no longer builds from source
>
> When i try to build kopete from svn or using sources from apt-get
> source, it always failed with this error :
This is fixed by an upstream commit that was backported to the KDE 3.4 and
3.5 branches. Thus the next kdelibs upload will contain the fix.
Cheers,
Christopher Martin
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#11 |
For those who are looking for the upstream patch workaround.
You need to apply to /usr/include/
kopete-svn and others...
It is available here:
http://
--- branches/
465272
+++ branches/
472457
@@ -335,7 +335,7 @@
++it ) {
QString desc = mFactory->typeName( *it );
if ( !mFactory-
- desc += " (" + mFactory-
+ desc += QString:
mFactory-
}
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #12 |
Message-Id: <email address hidden>
Date: Thu, 24 Nov 2005 22:31:33 +0000
From: Mark Purcell <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Patch location
For those who are looking for the upstream patch workaround.
You need to apply to /usr/include/
kopete-svn and others...
It is available here:
http://
--- branches/
465272
+++ branches/
472457
@@ -335,7 +335,7 @@
++it ) {
QString desc = mFactory->typeName( *it );
if ( !mFactory-
- desc += " (" + mFactory-
+ desc += QString:
mFactory-
}
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#13 |
Source: kdelibs
Source-Version: 4:3.4.3-2
We believe that the bug you reported is fixed in the latest version of
kdelibs, which is due to be installed in the Debian FTP archive:
kdelibs-
to pool/main/
kdelibs-
to pool/main/
kdelibs4-
to pool/main/
kdelibs4-
to pool/main/
kdelibs4c2a-
to pool/main/
kdelibs4c2a_
to pool/main/
kdelibs_
to pool/main/
kdelibs_3.4.3-2.dsc
to pool/main/
kdelibs_
to pool/main/
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Debian Qt/KDE Maintainers <email address hidden> (supplier of updated kdelibs package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 27 Nov 2005 23:47:21 +0100
Source: kdelibs
Binary: kdelibs4c2a kdelibs-bin kdelibs kdelibs4c2a-dbg kdelibs4-doc kdelibs-data kdelibs4-dev
Architecture: all i386 source
Version: 4:3.4.3-2
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <email address hidden>
Changed-By: Debian Qt/KDE Maintainers <email address hidden>
Description:
kdelibs - core libraries from the official KDE release
kdelibs-bin - core binaries for all KDE applications
kdelibs-data - core shared data for all KDE applications
kdelibs4-dev - development files for the KDE core libraries
kdelibs4-doc - developer documentation for the KDE core libraries
kdelibs4c2a - core libraries for all KDE applications
kdelibs4c2a-dbg - debugging symbols for kdelibs4c2a
Closes: 326113 329404 337423 338901 339190
Changes:
kdelibs (4:3.4.3-2) unstable; urgency=low
.
* KDE_3_4_BRANCH update (up to r483731).
.
+++ Changes by Christopher Martin:
.
* In the branch update is included a fix for kopete's compilation issues.
(Closes: #337423, #338901)
.
+++ Changes by Adeodato Simó:
.
* libstdc++ allocator transition: rename kdelibs4c2 to kdelibs4c2a. Bumped
build-
(Closes: #339190)
.
kdelibs (4:3.4.3-1) experimental; urgency=low
.
* New upstream release.
.
+++ Changes by Christopher Martin:
.
* Tweak the rounded text selection patch to avoid it causing icon spacing
issues in Konqueror. (Closes: #329404)
.
* Add a patch to generate a PIC static libkdefakes, libkdefakes_pic.a.
This...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #14 |
Message-Id: <email address hidden>
Date: Sun, 27 Nov 2005 17:46:02 -0800
From: Debian Qt/KDE Maintainers <email address hidden>
To: <email address hidden>
Subject: Bug#337423: fixed in kdelibs 4:3.4.3-2
Source: kdelibs
Source-Version: 4:3.4.3-2
We believe that the bug you reported is fixed in the latest version of
kdelibs, which is due to be installed in the Debian FTP archive:
kdelibs-
to pool/main/
kdelibs-
to pool/main/
kdelibs4-
to pool/main/
kdelibs4-
to pool/main/
kdelibs4c2a-
to pool/main/
kdelibs4c2a_
to pool/main/
kdelibs_
to pool/main/
kdelibs_3.4.3-2.dsc
to pool/main/
kdelibs_
to pool/main/
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Debian Qt/KDE Maintainers <email address hidden> (supplier of updated kdelibs package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 27 Nov 2005 23:47:21 +0100
Source: kdelibs
Binary: kdelibs4c2a kdelibs-bin kdelibs kdelibs4c2a-dbg kdelibs4-doc kdelibs-data kdelibs4-dev
Architecture: all i386 source
Version: 4:3.4.3-2
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <email address hidden>
Changed-By: Debian Qt/KDE Maintainers <email address hidden>
Description:
kdelibs - core libraries from the official KDE release
kdelibs-bin - core binaries for all KDE applications
kdelibs-data - core shared data for all KDE applications
kdelibs4-dev - development files for the KDE core libraries
kdelibs4-doc - developer documentation for the KDE core libraries
kdelibs4c2a - core libraries for all KDE applications
kdelibs4c2a-dbg - debugging symbols for kdelibs4c2a
Closes: 326113 329404 337423 338901 339190
Changes:
kdelibs (4:3.4.3-2) unstable; urgency=low
.
* KDE_3_4_BRANCH update (up to r483731).
.
+++ Changes by Christopher Martin:
.
* In the branch update is included a fix for kopete's compilation issues.
(Closes: #337423, #338901)
.
+++ Changes by Adeodato Simó:
.
* libstdc++ allocator transition: rename kdelibs4c2 to kdelibs4c2a. Bumped
build-
(Closes: #339190)
.
kdelibs (4:3.4.3-1) experimental; urgency=low
.
* New upstream release.
.
+++ Changes ...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Frode M. Døving (frode) wrote : | #15 |
Fixed upstream.
Changed in kdelibs: | |
assignee: | jr → kubuntu-team |
status: | Unconfirmed → Fix Released |
Automatically imported from Debian bug report #337423 http:// bugs.debian. org/337423