Hi,
I found a solution for this problem.
I ve just commented *#include <kvm.h>* in metrics.c
Unfortunately, I got another error:
-------------------------------------------------------------------------------------------------
gmond.c:43:18: error: pcre.h: No such file or directory
gmond.c: In function ‘setup_collection_groups’:
gmond.c:2178: error: ‘pcre’ undeclared (first use in this function)
gmond.c:2178: error: (Each undeclared identifier is reported only once
gmond.c:2178: error: for each function it appears in.)
gmond.c:2178: error: ‘pcre_re’ undeclared (first use in this function)
gmond.c:2190: warning: implicit declaration of function ‘pcre_compile’
gmond.c:2210: warning: implicit declaration of function ‘pcre_exec’
gmond.c:2214: error: ‘PCRE_ERROR_NOMATCH’ undeclared (first use in this
function)
gmond.c: In function ‘main’:
gmond.c:2792: warning: format not a string literal and no format arguments
make[3]: *** [gmond.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
-----------------------------------------------------------------------------------------------------------------------
Any idea to solve this error?
Thank you,
Afef
2010/11/7 Afef MDHAFFAR <[email protected]>
> Hi,
>
> I got this error message when I was trying to compile Ganglia on a Mac OSX
> Would you please help me to resolve this error?
>
> Thank you,
> Afef
> ----------------------------------ERROR
> MESSAGE----------------------------------------
> metrics.c:14:17: error: kvm.h: No such file or directory
> metrics.c: In function ‘proc_run_func’:
> metrics.c:658: warning: implicit declaration of function
> ‘host_processor_sets’
> metrics.c:667: warning: implicit declaration of function
> ‘host_processor_set_priv’
> metrics.c:693: warning: implicit declaration of function ‘thread_info’
> metrics.c:718: warning: implicit declaration of function ‘vm_deallocate’
> metrics.c:631: warning: unused variable ‘ti’
> metrics.c:630: warning: unused variable ‘a_task’
> metrics.c:626: warning: unused variable ‘port’
> metrics.c: In function ‘mem_free_func’:
> metrics.c:789: warning: pointer targets in passing argument 4 of
> ‘host_statistics’ differ in signedness
> metrics.c:783: warning: unused variable ‘host_port’
> metrics.c: In function ‘mtu_func’:
> metrics.c:847: warning: unused variable ‘min’
> metrics.c: In function ‘get_netbw’:
> metrics.c:966: warning: implicit declaration of function ‘errx’
> metrics.c: In function ‘makenetvfslist’:
> metrics.c:1263: warning: implicit declaration of function ‘warnx’
> metrics.c:1302: warning: assignment makes integer from pointer without a
> cast
> make[4]: *** [metrics.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> --------------------------------------------------------------------------------------------------------------------------------------
>
>
>
>
>
--
Afef MDHAFFAR
http://www.redcad.org/members/mdhaffar/
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general