Hi Ivan,

 

Thanks for your reply.

 

Does gmond 3.0.7 support multicast on windows?

 

I see somebody said he had compiled 3.1.7 successfully with Cygwin 1.5[1].
But I can’t find this version Cygwin installer.

When I compile 3.1.2 using Cygwin 1.7, the following error occurs:

$ uname -a

CYGWIN_NT-6.1-WOW64 Sam-THINK 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin

$ ./configure GANGLIA_ACK_SYSCONFDIR=1 --with-libconfuse=/usr/local
--enable-static-build --enable-debug

$ make

Making all in libmetrics

make[2]: Entering directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics'

make  all-recursive

make[3]: Entering directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics'

Making all in cygwin

make[4]: Entering directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics/cygwin'

if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I..    -I.. -I../../lib -I../../include -I/usr/include/tirpc -Wall -MT
metrics.lo -MD -MP -MF ".deps/metrics.Tpo" -c -o metrics.lo metrics.c; \

then mv -f ".deps/metrics.Tpo" ".deps/metrics.Plo"; else rm -f
".deps/metrics.Tpo"; exit 1; fi

mkdir .libs

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../../lib -I../../include
-I/usr/include/tirpc -Wall -MT metrics.lo -MD -MP -MF .deps/metrics.Tpo -c
metrics.c  -DPIC -o .libs/metrics.o

In file included from /usr/include/cygwin/in.h:267:0,

                 from /usr/include/netinet/in.h:14,

                 from /usr/include/tirpc/rpc/rpc.h:40,

                 from ../libmetrics.h:14,

                 from metrics.c:26:

/usr/include/cygwin/in6.h:75:8: error: redefinition of 'struct in6_addr'

struct in6_addr

        ^

In file included from /usr/include/w32api/ras.h:12:0,

                 from /usr/include/w32api/mprapi.h:10,

                 from /usr/include/w32api/iprtrmib.h:9,

                 from /usr/include/w32api/iphlpapi.h:13,

                 from metrics.c:16:

/usr/include/w32api/in6addr.h:17:16: note: originally defined here

typedef struct in6_addr {

                ^

metrics.c: In function 'pkts_in_func':

metrics.c:191:25: error: lvalue required as left operand of assignment

    (unsigned long) diff = in_pkts - last_pkts_in;

                         ^

metrics.c: In function 'pkts_out_func':

metrics.c:216:25: error: lvalue required as left operand of assignment

    (unsigned long) diff = out_pkts - last_pkts_out;

                         ^

metrics.c: In function 'bytes_out_func':

metrics.c:241:25: error: lvalue required as left operand of assignment

    (unsigned long) diff = out_bytes - last_bytes_out;

                         ^

metrics.c: In function 'bytes_in_func':

metrics.c:266:25: error: lvalue required as left operand of assignment

    (unsigned long) diff = in_bytes - last_bytes_in;

                         ^

metrics.c: In function 'proc_run_func':

metrics.c:729:9: warning: unused variable 'bResult' [-Wunused-variable]

    BOOL bResult;

         ^

metrics.c:728:11: warning: unused variable 'hProcess' [-Wunused-variable]

    HANDLE hProcess;

           ^

metrics.c:727:17: warning: unused variable 'i' [-Wunused-variable]

    unsigned int i, running = 0;

                 ^

metrics.c:726:46: warning: variable 'cProcesses' set but not used
[-Wunused-but-set-variable]

    DWORD aProcesses[MAXPROCESSES], cbNeeded, cProcesses;

                                              ^

metrics.c: In function 'find_disk_space':

metrics.c:888:7: warning: array subscript has type 'char'
[-Wchar-subscripts]

       if (islower(ent->mnt_fsname[0])) {

       ^

Makefile:239: recipe for target 'metrics.lo' failed

make[4]: *** [metrics.lo] Error 1

make[4]: Leaving directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics/cygwin'

Makefile:313: recipe for target 'all-recursive' failed

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics'

Makefile:199: recipe for target 'all' failed

make[2]: *** [all] Error 2

make[2]: Leaving directory
'/cygdrive/d/workspace/sandbox/ganglia-3.1.2/libmetrics'

Makefile:331: recipe for target 'all-recursive' failed

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory '/cygdrive/d/workspace/sandbox/ganglia-3.1.2'

Makefile:231: recipe for target 'all' failed

make: *** [all] Error 2

 

It seems like the Cygwin platform libmetric code include both linux socket
api and win32 socket api which comflict.

 

Any idea?

 

---

Regards

 

Sam

 

发件人: Ivan Lozgachev [mailto:[email protected]] 
发送时间: 2013年11月22日 14:48
收件人: Sam Song
主题: Re: [Ganglia-general] About windows support

 

Hi,

 

I'm able to compile ganglia-3.0.7 (both gmond and gmetad) using Cygwin (do
not remember which version). Also ganglia-3.1.2 can be compiled (but only
gmond).

 

--

Best regards,

Ivan.

 

2013/11/22 Sam Song <[email protected]>

Hi all,

I found that only ganglia core version 3.0.0 has a exe installer release
package and can compile successful using Cygwin 1.7. Any newer versions will
compile fail, even only compiling gmond.

I want to know what the ganglia team suggest about using it on windows
platform? Which version? How to build it? (using MS compiler or MinGW or
Cygwin?) Unicast or Multicast?

Any suggestions would be appreciated.

Sam


----------------------------------------------------------------------------
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311
<http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> &iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

 

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to