You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Lee Provoost <l....@students.uu.nl> on 2005/12/22 20:33:18 UTC

[Axis2] build failed of axis2c-src-M0.2-linux on mac os x 10.3.9

Hi!

I try to build the axis2c-src-M0.2-linux on my mac os x 10.3.9

I installed the required versions of autoconf and automake as required 
and i applied the patch to get rid of cdecl as earlier suggested in one 
of the mails 
(http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg04747.html)

I get the errors when i choose for libxml2, but also for guthtilla 
(though another error)

In the case of libxml2:
==================
MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux leeprovoost$ 
sudo make
make  all-recursive
Making all in modules
Making all in util
Making all in src
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in xml
Making all in parser
Making all in libxml2
Making all in src
if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc 
-DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include 
-I../../../../../modules/util/src -I../../../../../modules/xml/parser 
-I    -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT 
axis2_libxml2_reader_wrapper.lo -MD -MP -MF 
".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o 
axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo" 
".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f 
".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include 
-I../../../../../modules/util/src -I../../../../../modules/xml/parser 
-I -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT 
axis2_libxml2_reader_wrapper.lo -MD -MP -MF 
.deps/axis2_libxml2_reader_wrapper.Tpo -c 
axis2_libxml2_reader_wrapper.c  -fno-common -DPIC -o 
.libs/axis2_libxml2_reader_wrapper.o
In file included from ../../../../../include/axis2_env.h:27,
                  from 
../../../../../modules/xml/parser/axis2_xml_reader.h:26,
                  from axis2_libxml2_reader_wrapper.c:18:
../../../../../include/axis2_error.h:59: warning: parameter has 
incomplete type
../../../../../include/axis2_error.h:62: warning: parameter has 
incomplete type
../../../../../include/axis2_error.h:65: warning: parameter has 
incomplete type
axis2_libxml2_reader_wrapper.c:19:31: libxml/xmlreader.h: No such file 
or directory
axis2_libxml2_reader_wrapper.c:112: error: parse error before 
"xmlTextReaderPtr"
axis2_libxml2_reader_wrapper.c:112: warning: no semicolon at end of 
struct or union
axis2_libxml2_reader_wrapper.c:127: error: parse error before '}' token
axis2_libxml2_reader_wrapper.c:127: warning: type defaults to `int' in 
declaration of `axis2_libxml2_reader_wrapper_impl_t'
axis2_libxml2_reader_wrapper.c:127: warning: data definition has no 
type or storage class
axis2_libxml2_reader_wrapper.c:138: error: parse error before '*' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_init_map':
axis2_libxml2_reader_wrapper.c:141: error: `parser' undeclared (first 
use in this function)
axis2_libxml2_reader_wrapper.c:141: error: (Each undeclared identifier 
is reported only once
axis2_libxml2_reader_wrapper.c:141: error: for each function it appears 
in.)
axis2_libxml2_reader_wrapper.c:146: error: `XML_READER_TYPE_ELEMENT' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:152: error: `XML_READER_TYPE_DOCUMENT' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:155: error: `XML_READER_TYPE_TEXT' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:157: error: `XML_READER_TYPE_CDATA' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:159: error: 
`XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in this 
function)
axis2_libxml2_reader_wrapper.c:162: error: `XML_READER_TYPE_WHITESPACE' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:164: error: 
`XML_READER_TYPE_END_ELEMENT' undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:167: error: 
`XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this 
function)
axis2_libxml2_reader_wrapper.c:170: error: `XML_READER_TYPE_END_ENTITY' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:172: error: `XML_READER_TYPE_ENTITY' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:174: error: 
`XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in this 
function)
axis2_libxml2_reader_wrapper.c:177: error: `XML_READER_TYPE_COMMENT' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:179: error: 
`XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c: In function 
`axis2_xml_reader_create_for_file':
axis2_libxml2_reader_wrapper.c:196: error: `wrapper_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:199: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:204: warning: implicit declaration of 
function `xmlNewTextReaderFilename'
axis2_libxml2_reader_wrapper.c:224: warning: implicit declaration of 
function `xmlFreeTextReader'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_xml_reader_create_for_memory':
axis2_libxml2_reader_wrapper.c:281: error: `wrapper_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:284: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:294: warning: implicit declaration of 
function `xmlReaderForIO'
axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_next':
axis2_libxml2_reader_wrapper.c:370: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:372: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:383: warning: implicit declaration of 
function `xmlTextReaderRead'
axis2_libxml2_reader_wrapper.c:387: warning: implicit declaration of 
function `xmlTextReaderNodeType'
axis2_libxml2_reader_wrapper.c:392: error: `XML_READER_TYPE_ELEMENT' 
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:394: warning: implicit declaration of 
function `xmlTextReaderIsEmptyElement'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_free':
axis2_libxml2_reader_wrapper.c:414: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:415: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:418: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_attribute_count':
axis2_libxml2_reader_wrapper.c:426: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:428: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_attribute_name_by_number':
axis2_libxml2_reader_wrapper.c:441: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:443: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:448: warning: implicit declaration of 
function `xmlTextReaderMoveToAttributeNo'
axis2_libxml2_reader_wrapper.c:451: warning: implicit declaration of 
function `xmlTextReaderLocalName'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number':
axis2_libxml2_reader_wrapper.c:463: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:465: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:473: warning: implicit declaration of 
function `xmlTextReaderPrefix'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_attribute_value_by_number':
axis2_libxml2_reader_wrapper.c:487: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:489: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:497: warning: implicit declaration of 
function `xmlTextReaderValue'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number':
axis2_libxml2_reader_wrapper.c:510: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:512: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:522: warning: implicit declaration of 
function `xmlTextReaderNamespaceUri'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_value':
axis2_libxml2_reader_wrapper.c:533: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:536: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_namespace_count':
axis2_libxml2_reader_wrapper.c:545: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:547: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_namespace_uri_by_number':
axis2_libxml2_reader_wrapper.c:561: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:563: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number':
axis2_libxml2_reader_wrapper.c:584: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:586: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_prefix':
axis2_libxml2_reader_wrapper.c:609: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:611: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:612: warning: implicit declaration of 
function `xmlTextReaderMoveToElement'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_name':
axis2_libxml2_reader_wrapper.c:620: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:622: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_pi_target':
axis2_libxml2_reader_wrapper.c:632: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:634: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_dtd':
axis2_libxml2_reader_wrapper.c:645: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:647: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_get_pi_data':
axis2_libxml2_reader_wrapper.c:659: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:661: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_xml_free':
axis2_libxml2_reader_wrapper.c:677: warning: implicit declaration of 
function `xmlFree'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_fill_maps':
axis2_libxml2_reader_wrapper.c:690: error: `parser_impl' undeclared 
(first use in this function)
axis2_libxml2_reader_wrapper.c:693: error: parse error before ')' token
axis2_libxml2_reader_wrapper.c:695: warning: implicit declaration of 
function `xmlTextReaderAttributeCount'
axis2_libxml2_reader_wrapper.c:708: warning: implicit declaration of 
function `xmlTextReaderName'
axis2_libxml2_reader_wrapper.c: In function 
`axis2_libxml2_reader_wrapper_read_input_callback':
axis2_libxml2_reader_wrapper.c:737: error: parse error before ')' token
make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


In the case of guththila
==================
MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux leeprovoost$ 
sudo make
Password:
make  all-recursive
Making all in modules
Making all in util
Making all in src
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in xml
Making all in parser
Making all in guththila
Making all in impl
Making all in src
if /bin/sh ../../../../../../libtool --tag=CC --mode=compile gcc 
-DHAVE_CONFIG_H -I. -I. -I../../../../../.. -I../../../../../../include 
-I/include      -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT 
guththila_token.lo -MD -MP -MF ".deps/guththila_token.Tpo" -c -o 
guththila_token.lo guththila_token.c; \
then mv -f ".deps/guththila_token.Tpo" ".deps/guththila_token.Plo"; 
else rm -f ".deps/guththila_token.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I../../../../../.. 
-I../../../../../../include -I/include -g -O2 -ansi -Wall 
-D_LARGEFILE64_SOURCE -g3 -O2 -MT guththila_token.lo -MD -MP -MF 
.deps/guththila_token.Tpo -c guththila_token.c  -fno-common -DPIC -o 
.libs/guththila_token.o
In file included from guththila_environment.h:20,
                  from guththila_token.h:24,
                  from guththila_token.c:21:
guththila_allocator.h:45: error: parse error before 
"guththila_allocator_init"
guththila_allocator.h:45: warning: type defaults to `int' in 
declaration of `guththila_allocator_init'
guththila_allocator.h:45: warning: data definition has no type or 
storage class
In file included from guththila_environment.h:21,
                  from guththila_token.h:24,
                  from guththila_token.c:21:
guththila_error.h:73: error: parse error before '*' token
guththila_error.h:73: warning: no semicolon at end of struct or union
guththila_error.h:74: error: parse error before '*' token
guththila_error.h:75: warning: type defaults to `int' in declaration of 
`guththila_error_ops_t'
guththila_error.h:75: warning: data definition has no type or storage 
class
guththila_error.h:85: error: parse error before "guththila_error_create"
guththila_error.h:85: warning: type defaults to `int' in declaration of 
`guththila_error_create'
guththila_error.h:85: warning: data definition has no type or storage 
class
In file included from guththila_environment.h:22,
                  from guththila_token.h:24,
                  from guththila_token.c:21:
guththila_log.h:41: error: parse error before '*' token
guththila_log.h:41: warning: no semicolon at end of struct or union
guththila_log.h:42: error: parse error before '*' token
guththila_log.h:44: warning: type defaults to `int' in declaration of 
`guththila_log_ops_t'
guththila_log.h:44: warning: data definition has no type or storage 
class
guththila_log.h:56: error: parse error before "guththila_log_create"
guththila_log.h:57: error: parse error before "guththila_log_ops_t"
guththila_log.h:57: warning: type defaults to `int' in declaration of 
`guththila_log_create'
guththila_log.h:57: warning: data definition has no type or storage 
class
In file included from guththila_token.h:24,
                  from guththila_token.c:21:
guththila_environment.h:42: error: parse error before 
"guththila_environment_create"
guththila_environment.h:44: warning: type defaults to `int' in 
declaration of `guththila_environment_create'
guththila_environment.h:44: warning: data definition has no type or 
storage class
guththila_environment.h:47: error: parse error before 
"guththila_environment_free"
guththila_environment.h:47: warning: type defaults to `int' in 
declaration of `guththila_environment_free'
guththila_environment.h:47: warning: data definition has no type or 
storage class
In file included from guththila_token.c:21:
guththila_token.h:53: error: parse error before 
"guththila_token_create_token_buffer"
guththila_token.h:54: warning: type defaults to `int' in declaration of 
`guththila_token_create_token_buffer'
guththila_token.h:54: warning: data definition has no type or storage 
class
guththila_token.h:57: error: parse error before 
"guththila_token_free_token_buffer"
guththila_token.h:58: warning: type defaults to `int' in declaration of 
`guththila_token_free_token_buffer'
guththila_token.h:58: warning: data definition has no type or storage 
class
guththila_token.h:60: error: parse error before "guththila_token_length"
guththila_token.h:61: warning: type defaults to `int' in declaration of 
`guththila_token_length'
guththila_token.h:61: warning: data definition has no type or storage 
class
guththila_token.h:64: error: parse error before 
"guththila_token_exception"
guththila_token.h:64: warning: type defaults to `int' in declaration of 
`guththila_token_exception'
guththila_token.h:64: warning: data definition has no type or storage 
class
guththila_token.h:67: error: parse error before "guththila_token_append"
guththila_token.h:68: warning: type defaults to `int' in declaration of 
`guththila_token_append'
guththila_token.h:68: warning: data definition has no type or storage 
class
guththila_token.h:71: error: parse error before "guththila_token_grow"
guththila_token.h:72: warning: type defaults to `int' in declaration of 
`guththila_token_grow'
guththila_token.h:72: warning: data definition has no type or storage 
class
guththila_token.h:75: error: parse error before "guththila_token_last"
guththila_token.h:76: warning: type defaults to `int' in declaration of 
`guththila_token_last'
guththila_token.h:76: warning: data definition has no type or storage 
class
guththila_token.h:79: error: parse error before "guththila_token_count"
guththila_token.h:80: warning: type defaults to `int' in declaration of 
`guththila_token_count'
guththila_token.h:80: warning: data definition has no type or storage 
class
guththila_token.h:83: error: parse error before 
"guththila_token_to_string"
guththila_token.h:85: warning: type defaults to `int' in declaration of 
`guththila_token_to_string'
guththila_token.h:85: warning: data definition has no type or storage 
class
guththila_token.h:88: error: parse error before 
"guththila_token_relocate"
guththila_token.h:90: warning: type defaults to `int' in declaration of 
`guththila_token_relocate'
guththila_token.h:90: warning: data definition has no type or storage 
class
guththila_token.h:94: error: parse error before 
"guththila_token_compare"
guththila_token.h:98: warning: type defaults to `int' in declaration of 
`guththila_token_compare'
guththila_token.h:98: warning: data definition has no type or storage 
class
guththila_token.h:102: error: parse error before 
"guththila_token_convert_utf16_to_utf8"
guththila_token.h:104: warning: type defaults to `int' in declaration 
of `guththila_token_convert_utf16_to_utf8'
guththila_token.h:104: warning: data definition has no type or storage 
class
guththila_token.h:107: error: parse error before 
"guththila_token_length_utf16"
guththila_token.h:108: warning: type defaults to `int' in declaration 
of `guththila_token_length_utf16'
guththila_token.h:108: warning: data definition has no type or storage 
class
guththila_token.h:112: error: parse error before 
"guththila_token_build_utf8"
guththila_token.h:114: warning: type defaults to `int' in declaration 
of `guththila_token_build_utf8'
guththila_token.h:114: warning: data definition has no type or storage 
class
guththila_token.h:117: error: parse error before 
"guththila_token_char_ref"
guththila_token.h:118: warning: type defaults to `int' in declaration 
of `guththila_token_char_ref'
guththila_token.h:118: warning: data definition has no type or storage 
class
In file included from guththila_token.c:23:
guththila_string.h:31: error: parse error before "guththila_strdup"
guththila_string.h:31: warning: type defaults to `int' in declaration 
of `guththila_strdup'
guththila_string.h:31: warning: data definition has no type or storage 
class
guththila_string.h:34: error: parse error before "guththila_strcmp"
guththila_string.h:35: warning: type defaults to `int' in declaration 
of `guththila_strcmp'
guththila_string.h:35: warning: data definition has no type or storage 
class
guththila_string.h:38: error: parse error before "guththila_strndup"
guththila_string.h:39: warning: type defaults to `int' in declaration 
of `guththila_strndup'
guththila_string.h:39: warning: data definition has no type or storage 
class
guththila_string.h:42: error: parse error before "guththila_strlen"
guththila_string.h:42: warning: type defaults to `int' in declaration 
of `guththila_strlen'
guththila_string.h:42: warning: data definition has no type or storage 
class
guththila_token.c:26: error: parse error before 
"guththila_token_create_token_buffer"
guththila_token.c:28: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_create_token_buffer':
guththila_token.c:33: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:38: error: parse error before 
"guththila_token_free_token_buffer"
guththila_token.c:40: warning: return type defaults to `int'
guththila_token.c:47: error: parse error before 
"guththila_token_exception"
guththila_token.c:48: warning: return type defaults to `int'
guththila_token.c:58: error: parse error before "guththila_token_length"
guththila_token.c:60: warning: return type defaults to `int'
guththila_token.c:70: error: parse error before "guththila_token_grow"
guththila_token.c:72: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_grow':
guththila_token.c:77: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:82: error: parse error before "guththila_token_append"
guththila_token.c:84: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_append':
guththila_token.c:87: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:92: error: parse error before "guththila_token_last"
guththila_token.c:94: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_last':
guththila_token.c:97: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:102: error: parse error before "guththila_token_count"
guththila_token.c:104: warning: return type defaults to `int'
guththila_token.c:109: error: parse error before 
"guththila_token_char_ref"
guththila_token.c:111: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_char_ref':
guththila_token.c:167: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:172: error: parse error before 
"guththila_token_to_string"
guththila_token.c:174: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_to_string':
guththila_token.c:189: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:212: error: parse error before 
"guththila_token_relocate"
guththila_token.c:214: warning: return type defaults to `int'
guththila_token.c:221: error: parse error before 
"guththila_token_compare"
guththila_token.c:224: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_compare':
guththila_token.c:230: warning: assignment makes pointer from integer 
without a cast
guththila_token.c: At top level:
guththila_token.c:237: error: parse error before 
"guththila_token_length_utf16"
guththila_token.c:239: warning: return type defaults to `int'
guththila_token.c:260: error: parse error before 
"guththila_token_build_utf8"
guththila_token.c:262: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_build_utf8':
guththila_token.c:302: warning: return makes integer from pointer 
without a cast
guththila_token.c: At top level:
guththila_token.c:307: error: parse error before 
"guththila_token_convert_utf16_to_utf8"
guththila_token.c:309: warning: return type defaults to `int'
guththila_token.c: In function `guththila_token_convert_utf16_to_utf8':
guththila_token.c:325: warning: assignment makes pointer from integer 
without a cast
guththila_token.c:329: warning: return makes integer from pointer 
without a cast
make[7]: *** [guththila_token.lo] Error 1
make[6]: *** [all-recursive] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

