Bug 294461 - build failure: qstring ambiguity [patch]
Summary: build failure: qstring ambiguity [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 2.5.0
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 00:28 UTC by tropikhajma
Modified: 2017-08-19 21:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.6.0
Sentry Crash Report:


Attachments
patch (1.04 KB, patch)
2012-02-20 00:28 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2012-02-20 00:28:19 UTC
Created attachment 68946 [details]
patch

Version:           2.5.0 (using KDE 4.8.0) 
OS:                Solaris

build fails with the below errors.
the attached patch worked for me

Reproducible: Always

Steps to Reproduce:
try to build digikam

Actual Results:  
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 82: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 82: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 82: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 82: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Overloading ambiguity between "QString::QString(const QChar*)" and "QString::QString(const char*)".
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/build/extra/kipi-plugins/picasawebexport/../../../../extra/kipi-plugins/picasawebexport/picasawebtalker.h", line 79: Error: Cannot use int to initialize const QString.
Warning: A reference return value should be an lvalue (if the value of this function is used, the result is unpredictable).
16 Error(s) and 8 Warning(s) detected.

Expected Results:  
builds ok

Solaris Studio 12.3
Comment 1 caulier.gilles 2012-02-20 08:09:21 UTC
Git commit 432b55d6dbc13208f0af19a3794bf65ef2b1f328 by Gilles Caulier.
Committed on 20/02/2012 at 09:08.
Pushed by cgilles into branch 'master'.

fix compilation under Solaris

M  +2    -2    picasawebexport/picasawebtalker.h

http://commits.kde.org/kipi-plugins/432b55d6dbc13208f0af19a3794bf65ef2b1f328