Bug 281129 - build failure - Overloading ambiguity in mobile/lib/declarativeaconadiitem.cpp
Summary: build failure - Overloading ambiguity in mobile/lib/declarativeaconadiitem.cpp
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: libkdepim (show other bugs)
Version: 4.7
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 19:04 UTC by tropikhajma
Modified: 2011-09-05 15:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (619 bytes, patch)
2011-08-31 19:04 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2011-08-31 19:04:00 UTC
Created attachment 63272 [details]
patch

Version:           4.7 (using KDE 4.7.0) 
OS:                Solaris

building kdepim 4.7.0 with the Solaris Studio 12.x compiler fails with
...
"/home/test/packages/BUILD/kdepim-4.7.0/mobile/lib/declarativeakonadiitem.cpp", line 54: Error: Overloading ambiguity between "std::sqrt(double)" and "std::sqrt(float)".

this can be resolved by using the qSqrt function instead - see patch

Reproducible: Always

Steps to Reproduce:
build kdepim

Actual Results:  
does not build

Expected Results:  
builds
Comment 1 Laurent Montel 2011-09-05 15:34:56 UTC
Patch applied in master and 4.7.2
Regards.