[Digikam-devel] [Bug 274455] New: build fails in kmemoryinfo - invalid conversion from 'void*' to 'kstat_named_t*'

tropikhajma tropikhajma at gmail.com
Sun May 29 20:10:12 BST 2011


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

           Summary: build fails in kmemoryinfo - invalid conversion from
                    'void*' to 'kstat_named_t*'
           Product: digikam
           Version: 2.0.0
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Portability
        AssignedTo: digikam-devel at kde.org
        ReportedBy: tropikhajma at gmail.com


Version:           2.0.0 (using KDE 4.6.2) 
OS:                Solaris

/home/test/packages/BUILD/digikam-2.0.0-beta5/i386/digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp:248:44:
error: invalid conversion from 'void*' to 'kstat_named_t*'

this worked for me, however I don't really speak c/c++:
---
/home/test/packages/BUILD/digikam-2.0.0-beta5/i386/digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp.orig
   2011-05-29 21:00:51.239385429 +0200
+++
/home/test/packages/BUILD/digikam-2.0.0-beta5/i386/digikam-2.0.0-beta5/core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp
   2011-05-29 21:04:44.065370487 +0200
@@ -245,7 +245,8 @@
         //sg_set_error(SG_ERROR_KSTAT_READ, NULL);
         return false;
     }
-    if((kn=kstat_data_lookup(ksp, "freemem")) == NULL){
+    kstat_data_lookup(ksp, "freemem");
+    if(ksp == NULL){
         //sg_set_error(SG_ERROR_KSTAT_DATA_LOOKUP, "freemem");
         return false;
     }

Reproducible: Always

-- 
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