make  all-recursive
make[1]: Entering directory `/home/joel/Downloads/libxml2'
Making all in include
make[2]: Entering directory `/home/joel/Downloads/libxml2/include'
Making all in libxml
make[3]: Entering directory `/home/joel/Downloads/libxml2/include/libxml'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/joel/Downloads/libxml2/include/libxml'
make[3]: Entering directory `/home/joel/Downloads/libxml2/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/joel/Downloads/libxml2/include'
make[2]: Leaving directory `/home/joel/Downloads/libxml2/include'
Making all in .
make[2]: Entering directory `/home/joel/Downloads/libxml2'
  CC       SAX.lo
  CC       entities.lo
  CC       encoding.lo
  CC       error.lo
  CC       parserInternals.lo
  CC       parser.lo
  CC       tree.lo
  CC       hash.lo
  CC       list.lo
  CC       xmlIO.lo
  CC       xmlmemory.lo
  CC       uri.lo
  CC       valid.lo
  CC       xlink.lo
  CC       HTMLparser.lo
  CC       HTMLtree.lo
  CC       debugXML.lo
  CC       xpath.lo
In file included from xpath.c:476:0:
trionan.c:732:1: warning: 'trio_signbit' defined but not used [-Wunused-function]
 trio_signbit
 ^
trionan.c:218:1: warning: 'trio_is_negative' defined but not used [-Wunused-function]
 trio_is_negative
 ^
  CC       xpointer.lo
  CC       xinclude.lo
  CC       nanohttp.lo
  CC       nanoftp.lo
  CC       catalog.lo
  CC       globals.lo
  CC       threads.lo
