Bug 294460

Summary: std namespace issue [patch]
Product: [Applications] digikam Reporter: tropikhajma <tropikhajma>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In: 2.6.0
Attachments: patch
patch
patch

Description tropikhajma 2012-02-20 00:20:45 UTC
Created attachment 68944 [details]
patch

Version:           2.5.0 (using KDE 4.8.0) 
OS:                Solaris

trying to build digikam 2.5 with the  fails with the below error.
the attached patch fixes it 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/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 328: Error: The function "pow" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 353: Error: The function "pow" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 410: Error: The function "log" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 410: Error: The function "log" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 423: Error: The function "log" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exiflens.cpp", line 423: Error: The function "log" must have a prototype.
6 Error(s) detected.
...
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exifdevice.cpp", line 496: Warning: data hides QWidget::data.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exifdevice.cpp", line 543: Error: The function "log" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exifdevice.cpp", line 715: Error: The function "log" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exifdevice.cpp", line 715: Error: The function "log" must have a prototype.
...
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/metadataedit/exif/exifdevice.cpp", line 543: Error: The function "exp" must have a prototype.


Expected Results:  
builds ok

Solaris Studio 12.3 compiler
Comment 1 tropikhajma 2012-02-20 00:22:02 UTC
Created attachment 68945 [details]
patch
Comment 2 tropikhajma 2012-02-20 00:33:15 UTC
Created attachment 68947 [details]
patch

this one for this failure:
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 129: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 130: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 133: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 134: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 160: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 161: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 168: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 169: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 376: Error: The function "sqrt" must have a prototype.
"/opt/test2/packages/BUILD/digikam-2.5.0/i386/digikam-2.5.0/extra/kipi-plugins/printimages/tools/layouttree.cpp", line 377: Error: The function "sqrt" must have a prototype.
10 Error(s) detected.
Comment 3 caulier.gilles 2012-02-20 08:02:40 UTC
Git commit f4c111ff5bdd5318409c50831f1003df8e740193 by Gilles Caulier.
Committed on 20/02/2012 at 09:02.
Pushed by cgilles into branch 'master'.

fix namespace issues

M  +2    -2    metadataedit/exif/exifdevice.cpp
M  +4    -4    metadataedit/exif/exiflens.cpp
M  +10   -10   printimages/tools/layouttree.cpp

http://commits.kde.org/kipi-plugins/f4c111ff5bdd5318409c50831f1003df8e740193