Hello,

On 12/11/2015 04:04 AM, Daiki Ueno wrote:

The first pretest of gettext 0.19.7 is now available at:
http://alpha.gnu.org/gnu/gettext/gettext-0.19.6.43-6e6f6.tar.xz

I would appreciate if you can download and test it.  I plan to release
it in this month.

I'm getting compilation failures on various environments (centos 6.5, centos 7, 
Debian 8.1, OpenBSD, but *not* on Ubuntu 14.04),
and they all seem related to similar XML issue of missing function definitions 
(perhaps a wrong version of some XML library is installed?).

Attached 'make' logs from Centos 6.5 and 7.

I can test more or provide more logs if needed.

regards,
 - assaf
libtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\" -DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/lib\" -DGETTEXTDATADIR=\"/usr/local/share/gettext\" -DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c its.c  -fPIC -DPIC -o .libs/libgettextsrc_la-its.o
its.c: In function ‘its_rule_apply’:
its.c:313: error: ‘xmlXPathContext’ undeclared (first use in this function)
its.c:313: error: (Each undeclared identifier is reported only once
its.c:313: error: for each function it appears in.)
its.c:313: error: ‘context’ undeclared (first use in this function)
its.c:314: error: ‘xmlXPathObject’ undeclared (first use in this function)
its.c:314: error: ‘object’ undeclared (first use in this function)
its.c:323: warning: implicit declaration of function ‘xmlXPathNewContext’
its.c:336: warning: implicit declaration of function ‘xmlXPathRegisterNs’
its.c:340: warning: implicit declaration of function ‘xmlXPathEval’
its.c:343: warning: implicit declaration of function ‘xmlXPathFreeContext’
its.c:350: error: ‘xmlNodeSet’ undeclared (first use in this function)
its.c:350: error: ‘nodes’ undeclared (first use in this function)
its.c:373: warning: implicit declaration of function ‘xmlXPathFreeObject’
its.c: In function ‘_its_collect_text_content’:
its.c:576: warning: implicit declaration of function ‘xmlOutputBufferGetContent’
its.c:576: warning: cast to pointer from integer of different size
its.c: In function ‘_its_get_content’:
its.c:1540: error: ‘xmlXPathContext’ undeclared (first use in this function)
its.c:1540: error: ‘context’ undeclared (first use in this function)
its.c:1541: error: ‘xmlXPathObject’ undeclared (first use in this function)
its.c:1541: error: ‘object’ undeclared (first use in this function)
its.c:1566: warning: implicit declaration of function ‘xmlXPathSetContextNode’
its.c:1567: warning: implicit declaration of function ‘xmlXPathEvalExpression’
its.c:1578: error: ‘XPATH_NODESET’ undeclared (first use in this function)
its.c:1580: error: ‘xmlNodeSet’ undeclared (first use in this function)
its.c:1580: error: ‘nodes’ undeclared (first use in this function)
its.c:1598: error: ‘XPATH_STRING’ undeclared (first use in this function)
make[5]: *** [libgettextsrc_la-its.lo] Error 1
make[5]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.pDy8m6/gettext-0.19.6.43-6e6f6/gettext-tools/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.pDy8m6/gettext-0.19.6.43-6e6f6/gettext-tools/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.pDy8m6/gettext-0.19.6.43-6e6f6/gettext-tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.pDy8m6/gettext-0.19.6.43-6e6f6/gettext-tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.pDy8m6/gettext-0.19.6.43-6e6f6'
make: *** [all] Error 2
libtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\" -DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/lib\" -DGETTEXTDATADIR=\"/usr/local/share/gettext\" -DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c locating-rule.c  -fPIC -DPIC -o .libs/libgettextsrc_la-locating-rule.o
libtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\" -DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/lib\" -DGETTEXTDATADIR=\"/usr/local/share/gettext\" -DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c locating-rule.c -o libgettextsrc_la-locating-rule.o >/dev/null 2>&1
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\" -DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/lib\" -DGETTEXTDATADIR=\"/usr/local/share/gettext\" -DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I..  -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl     -g -O2 -c -o libgettextsrc_la-its.lo `test -f 'its.c' || echo './'`its.c
libtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\" -DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/local/lib\" -DGETTEXTDATADIR=\"/usr/local/share/gettext\" -DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c its.c  -fPIC -DPIC -o .libs/libgettextsrc_la-its.o
its.c: In function ‘its_rule_apply’:
its.c:313:3: error: unknown type name ‘xmlXPathContext’
   xmlXPathContext *context;
   ^
its.c:314:3: error: unknown type name ‘xmlXPathObject’
   xmlXPathObject *object;
   ^
its.c:323:3: warning: implicit declaration of function ‘xmlXPathNewContext’ [-Wimplicit-function-declaration]
   context = xmlXPathNewContext (doc);
   ^
its.c:323:11: warning: assignment makes pointer from integer without a cast [enabled by default]
   context = xmlXPathNewContext (doc);
           ^
