After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319889 - libxml2 2.6.22 does not compile when configured --without-schemas
libxml2 2.6.22 does not compile when configured --without-schemas
Status: RESOLVED DUPLICATE of bug 319596
Product: libxml2
Classification: Platform
Component: general
2.6.22
Other Linux
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-26 18:41 UTC by Gary Coady
Modified: 2005-10-27 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch which adds #ifdef on LIBXML_SCHEMAS_ENABLED (1.34 KB, patch)
2005-10-26 18:43 UTC, Gary Coady
none Details | Review

Description Gary Coady 2005-10-26 18:41:33 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.
Comment 1 Gary Coady 2005-10-26 18:43:25 UTC
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
Comment 2 Daniel Veillard 2005-10-27 09:14:08 UTC
I think William Brack fixed this in CVS check with CVS head,

Daniel

*** This bug has been marked as a duplicate of 319596 ***