I'm trying to compile ganglia from source. Compilation aborts with the following error
But expat.h exists:
Also I tried to install textproc/expat2, however it didn't help.
Code:
ganglia.c:8:19: error: expat.h: No such file or directory
ganglia.c: In function 'gexec_cluster':
ganglia.c:255: error: 'XML_Parser' undeclared (first use in this function)
ganglia.c:255: error: (Each undeclared identifier is reported only once
ganglia.c:255: error: for each function it appears in.)
ganglia.c:255: error: expected ';' before 'xml_parser'
ganglia.c:276: error: 'xml_parser' undeclared (first use in this function)
ganglia.c:276: warning: implicit declaration of function 'XML_ParserCreate'
ganglia.c:288: warning: implicit declaration of function 'XML_SetElementHandler'
ganglia.c:289: warning: implicit declaration of function 'XML_SetUserData'
ganglia.c:294: warning: implicit declaration of function 'XML_GetBuffer'
ganglia.c:294: warning: initialization makes pointer from integer without a cast
ganglia.c:312: warning: implicit declaration of function 'XML_ParseBuffer'
ganglia.c:316: warning: implicit declaration of function 'XML_GetCurrentLineNumber'
ganglia.c:317: warning: implicit declaration of function 'XML_ErrorString'
ganglia.c:317: warning: implicit declaration of function 'XML_GetErrorCode'
ganglia.c:317: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
ganglia.c:336: warning: implicit declaration of function 'XML_ParserFree'
*** Error code 1
But expat.h exists:
Code:
[/dev/pts/6]root@testhost:~# locate expat.h
/usr/local/include/expat.h
/usr/local/include/python2.7/pyexpat.h
/usr/src/contrib/expat/lib/expat.h
Also I tried to install textproc/expat2, however it didn't help.