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