[xsl] Incorrectly working libxslt from CVS

Subject: [xsl] Incorrectly working libxslt from CVS
From: Max <gilead@xxxxxxxxxxxxxxxxxx>
Date: Fri, 08 Sep 2006 22:18:02 +0200
Hello!

I tried to compile libxslt from CVS but the version I've got produces
different (wrong) results than the one provided by Debian, which
produces correct results.

I need libxslt, namely xsltproc tool to compile X.org library xcb.
Problem is in xcb/src/xproto.c file. Here's a diff:

diff -u xproto.c-debian xproto.c-max
--- xproto.c-debian   2006-09-08 21:22:50.000000000 +0200
+++ xproto.c-max      2006-09-08 16:02:43.000000000 +0200
@@ -3855,7 +3855,7 @@
     XCBQueryTextExtentsCookie xcb_ret;
     XCBQueryTextExtentsReq xcb_out;

-    xcb_out.odd_length = (string_len & 1);
+    xcb_out.odd_length = (string_len  1);
     xcb_out.font = font;

     xcb_parts[2].iov_base = (char *) &xcb_out;
@@ -3887,7 +3887,7 @@
     XCBQueryTextExtentsCookie xcb_ret;
     XCBQueryTextExtentsReq xcb_out;

-    xcb_out.odd_length = (string_len & 1);
+    xcb_out.odd_length = (string_len  1);
     xcb_out.font = font;

     xcb_parts[2].iov_base = (char *) &xcb_out;

As you can see above '(string_len  1)' triggers syntax error when
compiling.

What can I do to fix compilation of libxslt so that it produces correct
(compilable) results? Of course I'll provide all additional information
that may be needed.

Debian version:
Using libxml 20626, libxslt 10117 and libexslt 813
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt
813
libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626

CVS version:
Using libxml 20626-CVS2834, libxslt 10117-CVS1076 and libexslt
813-CVS1076
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt
813
libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626

Regards,
Max

Current Thread