[Digikam-devel] [Bug 294461] New: build failure in picasawebexport - qstring ambiguity

tropikhajma tropikhajma at gmail.com
Mon Feb 20 00:28:19 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=294461

           Summary: build failure in  picasawebexport - qstring ambiguity
           Product: digikam
           Version: 2.5.0
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Kipiinterface
        AssignedTo: digikam-devel at kde.org
        ReportedBy: tropikhajma at gmail.com


Created an attachment (id=68946)
 --> (http://bugs.kde.org/attachment.cgi?id=68946)
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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list