--
Lee Provoost
Software Technology Group
Department of Information and Computing Sciences
University of Utrecht, P.O. Box 80089 3508 TB, Utrecht, The Netherlands
{l.provoost} @students.uu.nl
http://blogs.webcoder.be/lee


Re: [Axis2] build failed of axis2c-src-M0.2-linux on mac os x 10.3.9

Posted by Sahan Gamage <sa...@wso2.com>.
Lee Provoost wrote:

> Hi Sahan
>
> First of all thanks for the quick reply. I did what you suggested. I
downloaded the 2.6.22 version of libxml2 and got it compiled on my mac +
all the tests ran perfectly. I added the LIBXML2_INCLUDE to my
environment with value /usr/include/libxml2 (on mac it's same as FC4
apparently :) ). But i get following errors:
>
> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux leeprovoost$
sudo make
> make all-recursive
> Making all in modules
> Making all in util
> Making all in src
> make[4]: Nothing to be done for `all'.
> make[4]: Nothing to be done for `all-am'.
> Making all in xml
> Making all in parser
> Making all in libxml2
> Making all in src
> if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
-I../../../../../modules/util/src -I../../../../../modules/xml/parser
-I/usr/include/libxml2/ -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2
-MT axis2_libxml2_reader_wrapper.lo -MD -MP -MF
".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o
axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
> then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"
".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f
".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
-I../../../../../modules/util/src -I../../../../../modules/xml/parser
-I/usr/include/libxml2/ -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2
-MT axis2_libxml2_reader_wrapper.lo -MD -MP -MF
.deps/axis2_libxml2_reader_wrapper.Tpo -c axis2_libxml2_reader_wrapper.c
-fno-common -DPIC -o .libs/axis2_libxml2_reader_wrapper.o
> In file included from ../../../../../include/axis2_env.h:27,
> from ../../../../../modules/xml/parser/axis2_xml_reader.h:26,
> from axis2_libxml2_reader_wrapper.c:18:
> ../../../../../include/axis2_error.h:59: warning: parameter has
incomplete type
> ../../../../../include/axis2_error.h:62: warning: parameter has
incomplete type
> ../../../../../include/axis2_error.h:65: warning: parameter has
incomplete type
> axis2_libxml2_reader_wrapper.c: In function
`axis2_libxml2_reader_wrapper_init_map':
> axis2_libxml2_reader_wrapper.c:146: error: `XML_READER_TYPE_ELEMENT'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:146: error: (Each undeclared identifier
is reported only once
> axis2_libxml2_reader_wrapper.c:146: error: for each function it appears
in.)
> axis2_libxml2_reader_wrapper.c:152: error: `XML_READER_TYPE_DOCUMENT'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:155: error: `XML_READER_TYPE_TEXT'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:157: error: `XML_READER_TYPE_CDATA'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:159: error:
`XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in this
function)
> axis2_libxml2_reader_wrapper.c:162: error: `XML_READER_TYPE_WHITESPACE'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:164: error:
`XML_READER_TYPE_END_ELEMENT' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:167: error:
`XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:170: error: `XML_READER_TYPE_END_ENTITY'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:172: error: `XML_READER_TYPE_ENTITY'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:174: error:
`XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in this
function)
> axis2_libxml2_reader_wrapper.c:177: error: `XML_READER_TYPE_COMMENT'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:179: error:
`XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c: In function
`axis2_xml_reader_create_for_memory':
> axis2_libxml2_reader_wrapper.c:294: warning: implicit declaration of
function `xmlReaderForIO'
> axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'
undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:295: warning: assignment makes pointer
from integer without a cast
> axis2_libxml2_reader_wrapper.c: In function
`axis2_libxml2_reader_wrapper_next':
> axis2_libxml2_reader_wrapper.c:392: error: `XML_READER_TYPE_ELEMENT'
undeclared (first use in this function)
> make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
> make[5]: *** [all-recursive] Error 1
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Apparently he can't find those XML constats that are mapped to the
AXIS2 XML constants. So i guess i still need some configuration thing
right? I looked in the install manual from axis2 and it says that i
should also have LIBXML2_LIB in my environment. I'm not really sure what
kind of value i have to use here, I tried /usr/lib cuz i found some
libxml2 files there, but it's not wokring. Any suggestions?
>
> Kind regards
>
> Lee
> --
> Lee Provoost
> Software Technology Group
> Department of Information and Computing Sciences
> University of Utrecht, P.O. Box 80089 3508 TB, Utrecht, The Netherlands
> {l.provoost} @students.uu.nl
> http://blogs.webcoder.be/lee
>
> On 23 Dec 2005, at 04:56, Sahan Gamage wrote:
>

> Sahan Gamage wrote:
>
> >>> Lee Provoost wrote:
> >>>
> >>>> Hi!
> >>>
> >>>
> >>>> I try to build the axis2c-src-M0.2-linux on my mac os x 10.3.9
> >>>
> >>>
> >>>> I installed the required versions of autoconf and automake as
> >>>> required and i applied the patch to get rid of cdecl as earlier
> >>>> suggested in one of the mails
> >>>> (http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg04747.html)
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>> I get the errors when i choose for libxml2, but also for
> >>>> guthtilla (though another error)
> >>>
> >>>
> >>>> In the case of libxml2: ==================
> >>>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
> >>>> leeprovoost$ sudo make make all-recursive Making all in modules
> >>>> Making all in util Making all in src make[4]: Nothing to be done
> >>>> for `all'. make[4]: Nothing to be done for `all-am'. Making all
> >>>> in xml Making all in parser Making all in libxml2 Making all in
> >>>> src if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc
> >>>> -DHAVE_CONFIG_H -I. -I. -I../../../../..
> >>>> -I../../../../../include -I../../../../../modules/util/src
> >>>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
> >>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
> >>>> -MD -MP -MF ".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o
> >>>> axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
> >>>> then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"
> >>>> ".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f
> >>>> ".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi gcc
> >>>> -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
> >>>> -I../../../../../modules/util/src
> >>>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
> >>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
> >>>> -MD -MP -MF .deps/axis2_libxml2_reader_wrapper.Tpo -c
> >>>> axis2_libxml2_reader_wrapper.c -fno-common -DPIC -o
> >>>> .libs/axis2_libxml2_reader_wrapper.o In file included from
> >>>> ../../../../../include/axis2_env.h:27, from
> >>>> ../../../../../modules/xml/parser/axis2_xml_reader.h:26, from
> >>>> axis2_libxml2_reader_wrapper.c:18:
> >>>> ../../../../../include/axis2_error.h:59: warning: parameter has
> >>>> incomplete type ../../../../../include/axis2_error.h:62: warning:
> >>>> parameter has incomplete type
> >>>> ../../../../../include/axis2_error.h:65: warning: parameter has
> >>>> incomplete type axis2_libxml2_reader_wrapper.c:19:31:
> >>>> libxml/xmlreader.h: No such file or directory
> >>>> axis2_libxml2_reader_wrapper.c:112: error: parse error before
> >>>> "xmlTextReaderPtr" axis2_libxml2_reader_wrapper.c:112: warning:
> >>>> no semicolon at end of struct or union
> >>>> axis2_libxml2_reader_wrapper.c:127: error: parse error before '}'
> >>>> token axis2_libxml2_reader_wrapper.c:127: warning: type defaults
> >>>> to `int' in declaration of `axis2_libxml2_reader_wrapper_impl_t'
> >>>> axis2_libxml2_reader_wrapper.c:127: warning: data definition has
> >>>> no type or storage class axis2_libxml2_reader_wrapper.c:138:
> >>>> error: parse error before '*' token
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_init_map':
> >>>> axis2_libxml2_reader_wrapper.c:141: error: `parser' undeclared
> >>>> (first use in this function) axis2_libxml2_reader_wrapper.c:141:
> >>>> error: (Each undeclared identifier is reported only once
> >>>> axis2_libxml2_reader_wrapper.c:141: error: for each function it
> >>>> appears in.) axis2_libxml2_reader_wrapper.c:146: error:
> >>>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:152: error:
> >>>> `XML_READER_TYPE_DOCUMENT' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c:155: error:
> >>>> `XML_READER_TYPE_TEXT' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:157: error:
> >>>> `XML_READER_TYPE_CDATA' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:159: error:
> >>>> `XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in
> >>>> this function) axis2_libxml2_reader_wrapper.c:162: error:
> >>>> `XML_READER_TYPE_WHITESPACE' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c:164: error:
> >>>> `XML_READER_TYPE_END_ELEMENT' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c:167: error:
> >>>> `XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c:170: error:
> >>>> `XML_READER_TYPE_END_ENTITY' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c:172: error:
> >>>> `XML_READER_TYPE_ENTITY' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:174: error:
> >>>> `XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in
> >>>> this function) axis2_libxml2_reader_wrapper.c:177: error:
> >>>> `XML_READER_TYPE_COMMENT' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:179: error:
> >>>> `XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this
> >>>> function) axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_xml_reader_create_for_file':
> >>>> axis2_libxml2_reader_wrapper.c:196: error: `wrapper_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:199: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:204: warning: implicit
> >>>> declaration of function `xmlNewTextReaderFilename'
> >>>> axis2_libxml2_reader_wrapper.c:224: warning: implicit declaration
> >>>> of function `xmlFreeTextReader' axis2_libxml2_reader_wrapper.c:
> >>>> In function `axis2_xml_reader_create_for_memory':
> >>>> axis2_libxml2_reader_wrapper.c:281: error: `wrapper_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:284: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:294: warning: implicit
> >>>> declaration of function `xmlReaderForIO'
> >>>> axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_next':
> >>>> axis2_libxml2_reader_wrapper.c:370: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:372: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:383: warning: implicit
> >>>> declaration of function `xmlTextReaderRead'
> >>>> axis2_libxml2_reader_wrapper.c:387: warning: implicit declaration
> >>>> of function `xmlTextReaderNodeType'
> >>>> axis2_libxml2_reader_wrapper.c:392: error:
> >>>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:394: warning: implicit
> >>>> declaration of function `xmlTextReaderIsEmptyElement'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_free':
> >>>> axis2_libxml2_reader_wrapper.c:414: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:415: error: parse error
> >>>> before ')' token axis2_libxml2_reader_wrapper.c:418: error: parse
> >>>> error before ')' token axis2_libxml2_reader_wrapper.c: In
> >>>> function `axis2_libxml2_reader_wrapper_get_attribute_count':
> >>>> axis2_libxml2_reader_wrapper.c:426: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:428: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_attribute_name_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:441: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:443: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:448: warning: implicit
> >>>> declaration of function `xmlTextReaderMoveToAttributeNo'
> >>>> axis2_libxml2_reader_wrapper.c:451: warning: implicit declaration
> >>>> of function `xmlTextReaderLocalName'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:463: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:465: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:473: warning: implicit
> >>>> declaration of function `xmlTextReaderPrefix'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_attribute_value_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:487: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:489: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:497: warning: implicit
> >>>> declaration of function `xmlTextReaderValue'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:510: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:512: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:522: warning: implicit
> >>>> declaration of function `xmlTextReaderNamespaceUri'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_value':
> >>>> axis2_libxml2_reader_wrapper.c:533: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:536: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_namespace_count':
> >>>> axis2_libxml2_reader_wrapper.c:545: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:547: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_namespace_uri_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:561: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:563: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number':
> >>>> axis2_libxml2_reader_wrapper.c:584: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:586: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_prefix':
> >>>> axis2_libxml2_reader_wrapper.c:609: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:611: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:612: warning: implicit
> >>>> declaration of function `xmlTextReaderMoveToElement'
> >>>> axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_name':
> >>>> axis2_libxml2_reader_wrapper.c:620: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:622: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_pi_target':
> >>>> axis2_libxml2_reader_wrapper.c:632: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:634: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_dtd':
> >>>> axis2_libxml2_reader_wrapper.c:645: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:647: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_get_pi_data':
> >>>> axis2_libxml2_reader_wrapper.c:659: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:661: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c: In function
> >>>> `axis2_libxml2_reader_wrapper_xml_free':
> >>>> axis2_libxml2_reader_wrapper.c:677: warning: implicit declaration
> >>>> of function `xmlFree' axis2_libxml2_reader_wrapper.c: In
> >>>> function `axis2_libxml2_reader_wrapper_fill_maps':
> >>>> axis2_libxml2_reader_wrapper.c:690: error: `parser_impl'
> >>>> undeclared (first use in this function)
> >>>> axis2_libxml2_reader_wrapper.c:693: error: parse error before ')'
> >>>> token axis2_libxml2_reader_wrapper.c:695: warning: implicit
> >>>> declaration of function `xmlTextReaderAttributeCount'
> >>>> axis2_libxml2_reader_wrapper.c:708: warning: implicit declaration
> >>>> of function `xmlTextReaderName' axis2_libxml2_reader_wrapper.c:
> >>>> In function `axis2_libxml2_reader_wrapper_read_input_callback':
> >>>> axis2_libxml2_reader_wrapper.c:737: error: parse error before ')'
> >>>> token make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
> >>>> make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive]
> >>>> Error 1 make[3]: *** [all-recursive] Error 1 make[2]: ***
> >>>> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1
> >>>> make: *** [all] Error 2
> >>>
> >>>
> >>>
> >>>> In the case of guththila ==================
> >>>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
> >>>> leeprovoost$ sudo make Password: make all-recursive Making all in
> >>>> modules Making all in util Making all in src make[4]: Nothing to
> >>>> be done for `all'. make[4]: Nothing to be done for `all-am'.
> >>>> Making all in xml Making all in parser Making all in guththila
> >>>> Making all in impl Making all in src if /bin/sh
> >>>> ../../../../../../libtool --tag=CC --mode=compile gcc
> >>>> -DHAVE_CONFIG_H -I. -I. -I../../../../../..
> >>>> -I../../../../../../include -I/include -g -O2 -ansi -Wall
> >>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT guththila_token.lo -MD -MP -MF
> >>>> ".deps/guththila_token.Tpo" -c -o guththila_token.lo
> >>>> guththila_token.c; \ then mv -f ".deps/guththila_token.Tpo"
> >>>> ".deps/guththila_token.Plo"; else rm -f
> >>>> ".deps/guththila_token.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I.
> >>>> -I. -I../../../../../.. -I../../../../../../include -I/include -g
> >>>> -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT
> >>>> guththila_token.lo -MD -MP -MF .deps/guththila_token.Tpo -c
> >>>> guththila_token.c -fno-common -DPIC -o .libs/guththila_token.o In
> >>>> file included from guththila_environment.h:20, from
> >>>> guththila_token.h:24, from guththila_token.c:21:
> >>>> guththila_allocator.h:45: error: parse error before
> >>>> "guththila_allocator_init" guththila_allocator.h:45: warning:
> >>>> type defaults to `int' in declaration of
> >>>> `guththila_allocator_init' guththila_allocator.h:45: warning:
> >>>> data definition has no type or storage class In file included
> >>>> from guththila_environment.h:21, from guththila_token.h:24, from
> >>>> guththila_token.c:21: guththila_error.h:73: error: parse error
> >>>> before '*' token guththila_error.h:73: warning: no semicolon at
> >>>> end of struct or union guththila_error.h:74: error: parse error
> >>>> before '*' token guththila_error.h:75: warning: type defaults to
> >>>> `int' in declaration of `guththila_error_ops_t'
> >>>> guththila_error.h:75: warning: data definition has no type or
> >>>> storage class guththila_error.h:85: error: parse error before
> >>>> "guththila_error_create" guththila_error.h:85: warning: type
> >>>> defaults to `int' in declaration of `guththila_error_create'
> >>>> guththila_error.h:85: warning: data definition has no type or
> >>>> storage class In file included from guththila_environment.h:22,
> >>>> from guththila_token.h:24, from guththila_token.c:21:
> >>>> guththila_log.h:41: error: parse error before '*' token
> >>>> guththila_log.h:41: warning: no semicolon at end of struct or
> >>>> union guththila_log.h:42: error: parse error before '*' token
> >>>> guththila_log.h:44: warning: type defaults to `int' in
> >>>> declaration of `guththila_log_ops_t' guththila_log.h:44: warning:
> >>>> data definition has no type or storage class guththila_log.h:56:
> >>>> error: parse error before "guththila_log_create"
> >>>> guththila_log.h:57: error: parse error before
> >>>> "guththila_log_ops_t" guththila_log.h:57: warning: type defaults
> >>>> to `int' in declaration of `guththila_log_create'
> >>>> guththila_log.h:57: warning: data definition has no type or
> >>>> storage class In file included from guththila_token.h:24, from
> >>>> guththila_token.c:21: guththila_environment.h:42: error: parse
> >>>> error before "guththila_environment_create"
> >>>> guththila_environment.h:44: warning: type defaults to `int' in
> >>>> declaration of `guththila_environment_create'
> >>>> guththila_environment.h:44: warning: data definition has no type
> >>>> or storage class guththila_environment.h:47: error: parse error
> >>>> before "guththila_environment_free" guththila_environment.h:47:
> >>>> warning: type defaults to `int' in declaration of
> >>>> `guththila_environment_free' guththila_environment.h:47: warning:
> >>>> data definition has no type or storage class In file included
> >>>> from guththila_token.c:21: guththila_token.h:53: error: parse
> >>>> error before "guththila_token_create_token_buffer"
> >>>> guththila_token.h:54: warning: type defaults to `int' in
> >>>> declaration of `guththila_token_create_token_buffer'
> >>>> guththila_token.h:54: warning: data definition has no type or
> >>>> storage class guththila_token.h:57: error: parse error before
> >>>> "guththila_token_free_token_buffer" guththila_token.h:58:
> >>>> warning: type defaults to `int' in declaration of
> >>>> `guththila_token_free_token_buffer' guththila_token.h:58:
> >>>> warning: data definition has no type or storage class
> >>>> guththila_token.h:60: error: parse error before
> >>>> "guththila_token_length" guththila_token.h:61: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_length'
> >>>> guththila_token.h:61: warning: data definition has no type or
> >>>> storage class guththila_token.h:64: error: parse error before
> >>>> "guththila_token_exception" guththila_token.h:64: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_exception'
> >>>> guththila_token.h:64: warning: data definition has no type or
> >>>> storage class guththila_token.h:67: error: parse error before
> >>>> "guththila_token_append" guththila_token.h:68: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_append'
> >>>> guththila_token.h:68: warning: data definition has no type or
> >>>> storage class guththila_token.h:71: error: parse error before
> >>>> "guththila_token_grow" guththila_token.h:72: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_grow'
> >>>> guththila_token.h:72: warning: data definition has no type or
> >>>> storage class guththila_token.h:75: error: parse error before
> >>>> "guththila_token_last" guththila_token.h:76: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_last'
> >>>> guththila_token.h:76: warning: data definition has no type or
> >>>> storage class guththila_token.h:79: error: parse error before
> >>>> "guththila_token_count" guththila_token.h:80: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_count'
> >>>> guththila_token.h:80: warning: data definition has no type or
> >>>> storage class guththila_token.h:83: error: parse error before
> >>>> "guththila_token_to_string" guththila_token.h:85: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_to_string'
> >>>> guththila_token.h:85: warning: data definition has no type or
> >>>> storage class guththila_token.h:88: error: parse error before
> >>>> "guththila_token_relocate" guththila_token.h:90: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_relocate'
> >>>> guththila_token.h:90: warning: data definition has no type or
> >>>> storage class guththila_token.h:94: error: parse error before
> >>>> "guththila_token_compare" guththila_token.h:98: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_compare'
> >>>> guththila_token.h:98: warning: data definition has no type or
> >>>> storage class guththila_token.h:102: error: parse error before
> >>>> "guththila_token_convert_utf16_to_utf8" guththila_token.h:104:
> >>>> warning: type defaults to `int' in declaration of
> >>>> `guththila_token_convert_utf16_to_utf8' guththila_token.h:104:
> >>>> warning: data definition has no type or storage class
> >>>> guththila_token.h:107: error: parse error before
> >>>> "guththila_token_length_utf16" guththila_token.h:108: warning:
> >>>> type defaults to `int' in declaration of
> >>>> `guththila_token_length_utf16' guththila_token.h:108: warning:
> >>>> data definition has no type or storage class
> >>>> guththila_token.h:112: error: parse error before
> >>>> "guththila_token_build_utf8" guththila_token.h:114: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_build_utf8'
> >>>> guththila_token.h:114: warning: data definition has no type or
> >>>> storage class guththila_token.h:117: error: parse error before
> >>>> "guththila_token_char_ref" guththila_token.h:118: warning: type
> >>>> defaults to `int' in declaration of `guththila_token_char_ref'
> >>>> guththila_token.h:118: warning: data definition has no type or
> >>>> storage class In file included from guththila_token.c:23:
> >>>> guththila_string.h:31: error: parse error before
> >>>> "guththila_strdup" guththila_string.h:31: warning: type defaults
> >>>> to `int' in declaration of `guththila_strdup'
> >>>> guththila_string.h:31: warning: data definition has no type or
> >>>> storage class guththila_string.h:34: error: parse error before
> >>>> "guththila_strcmp" guththila_string.h:35: warning: type defaults
> >>>> to `int' in declaration of `guththila_strcmp'
> >>>> guththila_string.h:35: warning: data definition has no type or
> >>>> storage class guththila_string.h:38: error: parse error before
> >>>> "guththila_strndup" guththila_string.h:39: warning: type defaults
> >>>> to `int' in declaration of `guththila_strndup'
> >>>> guththila_string.h:39: warning: data definition has no type or
> >>>> storage class guththila_string.h:42: error: parse error before
> >>>> "guththila_strlen" guththila_string.h:42: warning: type defaults
> >>>> to `int' in declaration of `guththila_strlen'
> >>>> guththila_string.h:42: warning: data definition has no type or
> >>>> storage class guththila_token.c:26: error: parse error before
> >>>> "guththila_token_create_token_buffer" guththila_token.c:28:
> >>>> warning: return type defaults to `int' guththila_token.c: In
> >>>> function `guththila_token_create_token_buffer':
> >>>> guththila_token.c:33: warning: return makes integer from pointer
> >>>> without a cast guththila_token.c: At top level:
> >>>> guththila_token.c:38: error: parse error before
> >>>> "guththila_token_free_token_buffer" guththila_token.c:40:
> >>>> warning: return type defaults to `int' guththila_token.c:47:
> >>>> error: parse error before "guththila_token_exception"
> >>>> guththila_token.c:48: warning: return type defaults to `int'
> >>>> guththila_token.c:58: error: parse error before
> >>>> "guththila_token_length" guththila_token.c:60: warning: return
> >>>> type defaults to `int' guththila_token.c:70: error: parse error
> >>>> before "guththila_token_grow" guththila_token.c:72: warning:
> >>>> return type defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_grow': guththila_token.c:77: warning: return
> >>>> makes integer from pointer without a cast guththila_token.c: At
> >>>> top level: guththila_token.c:82: error: parse error before
> >>>> "guththila_token_append" guththila_token.c:84: warning: return
> >>>> type defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_append': guththila_token.c:87: warning: return
> >>>> makes integer from pointer without a cast guththila_token.c: At
> >>>> top level: guththila_token.c:92: error: parse error before
> >>>> "guththila_token_last" guththila_token.c:94: warning: return type
> >>>> defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_last': guththila_token.c:97: warning: return
> >>>> makes integer from pointer without a cast guththila_token.c: At
> >>>> top level: guththila_token.c:102: error: parse error before
> >>>> "guththila_token_count" guththila_token.c:104: warning: return
> >>>> type defaults to `int' guththila_token.c:109: error: parse error
> >>>> before "guththila_token_char_ref" guththila_token.c:111: warning:
> >>>> return type defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_char_ref': guththila_token.c:167: warning:
> >>>> return makes integer from pointer without a cast
> >>>> guththila_token.c: At top level: guththila_token.c:172: error:
> >>>> parse error before "guththila_token_to_string"
> >>>> guththila_token.c:174: warning: return type defaults to `int'
> >>>> guththila_token.c: In function `guththila_token_to_string':
> >>>> guththila_token.c:189: warning: return makes integer from pointer
> >>>> without a cast guththila_token.c: At top level:
> >>>> guththila_token.c:212: error: parse error before
> >>>> "guththila_token_relocate" guththila_token.c:214: warning: return
> >>>> type defaults to `int' guththila_token.c:221: error: parse error
> >>>> before "guththila_token_compare" guththila_token.c:224: warning:
> >>>> return type defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_compare': guththila_token.c:230: warning:
> >>>> assignment makes pointer from integer without a cast
> >>>> guththila_token.c: At top level: guththila_token.c:237: error:
> >>>> parse error before "guththila_token_length_utf16"
> >>>> guththila_token.c:239: warning: return type defaults to `int'
> >>>> guththila_token.c:260: error: parse error before
> >>>> "guththila_token_build_utf8" guththila_token.c:262: warning:
> >>>> return type defaults to `int' guththila_token.c: In function
> >>>> `guththila_token_build_utf8': guththila_token.c:302: warning:
> >>>> return makes integer from pointer without a cast
> >>>> guththila_token.c: At top level: guththila_token.c:307: error:
> >>>> parse error before "guththila_token_convert_utf16_to_utf8"
> >>>> guththila_token.c:309: warning: return type defaults to `int'
> >>>> guththila_token.c: In function
> >>>> `guththila_token_convert_utf16_to_utf8': guththila_token.c:325:
> >>>> warning: assignment makes pointer from integer without a cast
> >>>> guththila_token.c:329: warning: return makes integer from pointer
> >>>> without a cast make[7]: *** [guththila_token.lo] Error 1
> >>>> make[6]: *** [all-recursive] Error 1 make[5]: *** [all-recursive]
> >>>> Error 1 make[4]: *** [all-recursive] Error 1 make[3]: ***
> >>>> [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1
> >>>> make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
> >>>
> >>>
> >>>> -- Lee Provoost Software Technology Group Department of
> >>>> Information and Computing Sciences University of Utrecht, P.O.
> >>>> Box 80089 3508 TB, Utrecht, The Netherlands {l.provoost}
> >>>> @students.uu.nl http://blogs.webcoder.be/lee
> >>>
> >>>
> >>>
> >>> Hi Lee,
> >>>
> >>> 1 . It seems that you don't have libxml library installed in your
> >>> machine. [axis2_libxml2_reader_wrapper.c:19:31: libxml/xmlreader.h:
> >>> No such file or directory ] If so please download the libxml2
> >>> library from http://www.xmlsoft.org/ and install it. If you already
> >>> have it, make sure it is in the search path of the include files
> >>> (in Linux FC4, it comes in the directory
> >>> /usr/include/libxml2/libxml/) 2. Axis2 and Guththila use their own
> >>> versions of calling conventions (AXIS2_CALL and GUTHTHILA_CALL). By
> >>> the previous patch the problem with Axis2 calling convention was
> >>> corrected, but not the guththila's calling convention. So here's
> >>> the patch for that. -
> >>>
> ----------------------------------------------------------------------
> ---------------------------------------------------
> >>>
> >>>
> >>> ===================================================================
> >>> --- guththila_defines.h (revision 356508) +++ guththila_defines.h
> >>> (working copy) @@ -43,8 +43,12 @@ * Calling Conventions */ #if
> >>> defined(__GNUC__) +#if defined(__i386) #define GUTHTHILA_CALL
> >>> __attribute__((cdecl)) #else +#define GUTHTHILA_CALL +#endif +#else
> >>> #if defined(__unix) #define GUTHTHILA_CALL #else /* WIN32 */ -
> >>>
> ----------------------------------------------------------------------
> --------------------------------------
> >>>
> >>>
> >>>
> >>> - Sahan
>
>
>
> One more point. You have to set the environment variable
> LIBXML2_INCLUDE=<where your libxml includes are> In my machine it is
> LIBXML2_INCLUDE=/usr/include/libxml2
> Then do autogen and configure.
>
> - Sahan

>>

Hi Lee,

Sorry about the delay to reply.
According to the compiler output you have sent, it seems that still you
haven't got the LIBXML include path to compilers include search path.
Two things I want to clarify :
1) Did you do autogen (sh authogen.sh) and configure after setting the
environment variable ?
2) Why do you do sudo to make ? I am not sure that all of the
environment variables of the user who is doing sudo are exported sudo's
environment. So if possible pls try to do 'make' without sudo.

