[xml] Compilation problem --without-schemas



Hi all,

just tried to compile libxml2.6.16 (linux, gcc-3.4.3, glibc 2.2)
with following configuration:

./configure --without-threads --without-http --without-ftp --without-schemas

Unfortunately the compiler created a lot of warnings and an error while compiling testapi.c.
For details see  the end of this mail.

Compiling libxml2 with xml-schema support everything works fine.
I am not sure if this problem is knowed or already fixed.
Just wanted to mention it, any clue?

Cheers Matthias




libxml2 python bindings not available, skipping testapi.c generation
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -O3 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT testapi.o -MD -MP -MF ".deps/testapi.Tpo" -c -o testapi.o testapi.c; \ then mv -f ".deps/testapi.Tpo" ".deps/testapi.Po"; else rm -f ".deps/testapi.Tpo"; exit 1; fi
testapi.c: In function `test_htmlEntityLookup':
testapi.c:2226: warning: passing arg 1 of `desret_const_htmlEntityDesc_ptr' discards qualifiers from pointer target type
testapi.c: In function `test_htmlEntityValueLookup':
testapi.c:2260: warning: passing arg 1 of `desret_const_htmlEntityDesc_ptr' discards qualifiers from pointer target type
testapi.c: In function `test_htmlParseEntityRef':
testapi.c:2647: warning: passing arg 2 of `htmlParseEntityRef' from incompatible pointer type testapi.c:2648: warning: passing arg 1 of `desret_const_htmlEntityDesc_ptr' discards qualifiers from pointer target type testapi.c:2651: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlSAX2StartElement':
testapi.c:5225: warning: passing arg 3 of `xmlSAX2StartElement' from incompatible pointer type testapi.c:5229: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlSAX2StartElementNs':
testapi.c:5294: warning: passing arg 6 of `xmlSAX2StartElementNs' from incompatible pointer type testapi.c:5294: warning: passing arg 9 of `xmlSAX2StartElementNs' from incompatible pointer type testapi.c:5301: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type testapi.c:5304: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlGetFeaturesList':
testapi.c:13385: warning: passing arg 2 of `xmlGetFeaturesList' from incompatible pointer type testapi.c:13389: warning: passing arg 2 of `des_const_char_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlErrMemory':
testapi.c:16168: warning: implicit declaration of function `xmlErrMemory'
testapi.c:16168: warning: nested extern declaration of `xmlErrMemory'
testapi.c: In function `test_xmlValidGetPotentialChildren':
testapi.c:24852: warning: passing arg 2 of `xmlValidGetPotentialChildren' from incompatible pointer type testapi.c:24856: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlValidGetValidElements':
testapi.c:24907: warning: passing arg 3 of `xmlValidGetValidElements' from incompatible pointer type testapi.c:24912: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: In function `test_xmlTextReaderGetErrorHandler':
testapi.c:29640: error: `gen_nb_void_ptr_ptr' undeclared (first use in this function)
testapi.c:29640: error: (Each undeclared identifier is reported only once
testapi.c:29640: error: for each function it appears in.)
testapi.c:29644: warning: implicit declaration of function `gen_void_ptr_ptr'
testapi.c:29644: warning: nested extern declaration of `gen_void_ptr_ptr'
testapi.c:29644: warning: assignment makes pointer from integer without a cast testapi.c:29650: warning: implicit declaration of function `des_void_ptr_ptr'
testapi.c:29650: warning: nested extern declaration of `des_void_ptr_ptr'
testapi.c: In function `test_xmlTextReaderPreservePattern':
testapi.c:30630: warning: passing arg 3 of `xmlTextReaderPreservePattern' from incompatible pointer type testapi.c:30635: warning: passing arg 2 of `des_const_xmlChar_ptr_ptr' from incompatible pointer type
testapi.c: At top level:
testapi.c:287: warning: 'gen_unsigned_long' defined but not used
testapi.c:294: warning: 'des_unsigned_long' defined but not used
testapi.c:313: warning: 'gen_unsigned_long_ptr' defined but not used
testapi.c:318: warning: 'des_unsigned_long_ptr' defined but not used
testapi.c:899: warning: 'gen_htmlParserOption' defined but not used
testapi.c:906: warning: 'des_htmlParserOption' defined but not used
testapi.c:908: warning: 'desret_htmlParserOption' defined but not used
testapi.c:915: warning: 'gen_htmlStatus' defined but not used
testapi.c:922: warning: 'des_htmlStatus' defined but not used
testapi.c:930: warning: 'gen_xlinkActuate' defined but not used
testapi.c:936: warning: 'des_xlinkActuate' defined but not used
testapi.c:938: warning: 'desret_xlinkActuate' defined but not used
testapi.c:942: warning: 'gen_xlinkShow' defined but not used
testapi.c:949: warning: 'des_xlinkShow' defined but not used
testapi.c:951: warning: 'desret_xlinkShow' defined but not used
testapi.c:955: warning: 'gen_xlinkType' defined but not used
testapi.c:962: warning: 'des_xlinkType' defined but not used
testapi.c:964: warning: 'desret_xlinkType' defined but not used
testapi.c:977: warning: 'desret_xmlAttributeDefault' defined but not used
testapi.c:990: warning: 'desret_xmlAttributeType' defined but not used
testapi.c:1037: warning: 'gen_xmlElementContentOccur' defined but not used
testapi.c:1044: warning: 'des_xmlElementContentOccur' defined but not used
testapi.c:1046: warning: 'desret_xmlElementContentOccur' defined but not used
testapi.c:1050: warning: 'gen_xmlElementContentType' defined but not used
testapi.c:1057: warning: 'des_xmlElementContentType' defined but not used
testapi.c:1059: warning: 'desret_xmlElementContentType' defined but not used
testapi.c:1063: warning: 'gen_xmlElementType' defined but not used
testapi.c:1070: warning: 'des_xmlElementType' defined but not used
testapi.c:1072: warning: 'desret_xmlElementType' defined but not used
testapi.c:1085: warning: 'desret_xmlElementTypeVal' defined but not used
testapi.c:1089: warning: 'gen_xmlEntityType' defined but not used
testapi.c:1096: warning: 'des_xmlEntityType' defined but not used
testapi.c:1098: warning: 'desret_xmlEntityType' defined but not used
testapi.c:1102: warning: 'gen_xmlErrorDomain' defined but not used
testapi.c:1109: warning: 'des_xmlErrorDomain' defined but not used
testapi.c:1111: warning: 'desret_xmlErrorDomain' defined but not used
testapi.c:1115: warning: 'gen_xmlErrorLevel' defined but not used
testapi.c:1122: warning: 'des_xmlErrorLevel' defined but not used
testapi.c:1124: warning: 'desret_xmlErrorLevel' defined but not used
testapi.c:1128: warning: 'gen_xmlParserErrors' defined but not used
testapi.c:1135: warning: 'des_xmlParserErrors' defined but not used
testapi.c:1141: warning: 'gen_xmlParserInputState' defined but not used
testapi.c:1148: warning: 'des_xmlParserInputState' defined but not used
testapi.c:1150: warning: 'desret_xmlParserInputState' defined but not used
testapi.c:1154: warning: 'gen_xmlParserMode' defined but not used
testapi.c:1161: warning: 'des_xmlParserMode' defined but not used
testapi.c:1163: warning: 'desret_xmlParserMode' defined but not used
testapi.c:1167: warning: 'gen_xmlParserOption' defined but not used
testapi.c:1174: warning: 'des_xmlParserOption' defined but not used
testapi.c:1176: warning: 'desret_xmlParserOption' defined but not used
testapi.c:1181: warning: 'gen_xmlParserProperties' defined but not used
testapi.c:1188: warning: 'des_xmlParserProperties' defined but not used
testapi.c:1190: warning: 'desret_xmlParserProperties' defined but not used
testapi.c:1197: warning: 'gen_xmlParserSeverities' defined but not used
testapi.c:1204: warning: 'des_xmlParserSeverities' defined but not used
testapi.c:1206: warning: 'desret_xmlParserSeverities' defined but not used
testapi.c:1213: warning: 'gen_xmlReaderTypes' defined but not used
testapi.c:1220: warning: 'des_xmlReaderTypes' defined but not used
testapi.c:1222: warning: 'desret_xmlReaderTypes' defined but not used
testapi.c:1337: warning: 'gen_xmlTextReaderMode' defined but not used
testapi.c:1344: warning: 'des_xmlTextReaderMode' defined but not used
testapi.c:1346: warning: 'desret_xmlTextReaderMode' defined but not used
testapi.c:1353: warning: 'gen_xmlXPathError' defined but not used
testapi.c:1360: warning: 'des_xmlXPathError' defined but not used
testapi.c:1362: warning: 'desret_xmlXPathError' defined but not used
testapi.c:1369: warning: 'gen_xmlXPathObjectType' defined but not used
testapi.c:1376: warning: 'des_xmlXPathObjectType' defined but not used
testapi.c:1378: warning: 'desret_xmlXPathObjectType' defined but not used
testapi.c:12268: warning: 'gen_char_ptr_ptr' defined but not used
testapi.c:12271: warning: 'des_char_ptr_ptr' defined but not used
testapi.c:14426: warning: 'gen_const_xmlParserCtxtPtr' defined but not used
testapi.c:14429: warning: 'des_const_xmlParserCtxtPtr' defined but not used
testapi.c:14450: warning: 'gen_const_xmlParserNodeInfoSeqPtr' defined but not used testapi.c:14453: warning: 'des_const_xmlParserNodeInfoSeqPtr' defined but not used
make[2]: *** [testapi.o] Error 1

--

Matthias Jung                 mailto:matthias jung prismtech com
PrismTech (Germany) GmbH      http://www.xtradyne.com | http://www.prismtech.com
Schoenhauser Allee 6-7,       Phone: +49-30-440306-38
D-10119 Berlin, Germany       Fax  : +49-30-440306-78

* XTRADYNE Security Infrastructure - a PRISMTECH Product Line *




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