GNOME Bugzilla – Bug 641816
Cannot compile using --without-output
Last modified: 2021-07-05 13:24:53 UTC
In d2e62311 by Adam Spragg (shown below), 'format' has been used outside of LIBXML_OUTPUT_ENABLED. This means the file does not compile with --without-output. @@ -3338,6 +3344,17 @@ main(int argc, char **argv) { #endif /* LIBXML_OUTPUT_ENABLED */ xmlKeepBlanksDefault(0); } + else if ((!strcmp(argv[i], "-pretty")) || + (!strcmp(argv[i], "--pretty"))) { + i++; +#ifdef LIBXML_OUTPUT_ENABLED + format = atoi(argv[i]); +#endif /* LIBXML_OUTPUT_ENABLED */ + if (format == 1) { + noblanks++; + xmlKeepBlanksDefault(0); + } + } #ifdef LIBXML_READER_ENABLED else if ((!strcmp(argv[i], "-stream")) || (!strcmp(argv[i], "--stream"))) {
I may be mistaken in thinking the cuase is --without-output. Here are the flags I am passing to configure: --enable-static --disable-shared --without-c14n --without-catalog --without-debug --without-docbook --without-fexceptions --without-ftp --without-history --without-html --without-http --without-iso8859x --without-legacy --without-mem-debug --without-minimum --without-output --without-pattern --without-push --without-reader --without-regexps --without-run-debug --without-sax1 --without-schemas --without-schematron --without-threads --without-thread-alloc --without-tree --without-valid --without-writer --without-xinclude --without-xpath --without-xptr --without-modules --without-coverage --without-python
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.