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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from tropikhajma@gmail.com
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: [hidden email]
        ReportedBy: [hidden email]


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.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from tropikhajma@gmail.com
https://bugs.kde.org/show_bug.cgi?id=274455





--- Comment #1 from tropikhajma <tropikhajma gmail com>  2011-05-31 00:50:26 ---
actually, this is better:

--- core/libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp.orig  2011-05-29
21:00:51.239385429 +0200
+++ 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){
+    if((kn=(kstat_named_t *)kstat_data_lookup(ksp, "freemem")) == NULL){
+    
         //sg_set_error(SG_ERROR_KSTAT_DATA_LOOKUP, "freemem");
         return false;
     }

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from tropikhajma@gmail.com
https://bugs.kde.org/show_bug.cgi?id=274455


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2011-06-05 21:33:22 ---
Git commit a376a9a1fe803a732bd286fdbedc38707c10fbca by Gilles Caulier.
Committed on 05/06/2011 at 21:30.
Pushed by cgilles into branch 'master'.

build under Solaris
BUGS: 274455

M  +19   -19   libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp    

http://commits.kde.org/digikam/a376a9a1fe803a732bd286fdbedc38707c10fbca

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-4
In reply to this post by Bugzilla from tropikhajma@gmail.com
https://bugs.kde.org/show_bug.cgi?id=274455

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 274455] build fails in kmemoryinfo - invalid conversion from 'void*' to 'kstat_named_t*'

bugzilla_noreply
In reply to this post by Bugzilla from tropikhajma@gmail.com
https://bugs.kde.org/show_bug.cgi?id=274455

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Portability                 |Bundle-Tarball

--
You are receiving this mail because:
You are the assignee for the bug.