Somehow if you can see the "-I/usr/include/libxml2" in compiler's
include path that should work.

- Sahan


Re: [Axis2] build failed of axis2c-src-M0.2-linux on mac os x 10.3.9

Posted by Lee Provoost <l....@students.uu.nl>.
Hi Sahan

First of all thanks for the quick reply. I did what you suggested. I  
downloaded the 2.6.22 version of libxml2 and got it compiled on my mac  
+ all the tests ran perfectly. I added the LIBXML2_INCLUDE to my  
environment with value /usr/include/libxml2 (on mac it's same as FC4  
apparently :) ). But i get following errors:

MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux leeprovoost$  
sudo make
make  all-recursive
Making all in modules
Making all in util
Making all in src
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in xml
Making all in parser
Making all in libxml2
Making all in src
if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc  
-DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include  
-I../../../../../modules/util/src -I../../../../../modules/xml/parser  
-I/usr/include/libxml2/    -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3  
-O2 -MT axis2_libxml2_reader_wrapper.lo -MD -MP -MF  
".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o  
axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"  
".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f  
".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include  
-I../../../../../modules/util/src -I../../../../../modules/xml/parser  
-I/usr/include/libxml2/ -g -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3  
-O2 -MT axis2_libxml2_reader_wrapper.lo -MD -MP -MF  
.deps/axis2_libxml2_reader_wrapper.Tpo -c  
axis2_libxml2_reader_wrapper.c  -fno-common -DPIC -o  
.libs/axis2_libxml2_reader_wrapper.o
In file included from ../../../../../include/axis2_env.h:27,
                  from  
