Hi Sylvester,

Not sure which tarball you got a hold of, but I uploaded the code at
http://monitoringforge.org/plugins/modiostat .
I haven't fully tested c++ gmond dso before, so I am not sure how it will work.

However, I just slightly modified the dso template, replaced the .c
code with .cpp, edited the source with dummy class and got it compiled
successfully. You can see the sample here:

http://www.remnantone.com/pkgs/ganglia/dso_template2.tar.gz

Steps I took:

1. in configure.ac, i changed AC_PROG_CC to AC_PROG_CXX
2. ran in order:  aclocal-1.9; autoconf; automake-1.9 -v
3. ./configure; make


Let me know how it works out.

On Sat, Nov 14, 2009 at 6:52 PM, Sylvester Steele
<sylvesterste...@gmail.com> wrote:
>> I think you can search for "iostat" in the archives. If you can't find it,
>> I'll dig it up and reply again.
>
>
> Kim,
>
> I did get hold of the tar.gz that you'd put up:
>
> So if I take out your iostat module- put in mine, make appropriate
> changes to other files (basically make sure that all my functions are
> available etc.), and then build ganglia- will my code compile
> properly? I'm trying to not go into the details of the makefile!
>
>
> For completeness your makefile for iostat is:
>
>
> AM_CFLAGS  = -D_LARGEFILE64_SOURCE -I$(top_builddir)/include
> -I$(top_builddir)/libmetrics -I$(top_builddir)/lib
>
> if STATIC_BUILD
> noinst_LTLIBRARIES    = libmodiostat.la
> libmodiostat_la_SOURCES = mod_iostat.c
> libmodiostat_la_LDFLAGS = -export-all-symbols
> else
> pkglib_LTLIBRARIES    = modiostat.la
> modiostat_la_SOURCES = mod_iostat.c
> modiostat_la_LDFLAGS = -module -avoid-version
> modiostat_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
> endif
>
> INCLUDES = @APR_INCLUDES@
>
>
> Thanks,
> Sylvester
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to