its.c:336:11: warning: implicit declaration of function ‘xmlXPathRegisterNs’ [-Wimplicit-function-declaration]
           xmlXPathRegisterNs (context, ns->prefix, ns->href);
           ^
its.c:340:3: warning: implicit declaration of function ‘xmlXPathEval’ [-Wimplicit-function-declaration]
   object = xmlXPathEval (BAD_CAST rule->selector, context);
   ^
its.c:340:10: warning: assignment makes pointer from integer without a cast [enabled by default]
   object = xmlXPathEval (BAD_CAST rule->selector, context);
          ^
its.c:343:7: warning: implicit declaration of function ‘xmlXPathFreeContext’ [-Wimplicit-function-declaration]
       xmlXPathFreeContext (context);
       ^
its.c:348:13: error: request for member ‘nodesetval’ in something not a structure or union
   if (object->nodesetval)
             ^
its.c:350:7: error: unknown type name ‘xmlNodeSet’
       xmlNodeSet *nodes = object->nodesetval;
       ^
its.c:350:33: error: request for member ‘nodesetval’ in something not a structure or union
       xmlNodeSet *nodes = object->nodesetval;
                                 ^
its.c:351:28: error: request for member ‘nodeNr’ in something not a structure or union
       for (i = 0; i < nodes->nodeNr; i++)
                            ^
its.c:353:32: error: request for member ‘nodeTab’ in something not a structure or union
           xmlNode *node = nodes->nodeTab[i];
                                ^
its.c:373:3: warning: implicit declaration of function ‘xmlXPathFreeObject’ [-Wimplicit-function-declaration]
   xmlXPathFreeObject (object);
   ^
its.c: In function ‘_its_collect_text_content’:
its.c:576:13: warning: implicit declaration of function ‘xmlOutputBufferGetContent’ [-Wimplicit-function-declaration]
             ccontent = (const char *) xmlOutputBufferGetContent (buffer);
             ^
its.c:576:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             ccontent = (const char *) xmlOutputBufferGetContent (buffer);
                        ^
its.c: In function ‘_its_get_content’:
its.c:1540:3: error: unknown type name ‘xmlXPathContext’
   xmlXPathContext *context;
   ^
its.c:1541:3: error: unknown type name ‘xmlXPathObject’
   xmlXPathObject *object;
   ^
its.c:1545:11: warning: assignment makes pointer from integer without a cast [enabled by default]
   context = xmlXPathNewContext (node->doc);
           ^
its.c:1566:3: warning: implicit declaration of function ‘xmlXPathSetContextNode’ [-Wimplicit-function-declaration]
   xmlXPathSetContextNode (node, context);
   ^
its.c:1567:3: warning: implicit declaration of function ‘xmlXPathEvalExpression’ [-Wimplicit-function-declaration]
   object = xmlXPathEvalExpression (BAD_CAST pointer, context);
   ^
its.c:1567:10: warning: assignment makes pointer from integer without a cast [enabled by default]
   object = xmlXPathEvalExpression (BAD_CAST pointer, context);
          ^
its.c:1576:17: error: request for member ‘type’ in something not a structure or union
   switch (object->type)
                 ^
its.c:1578:10: error: ‘XPATH_NODESET’ undeclared (first use in this function)
     case XPATH_NODESET:
          ^
its.c:1578:10: note: each undeclared identifier is reported only once for each function it appears in
its.c:1580:9: error: unknown type name ‘xmlNodeSet’
         xmlNodeSet *nodes = object->nodesetval;
         ^
its.c:1580:35: error: request for member ‘nodesetval’ in something not a structure or union
         xmlNodeSet *nodes = object->nodesetval;
                                   ^
its.c:1585:30: error: request for member ‘nodeNr’ in something not a structure or union
         for (i = 0; i < nodes->nodeNr; i++)
                              ^
its.c:1587:61: error: request for member ‘nodeTab’ in something not a structure or union
             char *content = _its_collect_text_content (nodes->nodeTab[i],
                                                             ^
its.c:1598:10: error: ‘XPATH_STRING’ undeclared (first use in this function)
     case XPATH_STRING:
          ^
its.c:1599:46: error: request for member ‘stringval’ in something not a structure or union
       result = xstrdup ((const char *) object->stringval);
                                              ^
make[5]: *** [libgettextsrc_la-its.lo] Error 1
make[5]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.6cMHzV/gettext-0.19.6.43-6e6f6/gettext-tools/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.6cMHzV/gettext-0.19.6.43-6e6f6/gettext-tools/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.6cMHzV/gettext-0.19.6.43-6e6f6/gettext-tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.6cMHzV/gettext-0.19.6.43-6e6f6/gettext-tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gettext-0.19.6.43-6e6f6.6cMHzV/gettext-0.19.6.43-6e6f6'
make: *** [all] Error 2

Reply via email to