Bug 221542 - build fails due to ambiguities
Summary: build fails due to ambiguities
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 16:12 UTC by tropikhajma
Modified: 2016-07-09 11:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.3.0


Attachments
patch (816 bytes, patch)
2010-01-06 16:13 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2010-01-06 16:12:51 UTC
Version:           4.3.85 (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

Building kdegraphics 4.3.85 on OpenSolaris using Sun Studio 12U1 fails with the below error message.
The attached patch fixes that.

cd /home/test/packages/BUILD/kdegraphics-4.3.85/build-kdegraphics-4.3.85/libs/libkdcraw/libkdcraw && /opt/sunstudio12.1/bin/CC  -library=no%Cstd -library=Crun -xannotate=no  -DLIBRAW_BUILDLIB -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DUSE_LCMS -DDCRAW_VERBOSE -D__EXTENSIONS__ -DSOLARIS -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNDEBUG -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT  -D_XOPEN_SOURCE=500 -D_XPG5  -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/foss/include -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_level=3 -xalias_level=compatible -KPIC -xipo=0 -xO2 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Y P,/opt/foss/lib -i -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -xannotate=no -Usun   -DQT_NO_DEBUG -KPIC -I/home/test/packages/BUILD/kdegraphics-4.3.85/build-kdegraphics-4.3.85/libs/libkdcraw/libkdcraw -I/home/test/packages/BUILD/kdegraphics-4.3.85/libs/libkdcraw/libkdcraw -I/home/test/packages/BUILD/kdegraphics-4.3.85 -I/home/test/packages/BUILD/kdegraphics-4.3.85/build-kdegraphics-4.3.85 -I/home/test/packages/BUILD/kdegraphics-4.3.85/libs/libkdcraw/libraw -I/opt/kde4/include -I/opt/kde4/include/KDE -I/opt/foss/include/KDE -I/opt/foss/include -I/opt/foss/qt4/include/QtScriptTools -I/opt/foss/qt4/include/phonon -I/opt/foss/qt4/include/QtXmlPatterns -I/opt/foss/qt4/include/QtWebKit -I/opt/foss/qt4/include/QtHelp -I/opt/foss/qt4/include/QtAssistant -I/opt/foss/qt4/include/QtDBus -I/opt/foss/qt4/include/QtTest -I/opt/foss/qt4/include/QtUiTools -I/opt/foss/qt4/include/QtScript -I/opt/foss/qt4/include/QtSvg -I/opt/foss/qt4/include/QtXml -I/opt/foss/qt4/include/QtSql -I/opt/foss/qt4/include/QtOpenGL -I/opt/foss/qt4/include/QtNetwork -I/opt/foss/qt4/include/QtMultimedia -I/opt/foss/qt4/include/QtDesigner -I/opt/foss/qt4/include/Qt3Support -I/opt/foss/qt4/include/QtGui -I/opt/foss/qt4/include/QtCore -I/opt/foss/qt4/include/Qt -I/opt/foss/qt4/share/mkspecs/default -I/opt/foss/qt4/include -I/usr/X11/include -I/usr/include/lcms    -D_LARGEFILE64_SOURCE  -D_LARGEFILE64_SOURCE -xopenmp -w -o CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_common.o -c /home/test/packages/BUILD/kdegraphics-4.3.85/libs/libkdcraw/libraw/internal/dcraw_common.cpp
"/home/test/packages/BUILD/kdegraphics-4.3.85/libs/libkdcraw/libraw/internal/dcraw_common.cpp", line 3163: Error: Overloading ambiguity between "std::sqrt(double)" and "std::sqrt(float)".
"/home/test/packages/BUILD/kdegraphics-4.3.85/libs/libkdcraw/libraw/internal/dcraw_common.cpp", line 3788: Error: Overloading ambiguity between "std::pow(double, double)" and "std::pow(float, float)".
2 Error(s) detected.
gmake[3]: *** [libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/__/libraw/internal/dcraw_common.o] Error 2
gmake[3]: Leaving directory `/home/test/packages/BUILD/kdegraphics-4.3.85/build-kdegraphics-4.3.85'
gmake[2]: *** [libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/all] Error 2
Comment 1 tropikhajma 2010-01-06 16:13:24 UTC
Created attachment 39613 [details]
patch
Comment 2 caulier.gilles 2010-01-07 08:54:21 UTC
Alex,

Another patch for libraw... Please take a look

Gilles Caulier
Comment 3 Alex Tutubalin 2010-01-07 09:24:12 UTC
Thanks.

To be included in next version.

Sorry, there is no Sun stdudio here, I use gcc and MSVC 2008 fkr test 
compilations

Alex


On 07.01.2010 10:54, Gilles Caulier wrote:
> https://bugs.kde.org/show_bug.cgi?id=221542
>
>
> Gilles Caulier<caulier.gilles@gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |caulier.gilles@gmail.com,
>                     |                            |lexa@lexa.ru
>
>
>
>
> --- Comment #2 from Gilles Caulier<caulier gilles gmail com>   2010-01-07 08:54:21 ---
> Alex,
>
> Another patch for libraw... Please take a look
>
> Gilles Caulier
>
>
Comment 4 caulier.gilles 2010-03-29 09:54:15 UTC
SVN commit 1108548 by cgilles:

update libraw 0.9.0-beta1 in libkdcraw core.
BUGS: 221542


 M  +4 -4      CMakeLists.txt  
 M  +10 -349   libraw/COPYRIGHT  
 M  +64 -0     libraw/Changelog.txt  
 A             libraw/LICENSE.CDDL  
 A             libraw/LICENSE.LGPL  
 M  +207 -20   libraw/internal/dcraw_common.cpp  
 M  +5 -1      libraw/internal/dcraw_fileio.cpp  
 M  +8 -1      libraw/internal/defines.h  
 D             libraw/internal/foveon.cpp  
 M  +0 -14     libraw/internal/libraw_internal_funcs.h  
 M  +1 -1      libraw/internal/var_defines.h  
 M  +17 -20    libraw/libraw/libraw.h  
 M  +13 -15    libraw/libraw/libraw_alloc.h  
 M  +13 -19    libraw/libraw/libraw_const.h  
 M  +14 -16    libraw/libraw/libraw_datastream.h  
 M  +14 -17    libraw/libraw/libraw_internal.h  
 M  +18 -16    libraw/libraw/libraw_types.h  
 M  +18 -18    libraw/libraw/libraw_version.h  
 M  +16 -20    libraw/samples/4channels.cpp  
 M  +27 -17    libraw/samples/dcraw_emu.cpp  
 M  +15 -15    libraw/samples/dcraw_half.c  
 M  +15 -15    libraw/samples/half_mt.c  
 M  +27 -28    libraw/samples/half_mt_win32.c  
 M  +15 -16    libraw/samples/mem_image.cpp  
 M  +15 -15    libraw/samples/raw-identify.cpp  
 M  +16 -16    libraw/samples/simple_dcraw.cpp  
 M  +15 -15    libraw/samples/unprocessed_raw.cpp  
 M  +23 -1     libraw/src/libraw_c_api.cpp  
 M  +93 -150   libraw/src/libraw_cxx.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1108548