Problem with statgrab

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

Problem with statgrab

Kefei Zeng

I'm installing Player on a different computer, and I've run into the following problem with both 3.0.2 and the SVN version.

/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp: In member function ‘virtual int StatGrabDriver::MainSetup()’:
/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:144:11: error: too few arguments to function ‘sg_error sg_init(int)’
   sg_init();
           ^
In file included from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.h:28:0,
                 from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:74:
/usr/include/statgrab.h:130:22: note: declared here
 __sg_public sg_error sg_init(int ignore_init_errors);
                      ^
In file included from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.h:28:0,
                 from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:74:
/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp: In member function ‘void StatGrabDriver::RefreshData()’:
/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:185:16: error: expected primary-expression before ‘)’ token
  cpu_percent = sg_get_cpu_percents();
                ^
/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:197:34: error: too few arguments to function ‘sg_mem_stats* sg_get_mem_stats(size_t*)’
  mem_data     = sg_get_mem_stats();
                                  ^
In file included from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.h:28:0,
                 from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:74:
/usr/include/statgrab.h:227:27: note: declared here
 __sg_public sg_mem_stats *sg_get_mem_stats(size_t *entries);
                           ^
/home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:198:35: error: too few arguments to function ‘sg_swap_stats* sg_get_swap_stats(size_t*)’
  swap_stats   = sg_get_swap_stats();
                                   ^
In file included from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.h:28:0,
                 from /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:74:
/usr/include/statgrab.h:264:28: note: declared here
 __sg_public sg_swap_stats *sg_get_swap_stats(size_t *entries);


I'm not too sure if I'm missing a dependency or something else entirely. I haven't found a solution to this one on the mailing list either. If anybody can help me out on this one, it'll be greatly appreciated.


------------------------------------------------------------------------------

_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with statgrab

Rich Mattes-2
On 11/04/2014 04:58 PM, Kefei Zeng wrote:

> I'm installing Player on a different computer, and I've run into the
> following problem with both 3.0.2 and the SVN version.
>
> /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp: In
> member function ‘virtual int StatGrabDriver::MainSetup()’:
> /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:144:11:
> error: too few arguments to function ‘sg_error sg_init(int)’
>     sg_init();
>             ^
> In file included from
> /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.h:28:0,
>                   from
> /home/peter/playersrc/server/drivers/health/statgrab/statgrab_health.cpp:74:
> /usr/include/statgrab.h:130:22: note: declared here
>   __sg_public sg_error sg_init(int ignore_init_errors);
>                        ^

[snip]

>
>
> I'm not too sure if I'm missing a dependency or something else entirely.
> I haven't found a solution to this one on the mailing list either. If
> anybody can help me out on this one, it'll be greatly appreciated.

statgrab-0.90 changed some of the library API, which Player is not yet
compatible with.  I just committed a check to make sure that version
0.17 or lower is available before trying to compile the statgrab driver.
  This should effectively disable the statgrab driver until it's updated
to work with version 0.90.

You can "svn up" to grab the change.  You might have to remove
CMakeCache.txt and re-run CMake to pick up on it.

Rich

------------------------------------------------------------------------------
_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users