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