Coding Geek
2012-Mar-22 09:17 UTC
Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
Hi I am using xen4.0.3 in Opensuse11.4. I need to do the monitoring of VM''s and on that basis take the migration decision so I am trying to write my own xentop like program. But I am facing trouble while using xenstat.h in my C program. test.c:3:24: fatal error: xenstat.h: No such file or directory But my xentop is working fine. What to do in this case. How to use libxenstat library in my C program. Or if you have any other idea regarding Monitoring and migration. Please share. Thank you -- Tasvinder Singh _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Mar-22 09:25 UTC
Re: Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
On Thu, 2012-03-22 at 09:17 +0000, Coding Geek wrote:> > Hi > I am using xen4.0.3 in Opensuse11.4. I need to do the monitoring of > VM''s and on that basis take the migration decision so I am trying to > write my own xentop like program. But I am facing trouble while using > xenstat.h in my C program. > test.c:3:24: fatal error: xenstat.h: No such file or directorySo, this seems like a pretty clear error message. Is this header present on your system? You might need to install a development RPM? Ian.> But my xentop is working fine. What to do in this case. How to use > libxenstat library in my C program. > > Or if you have any other idea regarding Monitoring and migration. > Please share. > Thank you > -- > Tasvinder Singh > > > > >
Coding Geek
2012-Mar-22 09:42 UTC
Re: Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
Hello Ian, Xen and Xen-devel are already installed in my system and I am unable to locate libxenstat or xenstat.h On Thu, Mar 22, 2012 at 2:55 PM, Ian Campbell <Ian.Campbell@citrix.com>wrote:> On Thu, 2012-03-22 at 09:17 +0000, Coding Geek wrote: > > > > Hi > > I am using xen4.0.3 in Opensuse11.4. I need to do the monitoring of > > VM''s and on that basis take the migration decision so I am trying to > > write my own xentop like program. But I am facing trouble while using > > xenstat.h in my C program. > > test.c:3:24: fatal error: xenstat.h: No such file or directory > > So, this seems like a pretty clear error message. Is this header present > on your system? You might need to install a development RPM? > > Ian. > > > But my xentop is working fine. What to do in this case. How to use > > libxenstat library in my C program. > > > > Or if you have any other idea regarding Monitoring and migration. > > Please share. > > Thank you > > -- > > Tasvinder Singh > > > > > > > > > > > > >-- -- "To Iterate is Human, To Recurse is Divine" -- -- "To Iterate is Human, To Recurse is Divine" _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Mar-22 10:10 UTC
Re: Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
On Thu, 2012-03-22 at 09:42 +0000, Coding Geek wrote:> Xen and Xen-devel are already installed in my system and I am unable > to locate libxenstat or xenstat.hIt looks like Xen didn''t install these until after Xen 4.1, xentop is linked against the non-shared version of the library until commit 23075:b4351d57464b. I''m afraid you choice here is basically to rebuild your Xen rpm''s with that additional patch or to build libxenstat yourself from source. Ian.> > > > > On Thu, Mar 22, 2012 at 2:55 PM, Ian Campbell > <Ian.Campbell@citrix.com> wrote: > On Thu, 2012-03-22 at 09:17 +0000, Coding Geek wrote: > > > > Hi > > I am using xen4.0.3 in Opensuse11.4. I need to do the > monitoring of > > VM''s and on that basis take the migration decision so I am > trying to > > write my own xentop like program. But I am facing trouble > while using > > xenstat.h in my C program. > > test.c:3:24: fatal error: xenstat.h: No such file or > directory > > > So, this seems like a pretty clear error message. Is this > header present > on your system? You might need to install a development RPM? > > Ian. > > > > But my xentop is working fine. What to do in this case. How > to use > > libxenstat library in my C program. > > > > Or if you have any other idea regarding Monitoring and > migration. > > Please share. > > Thank you > > -- > > Tasvinder Singh > > > > > > > > > > > > > > > > > > -- > -- > > > "To Iterate is Human, To Recurse is Divine" > > > > > > -- > -- > > > "To Iterate is Human, To Recurse is Divine" >
Coding Geek
2012-Mar-22 11:46 UTC
Re: Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
Can you please brief me with the second option. How to build libxenstat from source. On Thu, Mar 22, 2012 at 3:40 PM, Ian Campbell <Ian.Campbell@citrix.com>wrote:> On Thu, 2012-03-22 at 09:42 +0000, Coding Geek wrote: > > > Xen and Xen-devel are already installed in my system and I am unable > > to locate libxenstat or xenstat.h > > It looks like Xen didn''t install these until after Xen 4.1, xentop is > linked against the non-shared version of the library until commit > 23075:b4351d57464b. > > I''m afraid you choice here is basically to rebuild your Xen rpm''s with > that additional patch or to build libxenstat yourself from source. > > Ian. > > > > > > > > > > > On Thu, Mar 22, 2012 at 2:55 PM, Ian Campbell > > <Ian.Campbell@citrix.com> wrote: > > On Thu, 2012-03-22 at 09:17 +0000, Coding Geek wrote: > > > > > > Hi > > > I am using xen4.0.3 in Opensuse11.4. I need to do the > > monitoring of > > > VM''s and on that basis take the migration decision so I am > > trying to > > > write my own xentop like program. But I am facing trouble > > while using > > > xenstat.h in my C program. > > > test.c:3:24: fatal error: xenstat.h: No such file or > > directory > > > > > > So, this seems like a pretty clear error message. Is this > > header present > > on your system? You might need to install a development RPM? > > > > Ian. > > > > > > > But my xentop is working fine. What to do in this case. How > > to use > > > libxenstat library in my C program. > > > > > > Or if you have any other idea regarding Monitoring and > > migration. > > > Please share. > > > Thank you > > > -- > > > Tasvinder Singh > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > -- > > > > > > "To Iterate is Human, To Recurse is Divine" > > > > > > > > > > > > -- > > -- > > > > > > "To Iterate is Human, To Recurse is Divine" > > > > >-- -- "To Iterate is Human, To Recurse is Divine" _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Mar-22 12:12 UTC
Re: Regarding xenstat [test.c:3:24: fatal error: xenstat.h: No such file or directory]
On Thu, 2012-03-22 at 11:46 +0000, Coding Geek wrote:> > Can you please brief me with the second option. How to build > libxenstat from source.You just need to build Xen itself and libxenstat will come out of that. WRT building Xen please try to do some research yourself first (e.g. use the search engines, read the docs etc) and ask questions if you have encounter problems. Thanks, Ian.> > > On Thu, Mar 22, 2012 at 3:40 PM, Ian Campbell > <Ian.Campbell@citrix.com> wrote: > On Thu, 2012-03-22 at 09:42 +0000, Coding Geek wrote: > > > Xen and Xen-devel are already installed in my system and I > am unable > > to locate libxenstat or xenstat.h > > > It looks like Xen didn''t install these until after Xen 4.1, > xentop is > linked against the non-shared version of the library until > commit > 23075:b4351d57464b. > > I''m afraid you choice here is basically to rebuild your Xen > rpm''s with > that additional patch or to build libxenstat yourself from > source. > > Ian. > > > > > > > > > > > > On Thu, Mar 22, 2012 at 2:55 PM, Ian Campbell > > <Ian.Campbell@citrix.com> wrote: > > On Thu, 2012-03-22 at 09:17 +0000, Coding Geek > wrote: > > > > > > Hi > > > I am using xen4.0.3 in Opensuse11.4. I need to do > the > > monitoring of > > > VM''s and on that basis take the migration decision > so I am > > trying to > > > write my own xentop like program. But I am facing > trouble > > while using > > > xenstat.h in my C program. > > > test.c:3:24: fatal error: xenstat.h: No such file > or > > directory > > > > > > So, this seems like a pretty clear error message. Is > this > > header present > > on your system? You might need to install a > development RPM? > > > > Ian. > > > > > > > But my xentop is working fine. What to do in this > case. How > > to use > > > libxenstat library in my C program. > > > > > > Or if you have any other idea regarding Monitoring > and > > migration. > > > Please share. > > > Thank you > > > -- > > > Tasvinder Singh > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > -- > > > > > > "To Iterate is Human, To Recurse is Divine" > > > > > > > > > > > > -- > > -- > > > > > > "To Iterate is Human, To Recurse is Divine" > > > > > > > > > -- > -- > > > "To Iterate is Human, To Recurse is Divine" >