GNOME Bugzilla – Bug 319889
libxml2 2.6.22 does not compile when configured --without-schemas
Last modified: 2005-10-27 09:14:08 UTC
If compiled with --without-schemas (but with reader support), the compilation fails. The full set of flags is: --disable-shared --with-threads --without-thread-alloc --without-ftp --without-http --without-legacy --without-valid --without-catalog --without-docbook --without-xinclude --without-schemas --without-regexps --without-iconv --without-python --without-zlib --without-mem-debug testapi.c:28979: error: ‘gen_nb_void_ptr_ptr’ undeclared (first use in this function) testapi.c:28979: error: (Each undeclared identifier is reported only once testapi.c:28979: error: for each function it appears in.) testapi.c:28983: warning: implicit declaration of function ‘gen_void_ptr_ptr’ testapi.c:28983: warning: nested extern declaration of ‘gen_void_ptr_ptr’ testapi.c:28983: warning: assignment makes pointer from integer without a cast testapi.c:28990: warning: implicit declaration of function ‘des_void_ptr_ptr’ testapi.c:28990: warning: nested extern declaration of ‘des_void_ptr_ptr’ testapi.c: In function ‘test_xmlTextReaderGetErrorHandler’: testapi.c:30299: error: ‘gen_nb_void_ptr_ptr’ undeclared (first use in this function) testapi.c:30303: warning: assignment makes pointer from integer without a cast testapi.c: At top level: testapi.c:31693: error: syntax error before ‘gen_xmlSchemaPtr’ testapi.c:31693: warning: return type defaults to ‘int’ testapi.c:31693: warning: no previous prototype for ‘gen_xmlSchemaPtr’ testapi.c: In function ‘gen_xmlSchemaPtr’: testapi.c:31694: warning: return makes integer from pointer without a cast testapi.c: At top level: testapi.c:31696: error: syntax error before ‘xmlSchemaPtr’ make[5]: *** [testapi.o] Error 1 Similar to bug 307823.
Created attachment 53920 [details] [review] Patch which adds #ifdef on LIBXML_SCHEMAS_ENABLED Note: with this patch, there are a number of 'defined but not used' warnings - but I haven't analyzed whether these functions depend on schema support. testapi.c: At top level: testapi.c:302: warning: ‘gen_unsigned_long’ defined but not used testapi.c:309: warning: ‘des_unsigned_long’ defined but not used testapi.c:328: warning: ‘gen_unsigned_long_ptr’ defined but not used testapi.c:333: warning: ‘des_unsigned_long_ptr’ defined but not used testapi.c:12001: warning: ‘gen_char_ptr_ptr’ defined but not used testapi.c:12004: warning: ‘des_char_ptr_ptr’ defined but not used testapi.c:12939: warning: ‘gen_const_char_ptr_ptr’ defined but not used testapi.c:12942: warning: ‘des_const_char_ptr_ptr’ defined but not used testapi.c:17762: warning: ‘gen_xmlSchematronPtr’ defined but not used testapi.c:17765: warning: ‘des_xmlSchematronPtr’ defined but not used testapi.c:17779: warning: ‘gen_xmlSchematronParserCtxtPtr’ defined but not used testapi.c:17782: warning: ‘des_xmlSchematronParserCtxtPtr’ defined but not used testapi.c:25324: warning: ‘gen_xmlElementContent_ptr’ defined but not used testapi.c:25327: warning: ‘des_xmlElementContent_ptr’ defined but not used testapi.c:30278: warning: ‘gen_xmlTextReaderErrorFunc_ptr’ defined but not used testapi.c:30281: warning: ‘des_xmlTextReaderErrorFunc_ptr’ defined but not used
I think William Brack fixed this in CVS check with CVS head, Daniel *** This bug has been marked as a duplicate of 319596 ***