threads.c:53:12: warning: redundant redeclaration of 'pthread_once' [-Wredundant-decls]
 extern int pthread_once (pthread_once_t *__once_control,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:505:12: note: previous declaration of 'pthread_once' was here
 extern int pthread_once (pthread_once_t *__once_control,
            ^
threads.c:56:14: warning: redundant redeclaration of 'pthread_getspecific' [-Wredundant-decls]
 extern void *pthread_getspecific (pthread_key_t __key)
              ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1130:14: note: previous declaration of 'pthread_getspecific' was here
 extern void *pthread_getspecific (pthread_key_t __key) __THROW;
              ^
threads.c:58:12: warning: redundant redeclaration of 'pthread_setspecific' [-Wredundant-decls]
 extern int pthread_setspecific (pthread_key_t __key,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1133:12: note: previous declaration of 'pthread_setspecific' was here
 extern int pthread_setspecific (pthread_key_t __key,
            ^
threads.c:61:12: warning: redundant redeclaration of 'pthread_key_create' [-Wredundant-decls]
 extern int pthread_key_create (pthread_key_t *__key,
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1122:12: note: previous declaration of 'pthread_key_create' was here
 extern int pthread_key_create (pthread_key_t *__key,
            ^
threads.c:64:12: warning: redundant redeclaration of 'pthread_key_delete' [-Wredundant-decls]
 extern int pthread_key_delete (pthread_key_t __key)
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1127:12: note: previous declaration of 'pthread_key_delete' was here
 extern int pthread_key_delete (pthread_key_t __key) __THROW;
            ^
threads.c:67:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:66:12: warning: redundant redeclaration of 'pthread_mutex_init' [-Wredundant-decls]
 extern int pthread_mutex_init ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:760:12: note: previous declaration of 'pthread_mutex_init' was here
 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
            ^
threads.c:69:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:68:12: warning: redundant redeclaration of 'pthread_mutex_destroy' [-Wredundant-decls]
 extern int pthread_mutex_destroy ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:765:12: note: previous declaration of 'pthread_mutex_destroy' was here
 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
            ^
threads.c:71:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:70:12: warning: redundant redeclaration of 'pthread_mutex_lock' [-Wredundant-decls]
 extern int pthread_mutex_lock ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:773:12: note: previous declaration of 'pthread_mutex_lock' was here
 extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
            ^
threads.c:73:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:72:12: warning: redundant redeclaration of 'pthread_mutex_unlock' [-Wredundant-decls]
 extern int pthread_mutex_unlock ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:784:12: note: previous declaration of 'pthread_mutex_unlock' was here
 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
            ^
threads.c:75:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:74:12: warning: redundant redeclaration of 'pthread_cond_init' [-Wredundant-decls]
 extern int pthread_cond_init ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:979:12: note: previous declaration of 'pthread_cond_init' was here
 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
            ^
threads.c:77:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:76:12: warning: redundant redeclaration of 'pthread_cond_destroy' [-Wredundant-decls]
 extern int pthread_cond_destroy ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:984:12: note: previous declaration of 'pthread_cond_destroy' was here
 extern int pthread_cond_destroy (pthread_cond_t *__cond)
            ^
threads.c:79:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:78:12: warning: redundant redeclaration of 'pthread_cond_wait' [-Wredundant-decls]
 extern int pthread_cond_wait ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1000:12: note: previous declaration of 'pthread_cond_wait' was here
 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
            ^
threads.c:81:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:80:12: warning: redundant redeclaration of 'pthread_equal' [-Wredundant-decls]
 extern int pthread_equal ()
            ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdio.h:27,
                 from libxml.h:49,
                 from threads.c:11:
/usr/include/pthread.h:1164:1: note: previous definition of 'pthread_equal' was here
 __NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
 ^
threads.c:83:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:82:18: warning: redundant redeclaration of 'pthread_self' [-Wredundant-decls]
 extern pthread_t pthread_self ()
                  ^
In file included from threads.c:28:0:
/usr/include/pthread.h:286:18: note: previous declaration of 'pthread_self' was here
 extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));
                  ^
threads.c:85:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:84:12: warning: redundant redeclaration of 'pthread_key_create' [-Wredundant-decls]
 extern int pthread_key_create ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1122:12: note: previous declaration of 'pthread_key_create' was here
 extern int pthread_key_create (pthread_key_t *__key,
            ^
threads.c:87:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:86:12: warning: redundant redeclaration of 'pthread_key_delete' [-Wredundant-decls]
 extern int pthread_key_delete ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:1127:12: note: previous declaration of 'pthread_key_delete' was here
 extern int pthread_key_delete (pthread_key_t __key) __THROW;
            ^
threads.c:89:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
     __attribute((weak));
     ^
threads.c:88:12: warning: redundant redeclaration of 'pthread_cond_signal' [-Wredundant-decls]
 extern int pthread_cond_signal ()
            ^
In file included from threads.c:28:0:
/usr/include/pthread.h:988:12: note: previous declaration of 'pthread_cond_signal' was here
 extern int pthread_cond_signal (pthread_cond_t *__cond)
            ^
  CC       c14n.lo
  CC       xmlstring.lo
  CC       buf.lo
  CC       xmlregexp.lo
  CC       xmlschemas.lo
  CC       xmlschemastypes.lo
  CC       xmlunicode.lo
  CC       xmlreader.lo
  CC       relaxng.lo
  CC       dict.lo
  CC       SAX2.lo
  CC       xmlwriter.lo
  CC       legacy.lo
  CC       chvalid.lo
  CC       pattern.lo
  CC       xmlsave.lo
  CC       xmlmodule.lo
  CC       schematron.lo
schematron.c:90:5: error: unknown type name 'xmlXPathCompExprPtr'
     xmlXPathCompExprPtr comp; /* the compiled expression */
     ^
schematron.c:164:5: error: unknown type name 'xmlXPathContextPtr'
     xmlXPathContextPtr xctxt;
     ^
schematron.c:193:5: error: unknown type name 'xmlXPathContextPtr'
     xmlXPathContextPtr xctxt; /* the XPath context used for compilation */
     ^
schematron.c: In function 'xmlSchematronAddTest':
schematron.c:313:5: error: unknown type name 'xmlXPathCompExprPtr'
     xmlXPathCompExprPtr comp;
     ^
schematron.c:322:5: warning: implicit declaration of function 'xmlXPathCtxtCompile' [-Wimplicit-function-declaration]
     comp = xmlXPathCtxtCompile(ctxt->xctxt, test);
     ^
schematron.c:322:5: warning: nested extern declaration of 'xmlXPathCtxtCompile' [-Wnested-externs]
schematron.c:323:14: warning: comparison between pointer and integer [enabled by default]
     if (comp == NULL) {
              ^
schematron.c: In function 'xmlSchematronFreeTests':
schematron.c:369:18: warning: comparison between pointer and integer [enabled by default]
  if (tests->comp != NULL)
                  ^
schematron.c:370:6: warning: implicit declaration of function 'xmlXPathFreeCompExpr' [-Wimplicit-function-declaration]
      xmlXPathFreeCompExpr(tests->comp);
      ^
schematron.c:370:6: warning: nested extern declaration of 'xmlXPathFreeCompExpr' [-Wnested-externs]
schematron.c: In function 'xmlSchematronNewParserCtxt__internal_alias':
schematron.c:610:5: warning: implicit declaration of function 'xmlXPathNewContext' [-Wimplicit-function-declaration]
     ret->xctxt = xmlXPathNewContext(NULL);
     ^
schematron.c:610:5: warning: nested extern declaration of 'xmlXPathNewContext' [-Wnested-externs]
schematron.c:611:20: warning: comparison between pointer and integer [enabled by default]
     if (ret->xctxt == NULL) {
                    ^
schematron.c:617:15: error: invalid type argument of '->' (have 'int')
     ret->xctxt->flags = XML_XPATH_CHECKNS;
               ^
schematron.c:617:25: error: 'XML_XPATH_CHECKNS' undeclared (first use in this function)
     ret->xctxt->flags = XML_XPATH_CHECKNS;
                         ^
schematron.c:617:25: note: each undeclared identifier is reported only once for each function it appears in
schematron.c: In function 'xmlSchematronNewMemParserCtxt__internal_alias':
schematron.c:652:20: warning: comparison between pointer and integer [enabled by default]
     if (ret->xctxt == NULL) {
                    ^
schematron.c: In function 'xmlSchematronNewDocParserCtxt__internal_alias':
schematron.c:692:20: warning: comparison between pointer and integer [enabled by default]
     if (ret->xctxt == NULL) {
                    ^
schematron.c: In function 'xmlSchematronFreeParserCtxt__internal_alias':
schematron.c:715:21: warning: comparison between pointer and integer [enabled by default]
     if (ctxt->xctxt != NULL) {
                     ^
schematron.c:716:9: warning: implicit declaration of function 'xmlXPathFreeContext' [-Wimplicit-function-declaration]
         xmlXPathFreeContext(ctxt->xctxt);
         ^
schematron.c:716:9: warning: nested extern declaration of 'xmlXPathFreeContext' [-Wnested-externs]
schematron.c: In function 'xmlSchematronParse__internal_alias':
schematron.c:1182:6: warning: implicit declaration of function 'xmlXPathRegisterNs' [-Wimplicit-function-declaration]
      xmlXPathRegisterNs(ctxt->xctxt, prefix, uri);
      ^
schematron.c:1182:6: warning: nested extern declaration of 'xmlXPathRegisterNs' [-Wnested-externs]
schematron.c: In function 'xmlSchematronGetNode':
schematron.c:1246:5: error: unknown type name 'xmlXPathObjectPtr'
     xmlXPathObjectPtr ret;
     ^
schematron.c:1251:16: error: invalid type argument of '->' (have 'int')
     ctxt->xctxt->doc = cur->doc;
                ^
schematron.c:1252:16: error: invalid type argument of '->' (have 'int')
     ctxt->xctxt->node = cur;
                ^
schematron.c:1253:5: warning: implicit declaration of function 'xmlXPathEval' [-Wimplicit-function-declaration]
     ret = xmlXPathEval(xpath, ctxt->xctxt);
     ^
schematron.c:1253:5: warning: nested extern declaration of 'xmlXPathEval' [-Wnested-externs]
schematron.c:1254:13: warning: comparison between pointer and integer [enabled by default]
     if (ret == NULL)
             ^
schematron.c:1257:13: error: invalid type argument of '->' (have 'int')
     if ((ret->type == XPATH_NODESET) &&
             ^
schematron.c:1257:23: error: 'XPATH_NODESET' undeclared (first use in this function)
     if ((ret->type == XPATH_NODESET) &&
                       ^
schematron.c:1258:13: error: invalid type argument of '->' (have 'int')
         (ret->nodesetval != NULL) && (ret->nodesetval->nodeNr > 0))
             ^
schematron.c:1258:42: error: invalid type argument of '->' (have 'int')
         (ret->nodesetval != NULL) && (ret->nodesetval->nodeNr > 0))
                                          ^
schematron.c:1259:12: error: invalid type argument of '->' (have 'int')
  node = ret->nodesetval->nodeTab[0];
            ^
schematron.c:1261:5: warning: implicit declaration of function 'xmlXPathFreeObject' [-Wimplicit-function-declaration]
     xmlXPathFreeObject(ret);
     ^
schematron.c:1261:5: warning: nested extern declaration of 'xmlXPathFreeObject' [-Wnested-externs]
schematron.c: In function 'xmlSchematronNewValidCtxt__internal_alias':
schematron.c:1521:20: warning: comparison between pointer and integer [enabled by default]
     if (ret->xctxt == NULL) {
                    ^
schematron.c: In function 'xmlSchematronFreeValidCtxt__internal_alias':
schematron.c:1548:21: warning: comparison between pointer and integer [enabled by default]
     if (ctxt->xctxt != NULL)
                     ^
schematron.c: In function 'xmlSchematronRunTest':
schematron.c:1605:5: error: unknown type name 'xmlXPathObjectPtr'
     xmlXPathObjectPtr ret;
     ^
schematron.c:1609:16: error: invalid type argument of '->' (have 'int')
     ctxt->xctxt->doc = instance;
                ^
schematron.c:1610:16: error: invalid type argument of '->' (have 'int')
     ctxt->xctxt->node = cur;
                ^
schematron.c:1611:5: warning: implicit declaration of function 'xmlXPathCompiledEval' [-Wimplicit-function-declaration]
     ret = xmlXPathCompiledEval(test->comp, ctxt->xctxt);
     ^
schematron.c:1611:5: warning: nested extern declaration of 'xmlXPathCompiledEval' [-Wnested-externs]
schematron.c:1612:13: warning: comparison between pointer and integer [enabled by default]
     if (ret == NULL) {
             ^
schematron.c:1615:20: error: invalid type argument of '->' (have 'int')
         switch (ret->type) {
                    ^
schematron.c:1616:11: error: 'XPATH_XSLT_TREE' undeclared (first use in this function)
      case XPATH_XSLT_TREE:
           ^
schematron.c:1617:11: error: 'XPATH_NODESET' undeclared (first use in this function)
      case XPATH_NODESET:
           ^
schematron.c:1618:11: error: invalid type argument of '->' (have 'int')
   if ((ret->nodesetval == NULL) ||
           ^
schematron.c:1619:11: error: invalid type argument of '->' (have 'int')
       (ret->nodesetval->nodeNr == 0))
           ^
schematron.c:1622:11: error: 'XPATH_BOOLEAN' undeclared (first use in this function)
      case XPATH_BOOLEAN:
           ^
schematron.c:1623:16: error: invalid type argument of '->' (have 'int')
   failed = !ret->boolval;
                ^
schematron.c:1625:11: error: 'XPATH_NUMBER' undeclared (first use in this function)
      case XPATH_NUMBER:
           ^
schematron.c:1626:25: error: invalid type argument of '->' (have 'int')
   if ((xmlXPathIsNaN(ret->floatval)) ||
                         ^
schematron.c:1627:11: error: invalid type argument of '->' (have 'int')
       (ret->floatval == 0.0))
           ^
schematron.c:1630:11: error: 'XPATH_STRING' undeclared (first use in this function)
      case XPATH_STRING:
           ^
schematron.c:1631:11: error: invalid type argument of '->' (have 'int')
   if ((ret->stringval == NULL) ||
           ^
schematron.c:1632:11: error: invalid type argument of '->' (have 'int')
       (ret->stringval[0] == 0))
           ^
schematron.c:1635:11: error: 'XPATH_UNDEFINED' undeclared (first use in this function)
      case XPATH_UNDEFINED:
           ^
schematron.c:1636:11: error: 'XPATH_POINT' undeclared (first use in this function)
      case XPATH_POINT:
           ^
schematron.c:1637:11: error: 'XPATH_RANGE' undeclared (first use in this function)
      case XPATH_RANGE:
           ^
schematron.c:1638:11: error: 'XPATH_LOCATIONSET' undeclared (first use in this function)
      case XPATH_LOCATIONSET:
           ^
schematron.c:1639:11: error: 'XPATH_USERS' undeclared (first use in this function)
      case XPATH_USERS:
           ^
make[2]: *** [schematron.lo] Error 1
make[2]: Leaving directory `/home/joel/Downloads/libxml2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joel/Downloads/libxml2'
make: *** [all] Error 2