../../../../../modules/xml/parser/axis2_xml_reader.h:26,
                  from axis2_libxml2_reader_wrapper.c:18:
../../../../../include/axis2_error.h:59: warning: parameter has  
incomplete type
../../../../../include/axis2_error.h:62: warning: parameter has  
incomplete type
../../../../../include/axis2_error.h:65: warning: parameter has  
incomplete type
axis2_libxml2_reader_wrapper.c: In function  
`axis2_libxml2_reader_wrapper_init_map':
axis2_libxml2_reader_wrapper.c:146: error: `XML_READER_TYPE_ELEMENT'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:146: error: (Each undeclared identifier  
is reported only once
axis2_libxml2_reader_wrapper.c:146: error: for each function it appears  
in.)
axis2_libxml2_reader_wrapper.c:152: error: `XML_READER_TYPE_DOCUMENT'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:155: error: `XML_READER_TYPE_TEXT'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:157: error: `XML_READER_TYPE_CDATA'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:159: error:  
`XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in this  
function)
axis2_libxml2_reader_wrapper.c:162: error: `XML_READER_TYPE_WHITESPACE'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:164: error:  
`XML_READER_TYPE_END_ELEMENT' undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:167: error:  
`XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this  
function)
axis2_libxml2_reader_wrapper.c:170: error: `XML_READER_TYPE_END_ENTITY'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:172: error: `XML_READER_TYPE_ENTITY'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:174: error:  
`XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in this  
function)
axis2_libxml2_reader_wrapper.c:177: error: `XML_READER_TYPE_COMMENT'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:179: error:  
`XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c: In function  
`axis2_xml_reader_create_for_memory':
axis2_libxml2_reader_wrapper.c:294: warning: implicit declaration of  
function `xmlReaderForIO'
axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'  
undeclared (first use in this function)
axis2_libxml2_reader_wrapper.c:295: warning: assignment makes pointer  
from integer without a cast
axis2_libxml2_reader_wrapper.c: In function  
`axis2_libxml2_reader_wrapper_next':
axis2_libxml2_reader_wrapper.c:392: error: `XML_READER_TYPE_ELEMENT'  
undeclared (first use in this function)
make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Apparently he can't find those XML constats that are mapped to the  
AXIS2 XML constants. So i guess i still need some configuration thing  
right? I looked in the install manual from axis2 and it says that i  
should also have LIBXML2_LIB in my environment. I'm not really sure  
what kind of value i have to use here, I tried /usr/lib cuz i found  
some libxml2 files there, but it's not wokring. Any suggestions?

Kind regards

Lee
--
Lee Provoost
Software Technology Group
Department of Information and Computing Sciences
University of Utrecht, P.O. Box 80089 3508 TB, Utrecht, The Netherlands
{l.provoost} @students.uu.nl
http://blogs.webcoder.be/lee

On 23 Dec 2005, at 04:56, Sahan Gamage wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sahan Gamage wrote:
>
>> Lee Provoost wrote:
>>
>>> Hi!
>>
>>> I try to build the axis2c-src-M0.2-linux on my mac os x 10.3.9
>>
>>> I installed the required versions of autoconf and automake as
>>> required and i applied the patch to get rid of cdecl as earlier
>>> suggested in one of the mails
>>> (http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg04747.html)
>>>
>>>
>>
>>
>>
>>> I get the errors when i choose for libxml2, but also for
>>> guthtilla (though another error)
>>
>>> In the case of libxml2: ==================
>>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
>>> leeprovoost$ sudo make make all-recursive Making all in modules
>>> Making all in util Making all in src make[4]: Nothing to be done
>>> for `all'. make[4]: Nothing to be done for `all-am'. Making all
>>> in xml Making all in parser Making all in libxml2 Making all in
>>> src if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc
>>> -DHAVE_CONFIG_H -I. -I. -I../../../../..
>>> -I../../../../../include -I../../../../../modules/util/src
>>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
>>> -MD -MP -MF ".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o
>>> axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
>>> then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"
>>> ".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f
>>> ".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi gcc
>>> -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
>>> -I../../../../../modules/util/src
>>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
>>> -MD -MP -MF .deps/axis2_libxml2_reader_wrapper.Tpo -c
>>> axis2_libxml2_reader_wrapper.c -fno-common -DPIC -o
>>> .libs/axis2_libxml2_reader_wrapper.o In file included from
>>> ../../../../../include/axis2_env.h:27, from
>>> ../../../../../modules/xml/parser/axis2_xml_reader.h:26, from
>>> axis2_libxml2_reader_wrapper.c:18:
>>> ../../../../../include/axis2_error.h:59: warning: parameter has
>>> incomplete type ../../../../../include/axis2_error.h:62: warning:
>>> parameter has incomplete type
>>> ../../../../../include/axis2_error.h:65: warning: parameter has
>>> incomplete type axis2_libxml2_reader_wrapper.c:19:31:
>>> libxml/xmlreader.h: No such file or directory
>>> axis2_libxml2_reader_wrapper.c:112: error: parse error before
>>> "xmlTextReaderPtr" axis2_libxml2_reader_wrapper.c:112: warning:
>>> no semicolon at end of struct or union
>>> axis2_libxml2_reader_wrapper.c:127: error: parse error before '}'
>>> token axis2_libxml2_reader_wrapper.c:127: warning: type defaults
>>> to `int' in declaration of `axis2_libxml2_reader_wrapper_impl_t'
>>> axis2_libxml2_reader_wrapper.c:127: warning: data definition has
>>> no type or storage class axis2_libxml2_reader_wrapper.c:138:
>>> error: parse error before '*' token
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_init_map':
>>> axis2_libxml2_reader_wrapper.c:141: error: `parser' undeclared
>>> (first use in this function) axis2_libxml2_reader_wrapper.c:141:
>>> error: (Each undeclared identifier is reported only once
>>> axis2_libxml2_reader_wrapper.c:141: error: for each function it
>>> appears in.) axis2_libxml2_reader_wrapper.c:146: error:
>>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:152: error:
>>> `XML_READER_TYPE_DOCUMENT' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c:155: error:
>>> `XML_READER_TYPE_TEXT' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:157: error:
>>> `XML_READER_TYPE_CDATA' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:159: error:
>>> `XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in
>>> this function) axis2_libxml2_reader_wrapper.c:162: error:
>>> `XML_READER_TYPE_WHITESPACE' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c:164: error:
>>> `XML_READER_TYPE_END_ELEMENT' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c:167: error:
>>> `XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c:170: error:
>>> `XML_READER_TYPE_END_ENTITY' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c:172: error:
>>> `XML_READER_TYPE_ENTITY' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:174: error:
>>> `XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in
>>> this function) axis2_libxml2_reader_wrapper.c:177: error:
>>> `XML_READER_TYPE_COMMENT' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:179: error:
>>> `XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this
>>> function) axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_xml_reader_create_for_file':
>>> axis2_libxml2_reader_wrapper.c:196: error: `wrapper_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:199: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:204: warning: implicit
>>> declaration of function `xmlNewTextReaderFilename'
>>> axis2_libxml2_reader_wrapper.c:224: warning: implicit declaration
>>> of function `xmlFreeTextReader' axis2_libxml2_reader_wrapper.c:
>>> In function `axis2_xml_reader_create_for_memory':
>>> axis2_libxml2_reader_wrapper.c:281: error: `wrapper_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:284: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:294: warning: implicit
>>> declaration of function `xmlReaderForIO'
>>> axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_next':
>>> axis2_libxml2_reader_wrapper.c:370: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:372: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:383: warning: implicit
>>> declaration of function `xmlTextReaderRead'
>>> axis2_libxml2_reader_wrapper.c:387: warning: implicit declaration
>>> of function `xmlTextReaderNodeType'
>>> axis2_libxml2_reader_wrapper.c:392: error:
>>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:394: warning: implicit
>>> declaration of function `xmlTextReaderIsEmptyElement'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_free':
>>> axis2_libxml2_reader_wrapper.c:414: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:415: error: parse error
>>> before ')' token axis2_libxml2_reader_wrapper.c:418: error: parse
>>> error before ')' token axis2_libxml2_reader_wrapper.c: In
>>> function `axis2_libxml2_reader_wrapper_get_attribute_count':
>>> axis2_libxml2_reader_wrapper.c:426: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:428: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_attribute_name_by_number':
>>> axis2_libxml2_reader_wrapper.c:441: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:443: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:448: warning: implicit
>>> declaration of function `xmlTextReaderMoveToAttributeNo'
>>> axis2_libxml2_reader_wrapper.c:451: warning: implicit declaration
>>> of function `xmlTextReaderLocalName'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number':
>>> axis2_libxml2_reader_wrapper.c:463: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:465: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:473: warning: implicit
>>> declaration of function `xmlTextReaderPrefix'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_attribute_value_by_number':
>>> axis2_libxml2_reader_wrapper.c:487: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:489: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:497: warning: implicit
>>> declaration of function `xmlTextReaderValue'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number':
>>> axis2_libxml2_reader_wrapper.c:510: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:512: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:522: warning: implicit
>>> declaration of function `xmlTextReaderNamespaceUri'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_value':
>>> axis2_libxml2_reader_wrapper.c:533: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:536: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_namespace_count':
>>> axis2_libxml2_reader_wrapper.c:545: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:547: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_namespace_uri_by_number':
>>> axis2_libxml2_reader_wrapper.c:561: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:563: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number':
>>> axis2_libxml2_reader_wrapper.c:584: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:586: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_prefix':
>>> axis2_libxml2_reader_wrapper.c:609: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:611: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:612: warning: implicit
>>> declaration of function `xmlTextReaderMoveToElement'
>>> axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_name':
>>> axis2_libxml2_reader_wrapper.c:620: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:622: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_pi_target':
>>> axis2_libxml2_reader_wrapper.c:632: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:634: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_dtd':
>>> axis2_libxml2_reader_wrapper.c:645: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:647: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_get_pi_data':
>>> axis2_libxml2_reader_wrapper.c:659: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:661: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c: In function
>>> `axis2_libxml2_reader_wrapper_xml_free':
>>> axis2_libxml2_reader_wrapper.c:677: warning: implicit declaration
>>> of function `xmlFree' axis2_libxml2_reader_wrapper.c: In
>>> function `axis2_libxml2_reader_wrapper_fill_maps':
>>> axis2_libxml2_reader_wrapper.c:690: error: `parser_impl'
>>> undeclared (first use in this function)
>>> axis2_libxml2_reader_wrapper.c:693: error: parse error before ')'
>>> token axis2_libxml2_reader_wrapper.c:695: warning: implicit
>>> declaration of function `xmlTextReaderAttributeCount'
>>> axis2_libxml2_reader_wrapper.c:708: warning: implicit declaration
>>> of function `xmlTextReaderName' axis2_libxml2_reader_wrapper.c:
>>> In function `axis2_libxml2_reader_wrapper_read_input_callback':
>>> axis2_libxml2_reader_wrapper.c:737: error: parse error before ')'
>>> token make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
>>> make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive]
>>> Error 1 make[3]: *** [all-recursive] Error 1 make[2]: ***
>>> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>
>>
>>> In the case of guththila ==================
>>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
>>> leeprovoost$ sudo make Password: make all-recursive Making all in
>>> modules Making all in util Making all in src make[4]: Nothing to
>>> be done for `all'. make[4]: Nothing to be done for `all-am'.
>>> Making all in xml Making all in parser Making all in guththila
>>> Making all in impl Making all in src if /bin/sh
>>> ../../../../../../libtool --tag=CC --mode=compile gcc
>>> -DHAVE_CONFIG_H -I. -I. -I../../../../../..
>>> -I../../../../../../include -I/include -g -O2 -ansi -Wall
>>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT guththila_token.lo -MD -MP -MF
>>> ".deps/guththila_token.Tpo" -c -o guththila_token.lo
>>> guththila_token.c; \ then mv -f ".deps/guththila_token.Tpo"
>>> ".deps/guththila_token.Plo"; else rm -f
>>> ".deps/guththila_token.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I.
>>> -I. -I../../../../../.. -I../../../../../../include -I/include -g
>>> -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT
>>> guththila_token.lo -MD -MP -MF .deps/guththila_token.Tpo -c
>>> guththila_token.c -fno-common -DPIC -o .libs/guththila_token.o In
>>> file included from guththila_environment.h:20, from
>>> guththila_token.h:24, from guththila_token.c:21:
>>> guththila_allocator.h:45: error: parse error before
>>> "guththila_allocator_init" guththila_allocator.h:45: warning:
>>> type defaults to `int' in declaration of
>>> `guththila_allocator_init' guththila_allocator.h:45: warning:
>>> data definition has no type or storage class In file included
>>> from guththila_environment.h:21, from guththila_token.h:24, from
>>> guththila_token.c:21: guththila_error.h:73: error: parse error
>>> before '*' token guththila_error.h:73: warning: no semicolon at
>>> end of struct or union guththila_error.h:74: error: parse error
>>> before '*' token guththila_error.h:75: warning: type defaults to
>>> `int' in declaration of `guththila_error_ops_t'
>>> guththila_error.h:75: warning: data definition has no type or
>>> storage class guththila_error.h:85: error: parse error before
>>> "guththila_error_create" guththila_error.h:85: warning: type
>>> defaults to `int' in declaration of `guththila_error_create'
>>> guththila_error.h:85: warning: data definition has no type or
>>> storage class In file included from guththila_environment.h:22,
>>> from guththila_token.h:24, from guththila_token.c:21:
>>> guththila_log.h:41: error: parse error before '*' token
>>> guththila_log.h:41: warning: no semicolon at end of struct or
>>> union guththila_log.h:42: error: parse error before '*' token
>>> guththila_log.h:44: warning: type defaults to `int' in
>>> declaration of `guththila_log_ops_t' guththila_log.h:44: warning:
>>> data definition has no type or storage class guththila_log.h:56:
>>> error: parse error before "guththila_log_create"
>>> guththila_log.h:57: error: parse error before
>>> "guththila_log_ops_t" guththila_log.h:57: warning: type defaults
>>> to `int' in declaration of `guththila_log_create'
>>> guththila_log.h:57: warning: data definition has no type or
>>> storage class In file included from guththila_token.h:24, from
>>> guththila_token.c:21: guththila_environment.h:42: error: parse
>>> error before "guththila_environment_create"
>>> guththila_environment.h:44: warning: type defaults to `int' in
>>> declaration of `guththila_environment_create'
>>> guththila_environment.h:44: warning: data definition has no type
>>> or storage class guththila_environment.h:47: error: parse error
>>> before "guththila_environment_free" guththila_environment.h:47:
>>> warning: type defaults to `int' in declaration of
>>> `guththila_environment_free' guththila_environment.h:47: warning:
>>> data definition has no type or storage class In file included
>>> from guththila_token.c:21: guththila_token.h:53: error: parse
>>> error before "guththila_token_create_token_buffer"
>>> guththila_token.h:54: warning: type defaults to `int' in
>>> declaration of `guththila_token_create_token_buffer'
>>> guththila_token.h:54: warning: data definition has no type or
>>> storage class guththila_token.h:57: error: parse error before
>>> "guththila_token_free_token_buffer" guththila_token.h:58:
>>> warning: type defaults to `int' in declaration of
>>> `guththila_token_free_token_buffer' guththila_token.h:58:
>>> warning: data definition has no type or storage class
>>> guththila_token.h:60: error: parse error before
>>> "guththila_token_length" guththila_token.h:61: warning: type
>>> defaults to `int' in declaration of `guththila_token_length'
>>> guththila_token.h:61: warning: data definition has no type or
>>> storage class guththila_token.h:64: error: parse error before
>>> "guththila_token_exception" guththila_token.h:64: warning: type
>>> defaults to `int' in declaration of `guththila_token_exception'
>>> guththila_token.h:64: warning: data definition has no type or
>>> storage class guththila_token.h:67: error: parse error before
>>> "guththila_token_append" guththila_token.h:68: warning: type
>>> defaults to `int' in declaration of `guththila_token_append'
>>> guththila_token.h:68: warning: data definition has no type or
>>> storage class guththila_token.h:71: error: parse error before
>>> "guththila_token_grow" guththila_token.h:72: warning: type
>>> defaults to `int' in declaration of `guththila_token_grow'
>>> guththila_token.h:72: warning: data definition has no type or
>>> storage class guththila_token.h:75: error: parse error before
>>> "guththila_token_last" guththila_token.h:76: warning: type
>>> defaults to `int' in declaration of `guththila_token_last'
>>> guththila_token.h:76: warning: data definition has no type or
>>> storage class guththila_token.h:79: error: parse error before
>>> "guththila_token_count" guththila_token.h:80: warning: type
>>> defaults to `int' in declaration of `guththila_token_count'
>>> guththila_token.h:80: warning: data definition has no type or
>>> storage class guththila_token.h:83: error: parse error before
>>> "guththila_token_to_string" guththila_token.h:85: warning: type
>>> defaults to `int' in declaration of `guththila_token_to_string'
>>> guththila_token.h:85: warning: data definition has no type or
>>> storage class guththila_token.h:88: error: parse error before
>>> "guththila_token_relocate" guththila_token.h:90: warning: type
>>> defaults to `int' in declaration of `guththila_token_relocate'
>>> guththila_token.h:90: warning: data definition has no type or
>>> storage class guththila_token.h:94: error: parse error before
>>> "guththila_token_compare" guththila_token.h:98: warning: type
>>> defaults to `int' in declaration of `guththila_token_compare'
>>> guththila_token.h:98: warning: data definition has no type or
>>> storage class guththila_token.h:102: error: parse error before
>>> "guththila_token_convert_utf16_to_utf8" guththila_token.h:104:
>>> warning: type defaults to `int' in declaration of
>>> `guththila_token_convert_utf16_to_utf8' guththila_token.h:104:
>>> warning: data definition has no type or storage class
>>> guththila_token.h:107: error: parse error before
>>> "guththila_token_length_utf16" guththila_token.h:108: warning:
>>> type defaults to `int' in declaration of
>>> `guththila_token_length_utf16' guththila_token.h:108: warning:
>>> data definition has no type or storage class
>>> guththila_token.h:112: error: parse error before
>>> "guththila_token_build_utf8" guththila_token.h:114: warning: type
>>> defaults to `int' in declaration of `guththila_token_build_utf8'
>>> guththila_token.h:114: warning: data definition has no type or
>>> storage class guththila_token.h:117: error: parse error before
>>> "guththila_token_char_ref" guththila_token.h:118: warning: type
>>> defaults to `int' in declaration of `guththila_token_char_ref'
>>> guththila_token.h:118: warning: data definition has no type or
>>> storage class In file included from guththila_token.c:23:
>>> guththila_string.h:31: error: parse error before
>>> "guththila_strdup" guththila_string.h:31: warning: type defaults
>>> to `int' in declaration of `guththila_strdup'
>>> guththila_string.h:31: warning: data definition has no type or
>>> storage class guththila_string.h:34: error: parse error before
>>> "guththila_strcmp" guththila_string.h:35: warning: type defaults
>>> to `int' in declaration of `guththila_strcmp'
>>> guththila_string.h:35: warning: data definition has no type or
>>> storage class guththila_string.h:38: error: parse error before
>>> "guththila_strndup" guththila_string.h:39: warning: type defaults
>>> to `int' in declaration of `guththila_strndup'
>>> guththila_string.h:39: warning: data definition has no type or
>>> storage class guththila_string.h:42: error: parse error before
>>> "guththila_strlen" guththila_string.h:42: warning: type defaults
>>> to `int' in declaration of `guththila_strlen'
>>> guththila_string.h:42: warning: data definition has no type or
>>> storage class guththila_token.c:26: error: parse error before
>>> "guththila_token_create_token_buffer" guththila_token.c:28:
>>> warning: return type defaults to `int' guththila_token.c: In
>>> function `guththila_token_create_token_buffer':
>>> guththila_token.c:33: warning: return makes integer from pointer
>>> without a cast guththila_token.c: At top level:
>>> guththila_token.c:38: error: parse error before
>>> "guththila_token_free_token_buffer" guththila_token.c:40:
>>> warning: return type defaults to `int' guththila_token.c:47:
>>> error: parse error before "guththila_token_exception"
>>> guththila_token.c:48: warning: return type defaults to `int'
>>> guththila_token.c:58: error: parse error before
>>> "guththila_token_length" guththila_token.c:60: warning: return
>>> type defaults to `int' guththila_token.c:70: error: parse error
>>> before "guththila_token_grow" guththila_token.c:72: warning:
>>> return type defaults to `int' guththila_token.c: In function
>>> `guththila_token_grow': guththila_token.c:77: warning: return
>>> makes integer from pointer without a cast guththila_token.c: At
>>> top level: guththila_token.c:82: error: parse error before
>>> "guththila_token_append" guththila_token.c:84: warning: return
>>> type defaults to `int' guththila_token.c: In function
>>> `guththila_token_append': guththila_token.c:87: warning: return
>>> makes integer from pointer without a cast guththila_token.c: At
>>> top level: guththila_token.c:92: error: parse error before
>>> "guththila_token_last" guththila_token.c:94: warning: return type
>>> defaults to `int' guththila_token.c: In function
>>> `guththila_token_last': guththila_token.c:97: warning: return
>>> makes integer from pointer without a cast guththila_token.c: At
>>> top level: guththila_token.c:102: error: parse error before
>>> "guththila_token_count" guththila_token.c:104: warning: return
>>> type defaults to `int' guththila_token.c:109: error: parse error
>>> before "guththila_token_char_ref" guththila_token.c:111: warning:
>>> return type defaults to `int' guththila_token.c: In function
>>> `guththila_token_char_ref': guththila_token.c:167: warning:
>>> return makes integer from pointer without a cast
>>> guththila_token.c: At top level: guththila_token.c:172: error:
>>> parse error before "guththila_token_to_string"
>>> guththila_token.c:174: warning: return type defaults to `int'
>>> guththila_token.c: In function `guththila_token_to_string':
>>> guththila_token.c:189: warning: return makes integer from pointer
>>> without a cast guththila_token.c: At top level:
>>> guththila_token.c:212: error: parse error before
>>> "guththila_token_relocate" guththila_token.c:214: warning: return
>>> type defaults to `int' guththila_token.c:221: error: parse error
>>> before "guththila_token_compare" guththila_token.c:224: warning:
>>> return type defaults to `int' guththila_token.c: In function
>>> `guththila_token_compare': guththila_token.c:230: warning:
>>> assignment makes pointer from integer without a cast
>>> guththila_token.c: At top level: guththila_token.c:237: error:
>>> parse error before "guththila_token_length_utf16"
>>> guththila_token.c:239: warning: return type defaults to `int'
>>> guththila_token.c:260: error: parse error before
>>> "guththila_token_build_utf8" guththila_token.c:262: warning:
>>> return type defaults to `int' guththila_token.c: In function
>>> `guththila_token_build_utf8': guththila_token.c:302: warning:
>>> return makes integer from pointer without a cast
>>> guththila_token.c: At top level: guththila_token.c:307: error:
>>> parse error before "guththila_token_convert_utf16_to_utf8"
>>> guththila_token.c:309: warning: return type defaults to `int'
>>> guththila_token.c: In function
>>> `guththila_token_convert_utf16_to_utf8': guththila_token.c:325:
>>> warning: assignment makes pointer from integer without a cast
>>> guththila_token.c:329: warning: return makes integer from pointer
>>> without a cast make[7]: *** [guththila_token.lo] Error 1
>>> make[6]: *** [all-recursive] Error 1 make[5]: *** [all-recursive]
>>> Error 1 make[4]: *** [all-recursive] Error 1 make[3]: ***
>>> [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
>>
>>> -- Lee Provoost Software Technology Group Department of
>>> Information and Computing Sciences University of Utrecht, P.O.
>>> Box 80089 3508 TB, Utrecht, The Netherlands {l.provoost}
>>> @students.uu.nl http://blogs.webcoder.be/lee
>>
>>
>> Hi Lee,
>>
>> 1 . It seems that you don't have libxml library installed in your
>> machine. [axis2_libxml2_reader_wrapper.c:19:31: libxml/xmlreader.h:
>> No such file or directory ] If so please download the libxml2
>> library from http://www.xmlsoft.org/ and install it. If you already
>> have it, make sure it is in the search path of the include files
>> (in Linux FC4, it comes in the directory
>> /usr/include/libxml2/libxml/) 2. Axis2 and Guththila use their own
>> versions of calling conventions (AXIS2_CALL and GUTHTHILA_CALL). By
>> the previous patch the problem with Axis2 calling convention was
>> corrected, but not the guththila's calling convention. So here's
>> the patch for that. -
>> ---------------------------------------------------------------------- 
>> ---------------------------------------------------
>>
>>
>> ===================================================================
>> --- guththila_defines.h (revision 356508) +++ guththila_defines.h
>> (working copy) @@ -43,8 +43,12 @@ * Calling Conventions */ #if
>> defined(__GNUC__) +#if defined(__i386) #define GUTHTHILA_CALL
>> __attribute__((cdecl)) #else +#define GUTHTHILA_CALL +#endif +#else
>> #if defined(__unix) #define GUTHTHILA_CALL #else /* WIN32 */ -
>> ---------------------------------------------------------------------- 
>> --------------------------------------
>>
>>
>>
>> - Sahan
>
>
> One more point. You have to set the environment variable
> LIBXML2_INCLUDE=<where your libxml includes are> In my machine it is
> LIBXML2_INCLUDE=/usr/include/libxml2
> Then do autogen and configure.
>
> - - Sahan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iQEVAwUBQ6t1WqnIlEsDdb85AQJtIggAhM/lTpSEVe4CT8ZRAtHfRJJgIVTkneWA
> CbAafuL8fLmlyBObupEcweQhDg3Xu0KOJpdi/qJrBcc+5RIVBKRgsQYQcMYVrAYy
> 3lrpdw3mAP7UxFj//xuluhaXuIEFmKnSBoZOdo0pU5JZt1ofdecGXSOhlJeSCzZS
> g0n2Nj2MnrpXOuFsI++BM0VnIIyBC7hJRfD/rYM4SRfhoRITbbz3yVPheolbHvr+
> NAa/pd6cRjw7d3WrQXFTemWza4+yjYXr7/nindbSt4heqdSzxAwfM9rQhLBc4E31
> h+X/ZTECbPDP0HxRn1qORoN4ZGNQLdYtgsMqgSittnAyeNEHw0rBSA==
> =3aGH
> -----END PGP SIGNATURE-----
>


Re: [Axis2] build failed of axis2c-src-M0.2-linux on mac os x 10.3.9

Posted by Sahan Gamage <sa...@wso2.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sahan Gamage wrote:

> Lee Provoost wrote:
>
>> Hi!
>
>> I try to build the axis2c-src-M0.2-linux on my mac os x 10.3.9
>
>> I installed the required versions of autoconf and automake as
>> required and i applied the patch to get rid of cdecl as earlier
>> suggested in one of the mails
>> (http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg04747.html)
>>
>>
>
>
>
>> I get the errors when i choose for libxml2, but also for
>> guthtilla (though another error)
>
>> In the case of libxml2: ==================
>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
>> leeprovoost$ sudo make make all-recursive Making all in modules
>> Making all in util Making all in src make[4]: Nothing to be done
>> for `all'. make[4]: Nothing to be done for `all-am'. Making all
>> in xml Making all in parser Making all in libxml2 Making all in
>> src if /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc
>> -DHAVE_CONFIG_H -I. -I. -I../../../../..
>> -I../../../../../include -I../../../../../modules/util/src
>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
>> -MD -MP -MF ".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o
>> axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
>> then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"
>> ".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f
>> ".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi gcc
>> -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
>> -I../../../../../modules/util/src
>> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
>> -MD -MP -MF .deps/axis2_libxml2_reader_wrapper.Tpo -c
>> axis2_libxml2_reader_wrapper.c -fno-common -DPIC -o
>> .libs/axis2_libxml2_reader_wrapper.o In file included from
>> ../../../../../include/axis2_env.h:27, from
>> ../../../../../modules/xml/parser/axis2_xml_reader.h:26, from
>> axis2_libxml2_reader_wrapper.c:18:
>> ../../../../../include/axis2_error.h:59: warning: parameter has
>> incomplete type ../../../../../include/axis2_error.h:62: warning:
>> parameter has incomplete type
>> ../../../../../include/axis2_error.h:65: warning: parameter has
>> incomplete type axis2_libxml2_reader_wrapper.c:19:31:
>> libxml/xmlreader.h: No such file or directory
>> axis2_libxml2_reader_wrapper.c:112: error: parse error before
>> "xmlTextReaderPtr" axis2_libxml2_reader_wrapper.c:112: warning:
>> no semicolon at end of struct or union
>> axis2_libxml2_reader_wrapper.c:127: error: parse error before '}'
>> token axis2_libxml2_reader_wrapper.c:127: warning: type defaults
>> to `int' in declaration of `axis2_libxml2_reader_wrapper_impl_t'
>> axis2_libxml2_reader_wrapper.c:127: warning: data definition has
>> no type or storage class axis2_libxml2_reader_wrapper.c:138:
>> error: parse error before '*' token
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_init_map':
>> axis2_libxml2_reader_wrapper.c:141: error: `parser' undeclared
>> (first use in this function) axis2_libxml2_reader_wrapper.c:141:
>> error: (Each undeclared identifier is reported only once
>> axis2_libxml2_reader_wrapper.c:141: error: for each function it
>> appears in.) axis2_libxml2_reader_wrapper.c:146: error:
>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:152: error:
>> `XML_READER_TYPE_DOCUMENT' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c:155: error:
>> `XML_READER_TYPE_TEXT' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:157: error:
>> `XML_READER_TYPE_CDATA' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:159: error:
>> `XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in
>> this function) axis2_libxml2_reader_wrapper.c:162: error:
>> `XML_READER_TYPE_WHITESPACE' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c:164: error:
>> `XML_READER_TYPE_END_ELEMENT' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c:167: error:
>> `XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c:170: error:
>> `XML_READER_TYPE_END_ENTITY' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c:172: error:
>> `XML_READER_TYPE_ENTITY' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:174: error:
>> `XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in
>> this function) axis2_libxml2_reader_wrapper.c:177: error:
>> `XML_READER_TYPE_COMMENT' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:179: error:
>> `XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this
>> function) axis2_libxml2_reader_wrapper.c: In function
>> `axis2_xml_reader_create_for_file':
>> axis2_libxml2_reader_wrapper.c:196: error: `wrapper_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:199: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:204: warning: implicit
>> declaration of function `xmlNewTextReaderFilename'
>> axis2_libxml2_reader_wrapper.c:224: warning: implicit declaration
>> of function `xmlFreeTextReader' axis2_libxml2_reader_wrapper.c:
>> In function `axis2_xml_reader_create_for_memory':
>> axis2_libxml2_reader_wrapper.c:281: error: `wrapper_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:284: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:294: warning: implicit
>> declaration of function `xmlReaderForIO'
>> axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_next':
>> axis2_libxml2_reader_wrapper.c:370: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:372: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:383: warning: implicit
>> declaration of function `xmlTextReaderRead'
>> axis2_libxml2_reader_wrapper.c:387: warning: implicit declaration
>> of function `xmlTextReaderNodeType'
>> axis2_libxml2_reader_wrapper.c:392: error:
>> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:394: warning: implicit
>> declaration of function `xmlTextReaderIsEmptyElement'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_free':
>> axis2_libxml2_reader_wrapper.c:414: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:415: error: parse error
>> before ')' token axis2_libxml2_reader_wrapper.c:418: error: parse
>> error before ')' token axis2_libxml2_reader_wrapper.c: In
>> function `axis2_libxml2_reader_wrapper_get_attribute_count':
>> axis2_libxml2_reader_wrapper.c:426: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:428: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_attribute_name_by_number':
>> axis2_libxml2_reader_wrapper.c:441: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:443: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:448: warning: implicit
>> declaration of function `xmlTextReaderMoveToAttributeNo'
>> axis2_libxml2_reader_wrapper.c:451: warning: implicit declaration
>> of function `xmlTextReaderLocalName'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number':
>> axis2_libxml2_reader_wrapper.c:463: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:465: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:473: warning: implicit
>> declaration of function `xmlTextReaderPrefix'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_attribute_value_by_number':
>> axis2_libxml2_reader_wrapper.c:487: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:489: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:497: warning: implicit
>> declaration of function `xmlTextReaderValue'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number':
>> axis2_libxml2_reader_wrapper.c:510: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:512: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:522: warning: implicit
>> declaration of function `xmlTextReaderNamespaceUri'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_value':
>> axis2_libxml2_reader_wrapper.c:533: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:536: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_namespace_count':
>> axis2_libxml2_reader_wrapper.c:545: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:547: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_namespace_uri_by_number':
>> axis2_libxml2_reader_wrapper.c:561: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:563: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number':
>> axis2_libxml2_reader_wrapper.c:584: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:586: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_prefix':
>> axis2_libxml2_reader_wrapper.c:609: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:611: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:612: warning: implicit
>> declaration of function `xmlTextReaderMoveToElement'
>> axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_name':
>> axis2_libxml2_reader_wrapper.c:620: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:622: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_pi_target':
>> axis2_libxml2_reader_wrapper.c:632: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:634: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_dtd':
>> axis2_libxml2_reader_wrapper.c:645: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:647: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_get_pi_data':
>> axis2_libxml2_reader_wrapper.c:659: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:661: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c: In function
>> `axis2_libxml2_reader_wrapper_xml_free':
>> axis2_libxml2_reader_wrapper.c:677: warning: implicit declaration
>> of function `xmlFree' axis2_libxml2_reader_wrapper.c: In
>> function `axis2_libxml2_reader_wrapper_fill_maps':
>> axis2_libxml2_reader_wrapper.c:690: error: `parser_impl'
>> undeclared (first use in this function)
>> axis2_libxml2_reader_wrapper.c:693: error: parse error before ')'
>> token axis2_libxml2_reader_wrapper.c:695: warning: implicit
>> declaration of function `xmlTextReaderAttributeCount'
>> axis2_libxml2_reader_wrapper.c:708: warning: implicit declaration
>> of function `xmlTextReaderName' axis2_libxml2_reader_wrapper.c:
>> In function `axis2_libxml2_reader_wrapper_read_input_callback':
>> axis2_libxml2_reader_wrapper.c:737: error: parse error before ')'
>> token make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
>> make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive]
>> Error 1 make[3]: *** [all-recursive] Error 1 make[2]: ***
>> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>
>
>> In the case of guththila ==================
>> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
>> leeprovoost$ sudo make Password: make all-recursive Making all in
>> modules Making all in util Making all in src make[4]: Nothing to
>> be done for `all'. make[4]: Nothing to be done for `all-am'.
>> Making all in xml Making all in parser Making all in guththila
>> Making all in impl Making all in src if /bin/sh
>> ../../../../../../libtool --tag=CC --mode=compile gcc
>> -DHAVE_CONFIG_H -I. -I. -I../../../../../..
>> -I../../../../../../include -I/include -g -O2 -ansi -Wall
>> -D_LARGEFILE64_SOURCE -g3 -O2 -MT guththila_token.lo -MD -MP -MF
>> ".deps/guththila_token.Tpo" -c -o guththila_token.lo
>> guththila_token.c; \ then mv -f ".deps/guththila_token.Tpo"
>> ".deps/guththila_token.Plo"; else rm -f
>> ".deps/guththila_token.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I.
>> -I. -I../../../../../.. -I../../../../../../include -I/include -g
>> -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT
>> guththila_token.lo -MD -MP -MF .deps/guththila_token.Tpo -c
>> guththila_token.c -fno-common -DPIC -o .libs/guththila_token.o In
>> file included from guththila_environment.h:20, from
>> guththila_token.h:24, from guththila_token.c:21:
>> guththila_allocator.h:45: error: parse error before
>> "guththila_allocator_init" guththila_allocator.h:45: warning:
>> type defaults to `int' in declaration of
>> `guththila_allocator_init' guththila_allocator.h:45: warning:
>> data definition has no type or storage class In file included
>> from guththila_environment.h:21, from guththila_token.h:24, from
>> guththila_token.c:21: guththila_error.h:73: error: parse error
>> before '*' token guththila_error.h:73: warning: no semicolon at
>> end of struct or union guththila_error.h:74: error: parse error
>> before '*' token guththila_error.h:75: warning: type defaults to
>> `int' in declaration of `guththila_error_ops_t'
>> guththila_error.h:75: warning: data definition has no type or
>> storage class guththila_error.h:85: error: parse error before
>> "guththila_error_create" guththila_error.h:85: warning: type
>> defaults to `int' in declaration of `guththila_error_create'
>> guththila_error.h:85: warning: data definition has no type or
>> storage class In file included from guththila_environment.h:22,
>> from guththila_token.h:24, from guththila_token.c:21:
>> guththila_log.h:41: error: parse error before '*' token
>> guththila_log.h:41: warning: no semicolon at end of struct or
>> union guththila_log.h:42: error: parse error before '*' token
>> guththila_log.h:44: warning: type defaults to `int' in
>> declaration of `guththila_log_ops_t' guththila_log.h:44: warning:
>> data definition has no type or storage class guththila_log.h:56:
>> error: parse error before "guththila_log_create"
>> guththila_log.h:57: error: parse error before
>> "guththila_log_ops_t" guththila_log.h:57: warning: type defaults
>> to `int' in declaration of `guththila_log_create'
>> guththila_log.h:57: warning: data definition has no type or
>> storage class In file included from guththila_token.h:24, from
>> guththila_token.c:21: guththila_environment.h:42: error: parse
>> error before "guththila_environment_create"
>> guththila_environment.h:44: warning: type defaults to `int' in
>> declaration of `guththila_environment_create'
>> guththila_environment.h:44: warning: data definition has no type
>> or storage class guththila_environment.h:47: error: parse error
>> before "guththila_environment_free" guththila_environment.h:47:
>> warning: type defaults to `int' in declaration of
>> `guththila_environment_free' guththila_environment.h:47: warning:
>> data definition has no type or storage class In file included
>> from guththila_token.c:21: guththila_token.h:53: error: parse
>> error before "guththila_token_create_token_buffer"
>> guththila_token.h:54: warning: type defaults to `int' in
>> declaration of `guththila_token_create_token_buffer'
>> guththila_token.h:54: warning: data definition has no type or
>> storage class guththila_token.h:57: error: parse error before
>> "guththila_token_free_token_buffer" guththila_token.h:58:
>> warning: type defaults to `int' in declaration of
>> `guththila_token_free_token_buffer' guththila_token.h:58:
>> warning: data definition has no type or storage class
>> guththila_token.h:60: error: parse error before
>> "guththila_token_length" guththila_token.h:61: warning: type
>> defaults to `int' in declaration of `guththila_token_length'
>> guththila_token.h:61: warning: data definition has no type or
>> storage class guththila_token.h:64: error: parse error before
>> "guththila_token_exception" guththila_token.h:64: warning: type
>> defaults to `int' in declaration of `guththila_token_exception'
>> guththila_token.h:64: warning: data definition has no type or
>> storage class guththila_token.h:67: error: parse error before
>> "guththila_token_append" guththila_token.h:68: warning: type
>> defaults to `int' in declaration of `guththila_token_append'
>> guththila_token.h:68: warning: data definition has no type or
>> storage class guththila_token.h:71: error: parse error before
>> "guththila_token_grow" guththila_token.h:72: warning: type
>> defaults to `int' in declaration of `guththila_token_grow'
>> guththila_token.h:72: warning: data definition has no type or
>> storage class guththila_token.h:75: error: parse error before
>> "guththila_token_last" guththila_token.h:76: warning: type
>> defaults to `int' in declaration of `guththila_token_last'
>> guththila_token.h:76: warning: data definition has no type or
>> storage class guththila_token.h:79: error: parse error before
>> "guththila_token_count" guththila_token.h:80: warning: type
>> defaults to `int' in declaration of `guththila_token_count'
>> guththila_token.h:80: warning: data definition has no type or
>> storage class guththila_token.h:83: error: parse error before
>> "guththila_token_to_string" guththila_token.h:85: warning: type
>> defaults to `int' in declaration of `guththila_token_to_string'
>> guththila_token.h:85: warning: data definition has no type or
>> storage class guththila_token.h:88: error: parse error before
>> "guththila_token_relocate" guththila_token.h:90: warning: type
>> defaults to `int' in declaration of `guththila_token_relocate'
>> guththila_token.h:90: warning: data definition has no type or
>> storage class guththila_token.h:94: error: parse error before
>> "guththila_token_compare" guththila_token.h:98: warning: type
>> defaults to `int' in declaration of `guththila_token_compare'
>> guththila_token.h:98: warning: data definition has no type or
>> storage class guththila_token.h:102: error: parse error before
>> "guththila_token_convert_utf16_to_utf8" guththila_token.h:104:
>> warning: type defaults to `int' in declaration of
>> `guththila_token_convert_utf16_to_utf8' guththila_token.h:104:
>> warning: data definition has no type or storage class
>> guththila_token.h:107: error: parse error before
>> "guththila_token_length_utf16" guththila_token.h:108: warning:
>> type defaults to `int' in declaration of
>> `guththila_token_length_utf16' guththila_token.h:108: warning:
>> data definition has no type or storage class
>> guththila_token.h:112: error: parse error before
>> "guththila_token_build_utf8" guththila_token.h:114: warning: type
>> defaults to `int' in declaration of `guththila_token_build_utf8'
>> guththila_token.h:114: warning: data definition has no type or
>> storage class guththila_token.h:117: error: parse error before
>> "guththila_token_char_ref" guththila_token.h:118: warning: type
>> defaults to `int' in declaration of `guththila_token_char_ref'
>> guththila_token.h:118: warning: data definition has no type or
>> storage class In file included from guththila_token.c:23:
>> guththila_string.h:31: error: parse error before
>> "guththila_strdup" guththila_string.h:31: warning: type defaults
>> to `int' in declaration of `guththila_strdup'
>> guththila_string.h:31: warning: data definition has no type or
>> storage class guththila_string.h:34: error: parse error before
>> "guththila_strcmp" guththila_string.h:35: warning: type defaults
>> to `int' in declaration of `guththila_strcmp'
>> guththila_string.h:35: warning: data definition has no type or
>> storage class guththila_string.h:38: error: parse error before
>> "guththila_strndup" guththila_string.h:39: warning: type defaults
>> to `int' in declaration of `guththila_strndup'
>> guththila_string.h:39: warning: data definition has no type or
>> storage class guththila_string.h:42: error: parse error before
>> "guththila_strlen" guththila_string.h:42: warning: type defaults
>> to `int' in declaration of `guththila_strlen'
>> guththila_string.h:42: warning: data definition has no type or
>> storage class guththila_token.c:26: error: parse error before
>> "guththila_token_create_token_buffer" guththila_token.c:28:
>> warning: return type defaults to `int' guththila_token.c: In
>> function `guththila_token_create_token_buffer':
>> guththila_token.c:33: warning: return makes integer from pointer
>> without a cast guththila_token.c: At top level:
>> guththila_token.c:38: error: parse error before
>> "guththila_token_free_token_buffer" guththila_token.c:40:
>> warning: return type defaults to `int' guththila_token.c:47:
>> error: parse error before "guththila_token_exception"
>> guththila_token.c:48: warning: return type defaults to `int'
>> guththila_token.c:58: error: parse error before
>> "guththila_token_length" guththila_token.c:60: warning: return
>> type defaults to `int' guththila_token.c:70: error: parse error
>> before "guththila_token_grow" guththila_token.c:72: warning:
>> return type defaults to `int' guththila_token.c: In function
>> `guththila_token_grow': guththila_token.c:77: warning: return
>> makes integer from pointer without a cast guththila_token.c: At
>> top level: guththila_token.c:82: error: parse error before
>> "guththila_token_append" guththila_token.c:84: warning: return
>> type defaults to `int' guththila_token.c: In function
>> `guththila_token_append': guththila_token.c:87: warning: return
>> makes integer from pointer without a cast guththila_token.c: At
>> top level: guththila_token.c:92: error: parse error before
>> "guththila_token_last" guththila_token.c:94: warning: return type
>> defaults to `int' guththila_token.c: In function
>> `guththila_token_last': guththila_token.c:97: warning: return
>> makes integer from pointer without a cast guththila_token.c: At
>> top level: guththila_token.c:102: error: parse error before
>> "guththila_token_count" guththila_token.c:104: warning: return
>> type defaults to `int' guththila_token.c:109: error: parse error
>> before "guththila_token_char_ref" guththila_token.c:111: warning:
>> return type defaults to `int' guththila_token.c: In function
>> `guththila_token_char_ref': guththila_token.c:167: warning:
>> return makes integer from pointer without a cast
>> guththila_token.c: At top level: guththila_token.c:172: error:
>> parse error before "guththila_token_to_string"
>> guththila_token.c:174: warning: return type defaults to `int'
>> guththila_token.c: In function `guththila_token_to_string':
>> guththila_token.c:189: warning: return makes integer from pointer
>> without a cast guththila_token.c: At top level:
>> guththila_token.c:212: error: parse error before
>> "guththila_token_relocate" guththila_token.c:214: warning: return
>> type defaults to `int' guththila_token.c:221: error: parse error
>> before "guththila_token_compare" guththila_token.c:224: warning:
>> return type defaults to `int' guththila_token.c: In function
>> `guththila_token_compare': guththila_token.c:230: warning:
>> assignment makes pointer from integer without a cast
>> guththila_token.c: At top level: guththila_token.c:237: error:
>> parse error before "guththila_token_length_utf16"
>> guththila_token.c:239: warning: return type defaults to `int'
>> guththila_token.c:260: error: parse error before
>> "guththila_token_build_utf8" guththila_token.c:262: warning:
>> return type defaults to `int' guththila_token.c: In function
>> `guththila_token_build_utf8': guththila_token.c:302: warning:
>> return makes integer from pointer without a cast
>> guththila_token.c: At top level: guththila_token.c:307: error:
>> parse error before "guththila_token_convert_utf16_to_utf8"
>> guththila_token.c:309: warning: return type defaults to `int'
>> guththila_token.c: In function
>> `guththila_token_convert_utf16_to_utf8': guththila_token.c:325:
>> warning: assignment makes pointer from integer without a cast
>> guththila_token.c:329: warning: return makes integer from pointer
>> without a cast make[7]: *** [guththila_token.lo] Error 1
>> make[6]: *** [all-recursive] Error 1 make[5]: *** [all-recursive]
>> Error 1 make[4]: *** [all-recursive] Error 1 make[3]: ***
>> [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
>
>> -- Lee Provoost Software Technology Group Department of
>> Information and Computing Sciences University of Utrecht, P.O.
>> Box 80089 3508 TB, Utrecht, The Netherlands {l.provoost}
>> @students.uu.nl http://blogs.webcoder.be/lee
>
>
> Hi Lee,
>
> 1 . It seems that you don't have libxml library installed in your
> machine. [axis2_libxml2_reader_wrapper.c:19:31: libxml/xmlreader.h:
> No such file or directory ] If so please download the libxml2
> library from http://www.xmlsoft.org/ and install it. If you already
> have it, make sure it is in the search path of the include files
> (in Linux FC4, it comes in the directory
> /usr/include/libxml2/libxml/) 2. Axis2 and Guththila use their own
> versions of calling conventions (AXIS2_CALL and GUTHTHILA_CALL). By
> the previous patch the problem with Axis2 calling convention was
> corrected, but not the guththila's calling convention. So here's
> the patch for that. -
> -------------------------------------------------------------------------------------------------------------------------
>
>
> ===================================================================
> --- guththila_defines.h (revision 356508) +++ guththila_defines.h
> (working copy) @@ -43,8 +43,12 @@ * Calling Conventions */ #if
> defined(__GNUC__) +#if defined(__i386) #define GUTHTHILA_CALL
> __attribute__((cdecl)) #else +#define GUTHTHILA_CALL +#endif +#else
> #if defined(__unix) #define GUTHTHILA_CALL #else /* WIN32 */ -
> ------------------------------------------------------------------------------------------------------------
>
>
>
> - Sahan


One more point. You have to set the environment variable
LIBXML2_INCLUDE=<where your libxml includes are> In my machine it is
LIBXML2_INCLUDE=/usr/include/libxml2
Then do autogen and configure.

- - Sahan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iQEVAwUBQ6t1WqnIlEsDdb85AQJtIggAhM/lTpSEVe4CT8ZRAtHfRJJgIVTkneWA
CbAafuL8fLmlyBObupEcweQhDg3Xu0KOJpdi/qJrBcc+5RIVBKRgsQYQcMYVrAYy
3lrpdw3mAP7UxFj//xuluhaXuIEFmKnSBoZOdo0pU5JZt1ofdecGXSOhlJeSCzZS
g0n2Nj2MnrpXOuFsI++BM0VnIIyBC7hJRfD/rYM4SRfhoRITbbz3yVPheolbHvr+
NAa/pd6cRjw7d3WrQXFTemWza4+yjYXr7/nindbSt4heqdSzxAwfM9rQhLBc4E31
h+X/ZTECbPDP0HxRn1qORoN4ZGNQLdYtgsMqgSittnAyeNEHw0rBSA==
=3aGH
-----END PGP SIGNATURE-----


Re: [Axis2] build failed of axis2c-src-M0.2-linux on mac os x 10.3.9

Posted by Sahan Gamage <sa...@wso2.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lee Provoost wrote:

> Hi!
>
> I try to build the axis2c-src-M0.2-linux on my mac os x 10.3.9
>
> I installed the required versions of autoconf and automake as
> required and i applied the patch to get rid of cdecl as earlier
> suggested in one of the mails
> (http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg04747.html)
>
>
>
> I get the errors when i choose for libxml2, but also for guthtilla
> (though another error)
>
> In the case of libxml2: ==================
> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
> leeprovoost$ sudo make make all-recursive Making all in modules
> Making all in util Making all in src make[4]: Nothing to be done
> for `all'. make[4]: Nothing to be done for `all-am'. Making all in
> xml Making all in parser Making all in libxml2 Making all in src if
> /bin/sh ../../../../../libtool --tag=CC --mode=compile gcc
> -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
> -I../../../../../modules/util/src
> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
> -MD -MP -MF ".deps/axis2_libxml2_reader_wrapper.Tpo" -c -o
> axis2_libxml2_reader_wrapper.lo axis2_libxml2_reader_wrapper.c; \
> then mv -f ".deps/axis2_libxml2_reader_wrapper.Tpo"
> ".deps/axis2_libxml2_reader_wrapper.Plo"; else rm -f
> ".deps/axis2_libxml2_reader_wrapper.Tpo"; exit 1; fi gcc
> -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I../../../../../include
> -I../../../../../modules/util/src
> -I../../../../../modules/xml/parser -I -g -O2 -ansi -Wall
> -D_LARGEFILE64_SOURCE -g3 -O2 -MT axis2_libxml2_reader_wrapper.lo
> -MD -MP -MF .deps/axis2_libxml2_reader_wrapper.Tpo -c
> axis2_libxml2_reader_wrapper.c -fno-common -DPIC -o
> .libs/axis2_libxml2_reader_wrapper.o In file included from
> ../../../../../include/axis2_env.h:27, from
> ../../../../../modules/xml/parser/axis2_xml_reader.h:26, from
> axis2_libxml2_reader_wrapper.c:18:
> ../../../../../include/axis2_error.h:59: warning: parameter has
> incomplete type ../../../../../include/axis2_error.h:62: warning:
> parameter has incomplete type
> ../../../../../include/axis2_error.h:65: warning: parameter has
> incomplete type axis2_libxml2_reader_wrapper.c:19:31:
> libxml/xmlreader.h: No such file or directory
> axis2_libxml2_reader_wrapper.c:112: error: parse error before
> "xmlTextReaderPtr" axis2_libxml2_reader_wrapper.c:112: warning: no
> semicolon at end of struct or union
> axis2_libxml2_reader_wrapper.c:127: error: parse error before '}'
> token axis2_libxml2_reader_wrapper.c:127: warning: type defaults to
> `int' in declaration of `axis2_libxml2_reader_wrapper_impl_t'
> axis2_libxml2_reader_wrapper.c:127: warning: data definition has no
> type or storage class axis2_libxml2_reader_wrapper.c:138: error:
> parse error before '*' token axis2_libxml2_reader_wrapper.c: In
> function `axis2_libxml2_reader_wrapper_init_map':
> axis2_libxml2_reader_wrapper.c:141: error: `parser' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:141:
> error: (Each undeclared identifier is reported only once
> axis2_libxml2_reader_wrapper.c:141: error: for each function it
> appears in.) axis2_libxml2_reader_wrapper.c:146: error:
> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:152: error:
> `XML_READER_TYPE_DOCUMENT' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:155: error: `XML_READER_TYPE_TEXT'
> undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:157: error: `XML_READER_TYPE_CDATA'
> undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:159: error:
> `XML_READER_TYPE_SIGNIFICANT_WHITESPACE' undeclared (first use in
> this function) axis2_libxml2_reader_wrapper.c:162: error:
> `XML_READER_TYPE_WHITESPACE' undeclared (first use in this
> function) axis2_libxml2_reader_wrapper.c:164: error:
> `XML_READER_TYPE_END_ELEMENT' undeclared (first use in this
> function) axis2_libxml2_reader_wrapper.c:167: error:
> `XML_READER_TYPE_ENTITY_REFERENCE' undeclared (first use in this
> function) axis2_libxml2_reader_wrapper.c:170: error:
> `XML_READER_TYPE_END_ENTITY' undeclared (first use in this
> function) axis2_libxml2_reader_wrapper.c:172: error:
> `XML_READER_TYPE_ENTITY' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:174: error:
> `XML_READER_TYPE_PROCESSING_INSTRUCTION' undeclared (first use in
> this function) axis2_libxml2_reader_wrapper.c:177: error:
> `XML_READER_TYPE_COMMENT' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:179: error:
> `XML_READER_TYPE_DOCUMENT_TYPE' undeclared (first use in this
> function) axis2_libxml2_reader_wrapper.c: In function
> `axis2_xml_reader_create_for_file':
> axis2_libxml2_reader_wrapper.c:196: error: `wrapper_impl'
> undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:199: error: parse error before ')'
> token axis2_libxml2_reader_wrapper.c:204: warning: implicit
> declaration of function `xmlNewTextReaderFilename'
> axis2_libxml2_reader_wrapper.c:224: warning: implicit declaration
> of function `xmlFreeTextReader' axis2_libxml2_reader_wrapper.c: In
> function `axis2_xml_reader_create_for_memory':
> axis2_libxml2_reader_wrapper.c:281: error: `wrapper_impl'
> undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:284: error: parse error before ')'
> token axis2_libxml2_reader_wrapper.c:294: warning: implicit
> declaration of function `xmlReaderForIO'
> axis2_libxml2_reader_wrapper.c:295: error: `XML_PARSE_RECOVER'
> undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_next':
> axis2_libxml2_reader_wrapper.c:370: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:372:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:383: warning: implicit declaration
> of function `xmlTextReaderRead' axis2_libxml2_reader_wrapper.c:387:
> warning: implicit declaration of function `xmlTextReaderNodeType'
> axis2_libxml2_reader_wrapper.c:392: error:
> `XML_READER_TYPE_ELEMENT' undeclared (first use in this function)
> axis2_libxml2_reader_wrapper.c:394: warning: implicit declaration
> of function `xmlTextReaderIsEmptyElement'
> axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_free':
> axis2_libxml2_reader_wrapper.c:414: error: parse error before ')'
> token axis2_libxml2_reader_wrapper.c:415: error: parse error before
> ')' token axis2_libxml2_reader_wrapper.c:418: error: parse error
> before ')' token axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_get_attribute_count':
> axis2_libxml2_reader_wrapper.c:426: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:428:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function
> `axis2_libxml2_reader_wrapper_get_attribute_name_by_number':
> axis2_libxml2_reader_wrapper.c:441: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:443:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:448: warning: implicit declaration
> of function `xmlTextReaderMoveToAttributeNo'
> axis2_libxml2_reader_wrapper.c:451: warning: implicit declaration
> of function `xmlTextReaderLocalName'
> axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number':
> axis2_libxml2_reader_wrapper.c:463: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:465:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:473: warning: implicit declaration
> of function `xmlTextReaderPrefix' axis2_libxml2_reader_wrapper.c:
> In function
> `axis2_libxml2_reader_wrapper_get_attribute_value_by_number':
> axis2_libxml2_reader_wrapper.c:487: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:489:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:497: warning: implicit declaration
> of function `xmlTextReaderValue' axis2_libxml2_reader_wrapper.c: In
> function
> `axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number':
> axis2_libxml2_reader_wrapper.c:510: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:512:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:522: warning: implicit declaration
> of function `xmlTextReaderNamespaceUri'
> axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_get_value':
> axis2_libxml2_reader_wrapper.c:533: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:536:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_get_namespace_count':
> axis2_libxml2_reader_wrapper.c:545: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:547:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function
> `axis2_libxml2_reader_wrapper_get_namespace_uri_by_number':
> axis2_libxml2_reader_wrapper.c:561: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:563:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function
> `axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number':
> axis2_libxml2_reader_wrapper.c:584: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:586:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_get_prefix':
> axis2_libxml2_reader_wrapper.c:609: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:611:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:612: warning: implicit declaration
> of function `xmlTextReaderMoveToElement'
> axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_get_name':
> axis2_libxml2_reader_wrapper.c:620: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:622:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_get_pi_target':
> axis2_libxml2_reader_wrapper.c:632: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:634:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_get_dtd':
> axis2_libxml2_reader_wrapper.c:645: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:647:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_get_pi_data':
> axis2_libxml2_reader_wrapper.c:659: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:661:
> error: parse error before ')' token axis2_libxml2_reader_wrapper.c:
> In function `axis2_libxml2_reader_wrapper_xml_free':
> axis2_libxml2_reader_wrapper.c:677: warning: implicit declaration
> of function `xmlFree' axis2_libxml2_reader_wrapper.c: In function
> `axis2_libxml2_reader_wrapper_fill_maps':
> axis2_libxml2_reader_wrapper.c:690: error: `parser_impl' undeclared
> (first use in this function) axis2_libxml2_reader_wrapper.c:693:
> error: parse error before ')' token
> axis2_libxml2_reader_wrapper.c:695: warning: implicit declaration
> of function `xmlTextReaderAttributeCount'
> axis2_libxml2_reader_wrapper.c:708: warning: implicit declaration
> of function `xmlTextReaderName' axis2_libxml2_reader_wrapper.c: In
> function `axis2_libxml2_reader_wrapper_read_input_callback':
> axis2_libxml2_reader_wrapper.c:737: error: parse error before ')'
> token make[6]: *** [axis2_libxml2_reader_wrapper.lo] Error 1
> make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive]
> Error 1 make[3]: *** [all-recursive] Error 1 make[2]: ***
> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make:
> *** [all] Error 2
>
>
> In the case of guththila ==================
> MacLee:~/Projects/Apache/Axis2PHP/axis2c-src-M0.2-linux
> leeprovoost$ sudo make Password: make all-recursive Making all in
> modules Making all in util Making all in src make[4]: Nothing to be
> done for `all'. make[4]: Nothing to be done for `all-am'. Making
> all in xml Making all in parser Making all in guththila Making all
> in impl Making all in src if /bin/sh ../../../../../../libtool
> --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../../../../.. -I../../../../../../include -I/include -g
> -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT
> guththila_token.lo -MD -MP -MF ".deps/guththila_token.Tpo" -c -o
> guththila_token.lo guththila_token.c; \ then mv -f
> ".deps/guththila_token.Tpo" ".deps/guththila_token.Plo"; else rm -f
> ".deps/guththila_token.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I.
> -I. -I../../../../../.. -I../../../../../../include -I/include -g
> -O2 -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2 -MT
> guththila_token.lo -MD -MP -MF .deps/guththila_token.Tpo -c
> guththila_token.c -fno-common -DPIC -o .libs/guththila_token.o In
> file included from guththila_environment.h:20, from
> guththila_token.h:24, from guththila_token.c:21:
> guththila_allocator.h:45: error: parse error before
> "guththila_allocator_init" guththila_allocator.h:45: warning: type
> defaults to `int' in declaration of `guththila_allocator_init'
> guththila_allocator.h:45: warning: data definition has no type or
> storage class In file included from guththila_environment.h:21,
> from guththila_token.h:24, from guththila_token.c:21:
> guththila_error.h:73: error: parse error before '*' token
> guththila_error.h:73: warning: no semicolon at end of struct or
> union guththila_error.h:74: error: parse error before '*' token
> guththila_error.h:75: warning: type defaults to `int' in
> declaration of `guththila_error_ops_t' guththila_error.h:75:
> warning: data definition has no type or storage class
> guththila_error.h:85: error: parse error before
> "guththila_error_create" guththila_error.h:85: warning: type
> defaults to `int' in declaration of `guththila_error_create'
> guththila_error.h:85: warning: data definition has no type or
> storage class In file included from guththila_environment.h:22,
> from guththila_token.h:24, from guththila_token.c:21:
> guththila_log.h:41: error: parse error before '*' token
> guththila_log.h:41: warning: no semicolon at end of struct or union
> guththila_log.h:42: error: parse error before '*' token
> guththila_log.h:44: warning: type defaults to `int' in declaration
> of `guththila_log_ops_t' guththila_log.h:44: warning: data
> definition has no type or storage class guththila_log.h:56: error:
> parse error before "guththila_log_create" guththila_log.h:57:
> error: parse error before "guththila_log_ops_t" guththila_log.h:57:
> warning: type defaults to `int' in declaration of
> `guththila_log_create' guththila_log.h:57: warning: data definition
> has no type or storage class In file included from
> guththila_token.h:24, from guththila_token.c:21:
> guththila_environment.h:42: error: parse error before
> "guththila_environment_create" guththila_environment.h:44: warning:
> type defaults to `int' in declaration of
> `guththila_environment_create' guththila_environment.h:44: warning:
> data definition has no type or storage class
> guththila_environment.h:47: error: parse error before
> "guththila_environment_free" guththila_environment.h:47: warning:
> type defaults to `int' in declaration of
> `guththila_environment_free' guththila_environment.h:47: warning:
> data definition has no type or storage class In file included from
> guththila_token.c:21: guththila_token.h:53: error: parse error
> before "guththila_token_create_token_buffer" guththila_token.h:54:
> warning: type defaults to `int' in declaration of
> `guththila_token_create_token_buffer' guththila_token.h:54:
> warning: data definition has no type or storage class
> guththila_token.h:57: error: parse error before
> "guththila_token_free_token_buffer" guththila_token.h:58: warning:
> type defaults to `int' in declaration of
> `guththila_token_free_token_buffer' guththila_token.h:58: warning:
> data definition has no type or storage class guththila_token.h:60:
> error: parse error before "guththila_token_length"
> guththila_token.h:61: warning: type defaults to `int' in
> declaration of `guththila_token_length' guththila_token.h:61:
> warning: data definition has no type or storage class
> guththila_token.h:64: error: parse error before
> "guththila_token_exception" guththila_token.h:64: warning: type
> defaults to `int' in declaration of `guththila_token_exception'
> guththila_token.h:64: warning: data definition has no type or
> storage class guththila_token.h:67: error: parse error before
> "guththila_token_append" guththila_token.h:68: warning: type
> defaults to `int' in declaration of `guththila_token_append'
> guththila_token.h:68: warning: data definition has no type or
> storage class guththila_token.h:71: error: parse error before
> "guththila_token_grow" guththila_token.h:72: warning: type defaults
> to `int' in declaration of `guththila_token_grow'
> guththila_token.h:72: warning: data definition has no type or
> storage class guththila_token.h:75: error: parse error before
> "guththila_token_last" guththila_token.h:76: warning: type defaults
> to `int' in declaration of `guththila_token_last'
> guththila_token.h:76: warning: data definition has no type or
> storage class guththila_token.h:79: error: parse error before
> "guththila_token_count" guththila_token.h:80: warning: type
> defaults to `int' in declaration of `guththila_token_count'
> guththila_token.h:80: warning: data definition has no type or
> storage class guththila_token.h:83: error: parse error before
> "guththila_token_to_string" guththila_token.h:85: warning: type
> defaults to `int' in declaration of `guththila_token_to_string'
> guththila_token.h:85: warning: data definition has no type or
> storage class guththila_token.h:88: error: parse error before
> "guththila_token_relocate" guththila_token.h:90: warning: type
> defaults to `int' in declaration of `guththila_token_relocate'
> guththila_token.h:90: warning: data definition has no type or
> storage class guththila_token.h:94: error: parse error before
> "guththila_token_compare" guththila_token.h:98: warning: type
> defaults to `int' in declaration of `guththila_token_compare'
> guththila_token.h:98: warning: data definition has no type or
> storage class guththila_token.h:102: error: parse error before
> "guththila_token_convert_utf16_to_utf8" guththila_token.h:104:
> warning: type defaults to `int' in declaration of
> `guththila_token_convert_utf16_to_utf8' guththila_token.h:104:
> warning: data definition has no type or storage class
> guththila_token.h:107: error: parse error before
> "guththila_token_length_utf16" guththila_token.h:108: warning: type
> defaults to `int' in declaration of `guththila_token_length_utf16'
> guththila_token.h:108: warning: data definition has no type or
> storage class guththila_token.h:112: error: parse error before
> "guththila_token_build_utf8" guththila_token.h:114: warning: type
> defaults to `int' in declaration of `guththila_token_build_utf8'
> guththila_token.h:114: warning: data definition has no type or
> storage class guththila_token.h:117: error: parse error before
> "guththila_token_char_ref" guththila_token.h:118: warning: type
> defaults to `int' in declaration of `guththila_token_char_ref'
> guththila_token.h:118: warning: data definition has no type or
> storage class In file included from guththila_token.c:23:
> guththila_string.h:31: error: parse error before "guththila_strdup"
> guththila_string.h:31: warning: type defaults to `int' in
> declaration of `guththila_strdup' guththila_string.h:31: warning:
> data definition has no type or storage class guththila_string.h:34:
> error: parse error before "guththila_strcmp"
> guththila_string.h:35: warning: type defaults to `int' in
> declaration of `guththila_strcmp' guththila_string.h:35: warning:
> data definition has no type or storage class guththila_string.h:38:
> error: parse error before "guththila_strndup"
> guththila_string.h:39: warning: type defaults to `int' in
> declaration of `guththila_strndup' guththila_string.h:39: warning:
> data definition has no type or storage class guththila_string.h:42:
> error: parse error before "guththila_strlen" guththila_string.h:42:
> warning: type defaults to `int' in declaration of
> `guththila_strlen' guththila_string.h:42: warning: data definition
> has no type or storage class guththila_token.c:26: error: parse
> error before "guththila_token_create_token_buffer"
> guththila_token.c:28: warning: return type defaults to `int'
> guththila_token.c: In function
> `guththila_token_create_token_buffer': guththila_token.c:33:
> warning: return makes integer from pointer without a cast
> guththila_token.c: At top level: guththila_token.c:38: error: parse
> error before "guththila_token_free_token_buffer"
> guththila_token.c:40: warning: return type defaults to `int'
> guththila_token.c:47: error: parse error before
> "guththila_token_exception" guththila_token.c:48: warning: return
> type defaults to `int' guththila_token.c:58: error: parse error
> before "guththila_token_length" guththila_token.c:60: warning:
> return type defaults to `int' guththila_token.c:70: error: parse
> error before "guththila_token_grow" guththila_token.c:72: warning:
> return type defaults to `int' guththila_token.c: In function
> `guththila_token_grow': guththila_token.c:77: warning: return makes
> integer from pointer without a cast guththila_token.c: At top
> level: guththila_token.c:82: error: parse error before
> "guththila_token_append" guththila_token.c:84: warning: return type
> defaults to `int' guththila_token.c: In function
> `guththila_token_append': guththila_token.c:87: warning: return
> makes integer from pointer without a cast guththila_token.c: At top
> level: guththila_token.c:92: error: parse error before
> "guththila_token_last" guththila_token.c:94: warning: return type
> defaults to `int' guththila_token.c: In function
> `guththila_token_last': guththila_token.c:97: warning: return makes
> integer from pointer without a cast guththila_token.c: At top
> level: guththila_token.c:102: error: parse error before
> "guththila_token_count" guththila_token.c:104: warning: return type
> defaults to `int' guththila_token.c:109: error: parse error before
> "guththila_token_char_ref" guththila_token.c:111: warning: return
> type defaults to `int' guththila_token.c: In function
> `guththila_token_char_ref': guththila_token.c:167: warning: return
> makes integer from pointer without a cast guththila_token.c: At top
> level: guththila_token.c:172: error: parse error before
> "guththila_token_to_string" guththila_token.c:174: warning: return
> type defaults to `int' guththila_token.c: In function
> `guththila_token_to_string': guththila_token.c:189: warning: return
> makes integer from pointer without a cast guththila_token.c: At
> top level: guththila_token.c:212: error: parse error before
> "guththila_token_relocate" guththila_token.c:214: warning: return
> type defaults to `int' guththila_token.c:221: error: parse error
> before "guththila_token_compare" guththila_token.c:224: warning:
> return type defaults to `int' guththila_token.c: In function
> `guththila_token_compare': guththila_token.c:230: warning:
> assignment makes pointer from integer without a cast
> guththila_token.c: At top level: guththila_token.c:237: error:
> parse error before "guththila_token_length_utf16"
> guththila_token.c:239: warning: return type defaults to `int'
> guththila_token.c:260: error: parse error before
> "guththila_token_build_utf8" guththila_token.c:262: warning: return
> type defaults to `int' guththila_token.c: In function
> `guththila_token_build_utf8': guththila_token.c:302: warning:
> return makes integer from pointer without a cast guththila_token.c:
> At top level: guththila_token.c:307: error: parse error before
> "guththila_token_convert_utf16_to_utf8" guththila_token.c:309:
> warning: return type defaults to `int' guththila_token.c: In
> function `guththila_token_convert_utf16_to_utf8':
> guththila_token.c:325: warning: assignment makes pointer from
> integer without a cast guththila_token.c:329: warning: return makes
> integer from pointer without a cast make[7]: ***
> [guththila_token.lo] Error 1 make[6]: *** [all-recursive] Error 1
> make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive]
> Error 1 make[3]: *** [all-recursive] Error 1 make[2]: ***
> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make:
> *** [all] Error 2
>
> -- Lee Provoost Software Technology Group Department of Information
> and Computing Sciences University of Utrecht, P.O. Box 80089 3508
> TB, Utrecht, The Netherlands {l.provoost} @students.uu.nl
> http://blogs.webcoder.be/lee
>
>
Hi Lee,

