[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] Issues with --with-minimum



On 6/9/06, Daniel Veillard <veillard redhat com> wrote:
On Fri, Jun 09, 2006 at 02:45:06PM -0500, Felipe Contreras wrote:
> Hi everybody,
>
> I had a problem when trying --with-minimum and --with-reader at the
> same time. It seems I have to specify all of the following:
> --with-sax1 --with-schemas --with-tree --with-xptr --with-writer,
> otherwise libxml2 won't compile.
>
> That's with the latest version, 2.6.26, is that the desired behaviour?

  Hum, no, the reader should not be dependant on sax1/schemas/xptr/writer
and the tree bit could be cleaned up too. So there is something broken.

It seems the problem was only on testapi.c, I have attached a patch
that makes reader work without schemas. However, I'm pretty sure there
are other combinations that don't work.

--
Felipe Contreras
--- libxml2-2.6.26/testapi.c	2006-06-06 08:22:02.000000000 -0500
+++ libxml2-2.6.26-mod/testapi.c	2006-06-14 15:39:19.000000000 -0500
@@ -30599,7 +30599,7 @@
 test_xmlTextReaderGetErrorHandler(void) {
     int test_ret = 0;
 
-#if defined(LIBXML_READER_ENABLED)
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
     int mem_base;
     xmlTextReaderPtr reader; /* the xmlTextReaderPtr used */
     int n_reader;
@@ -31943,7 +31943,7 @@
     return(test_ret);
 }
 
-#ifdef LIBXML_READER_ENABLED
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
 
 #define gen_nb_xmlSchemaValidCtxtPtr 1
 static xmlSchemaValidCtxtPtr gen_xmlSchemaValidCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
@@ -32059,7 +32059,7 @@
     return(test_ret);
 }
 
-#ifdef LIBXML_READER_ENABLED
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED)
 
 #define gen_nb_xmlSchemaPtr 1
 static xmlSchemaPtr gen_xmlSchemaPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]