[asterisk-dev] how to - add module dependency?

Chandrakant Solanki solanki.chandrakant at gmail.com
Wed May 5 04:29:17 CDT 2010


Hi

I have found following error...

app_custom.c:46:25: error: libxml/tree.h: No such file or directory
app_custom.c:47:27: error: libxml/parser.h: No such file or directory
app_custom.c:48:26: error: libxml/xpath.h: No such file or directory
app_custom.c:49:35: error: libxml/xpathInternals.h: No such file or
directory
app_custom.c:51: warning: type defaults to ‘int’ in declaration of ‘xmlChar’
app_custom.c:51: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
app_custom.c:53: error: expected ‘)’ before ‘nodes’
app_custom.c: In function ‘parse_xml_buffer_data’:
app_custom.c:58: warning: implicit declaration of function ‘xmlInitParser’
app_custom.c:59: error: ‘LIBXML_TEST_VERSION’ undeclared (first use in this
function)
app_custom.c:59: error: (Each undeclared identifier is reported only once
app_custom.c:59: error: for each function it appears in.)
app_custom.c:62: error: expected ‘;’ before ‘if’
app_custom.c:72: warning: implicit declaration of function ‘xmlMemoryDump’
app_custom.c: At top level:
app_custom.c:87: warning: type defaults to ‘int’ in declaration of ‘xmlChar’
app_custom.c:87: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
app_custom.c:139: error: expected ‘)’ before ‘nodes’


Code into C files looks like....

#define HAVE_LIBXML2 1

#if defined(HAVE_LIBXML2)
        #ifndef _POSIX_C_SOURCE /* Needed on Mac OS X */
                #define _POSIX_C_SOURCE 200112L
        #endif

#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>

int  execute_xpath_expression(const char* buffer,const xmlChar
*xml_element);
static int parse_xml_buffer_data(char *xml_argv, char *xml_element);
void print_xpath_nodes(xmlNodeSetPtr nodes, FILE* output);

---- Other C code line..

#endif

Have any idea.

-- 
Regards,

Chandrakant Solanki

On Wed, May 5, 2010 at 10:52 AM, Chandrakant Solanki <
solanki.chandrakant at gmail.com> wrote:

> Hi
>
> I am using *asterisk-1.6.0.5* on CentOS 5.3.
>
> I have added my custom module "app_xml_curl.c", which uses XML/CURL
> function. I would like to add this custom module into AST_TOP_DIR/apps.
>
> How to do this and what necessary steps I have to take care about this.
>
> Thanks in advance.
>
> --
> Regards,
>
> Chandrakant Solanki
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20100505/253f69c3/attachment.htm 


More information about the asterisk-dev mailing list