1 . It seems that you don't have libxml library installed in your
machine.
 [axis2_libxml2_reader_wrapper.c:19:31: libxml/xmlreader.h: No such
file or directory ]
If so please download the libxml2 library from http://www.xmlsoft.org/ and
install it. If you already have it, make sure it is in the search path
of the include files (in Linux FC4, it comes in the directory
/usr/include/libxml2/libxml/)
2. Axis2 and Guththila use their own versions of calling conventions
(AXIS2_CALL and GUTHTHILA_CALL). By the previous patch the problem
with Axis2 calling convention was corrected, but not the guththila's
calling convention. So here's the patch for that.
-
-------------------------------------------------------------------------------------------------------------------------
===================================================================
- --- guththila_defines.h (revision 356508)
+++ guththila_defines.h (working copy)
@@ -43,8 +43,12 @@
   *    Calling Conventions
   */
 #if defined(__GNUC__)
+#if defined(__i386)
 #define GUTHTHILA_CALL __attribute__((cdecl))
 #else
+#define GUTHTHILA_CALL
+#endif
+#else
 #if defined(__unix)
 #define GUTHTHILA_CALL
 #else                           /* WIN32 */
-
------------------------------------------------------------------------------------------------------------

- - Sahan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iQEVAwUBQ6trd6nIlEsDdb85AQIa8wf/ZrGxCkiAExBVBQjYJqcuWYWrg3C3lIaY
HvtIFd9LhItVLowIRwuJ8J0xVVfjBF6YNAInaT4LEhK9bdHAJt8Rl4fkje1q4RjI
9yzhUuxWApjUnQeFwOiMxcpBEFkgrmNYmK50gsCr4DVuXYsxY7kezYcf8nPxqfyH
Muehx73U8pN//4XeU/UjamJROQhb9l3V3ohHPSbQ/DRVfV5gd4lKdpkybgAvx5pQ
hOSEaM8hyLNZr2z01cd8LEWV6hPQ9qilAhNXhGX6L3Thj9dB7yNirs1XMOss6nmZ
/i8w7TY1UtdpULFP7pRC56X141i2oVRlQYJoCSRtnnwyXBZdD0Ahng==
=NlEz
-----END PGP SIGNATURE-----