GNOME Bugzilla – Bug 319596
Trouble building libxml2 using "--with-minimum" option.
Last modified: 2005-10-27 09:14:10 UTC
Please describe the problem: Unable to build libxml2 on Linux RH FC4 using the "--with-minimum" option. Steps to reproduce: 1. Run configure as follows: ./configure --with-minimum --with-threads --with-xpath --with-sax1 --with-tree --with-output --prefix=/opt/libxml2-2.6.22 2. Then simply run make. Actual results: Builds up until it gets to compiling 'testapi.c' and then errors with: if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT - g -O2 -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 'gen_xmlValidCtxtPtr': testapi.c:455: warning: unused parameter 'no' testapi.c: In function 'des_xmlValidCtxtPtr': testapi.c:461: warning: unused parameter 'val' testapi.c: At top level: testapi.c:17762: error: syntax error before 'gen_xmlSchematronPtr' testapi.c:17762: warning: return type defaults to 'int' testapi.c:17762: warning: no previous prototype for 'gen_xmlSchematronPtr' testapi.c: In function 'gen_xmlSchematronPtr': Expected results: Simply build the library to completion with out any errors. Does this happen every time? yes Other information: William Brack has fixed the problem. I'm simply filing the bug report for completeness and to let others know in case they run into the same issue.
Fixed in CVS (gentest.py and testapi.c). Thanks for the report.
*** Bug 319889 has been marked as a duplicate of this bug. ***