GNOME Bugzilla – Bug 626068
Fixes for compilation warnings for OpenVMS
Last modified: 2021-07-05 13:27:25 UTC
Created attachment 167152 [details] full sources of changed files The following are (minor!) source code differences for libxml2 2.2.7 for OpenVMS; changes to resolve various compilation warnings. The first of the two parts of each section here is the updated code, and the second section is the 2.2.7 original. These source code changes should be entirely transparent to other platforms. One section of updates that are specific to OpenVMS around V8.4 support are also included here. I've attached full sources of the files involved as a zip archive. $ diff parser.c;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]parser.c;3 12916 hdlr = xmlFindCharEncodingHandler((const char *)doc->encoding); 12917 if (hdlr != NULL) { ****** File DKA100:[LIBXML2-2_7_7]parser.c;1 12916 hdlr = xmlFindCharEncodingHandler(doc->encoding); 12917 if (hdlr != NULL) { ************ Number of difference sections found: 1 Number of difference records found: 1 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]parser.c;3- DKA100:[LIBXML2-2_7_7]parser.c;1 $ diff runsuite.c;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]runsuite.c;2 98 static void 99 fatalError(void) { ****** File DKA100:[LIBXML2-2_7_7]runsuite.c;1 98 static int 99 fatalError(void) { ************ Number of difference sections found: 1 Number of difference records found: 1 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]runsuite.c;2- DKA100:[LIBXML2-2_7_7]runsuite.c;1 $ diff runtest.c;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]runtest.c;2 214 static void 215 fatalError(void) { ****** File DKA100:[LIBXML2-2_7_7]runtest.c;1 214 static int 215 fatalError(void) { ************ Number of difference sections found: 1 Number of difference records found: 1 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]runtest.c;2- DKA100:[LIBXML2-2_7_7]runtest.c;1 $ diff testapi.c;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]testapi.c;3 18828 if ((buf != NULL) && (scheme == XML_BUFFER_ALLOC_IMMUTABLE) && (buf->content != NULL) && (buf->content != (unsigned char *)static_buf_content)) { xmlFree(bu 18829 call_tests++; ****** File DKA100:[LIBXML2-2_7_7]testapi.c;1 18828 if ((buf != NULL) && (scheme == XML_BUFFER_ALLOC_IMMUTABLE) && (buf->content != NULL) && (buf->content != static_buf_content)) { xmlFree(buf->content); buf- 18829 call_tests++; ************ Number of difference sections found: 1 Number of difference records found: 1 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]testapi.c;3- DKA100:[LIBXML2-2_7_7]testapi.c;1 $ diff testrecurse.c;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]testrecurse.c;2 283 static void 284 fatalError(void) { ****** File DKA100:[LIBXML2-2_7_7]testrecurse.c;1 283 static int 284 fatalError(void) { ************ Number of difference sections found: 1 Number of difference records found: 1 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]testrecurse.c;2- DKA100:[LIBXML2-2_7_7]testrecurse.c;1 $ diff triodef.h;0,;-0 ************ File DKA100:[LIBXML2-2_7_7]triodef.h;7 199 # if (__CRTL_VER < 90000000) 200 /* 201 * Although the compiler supports C99 language constructs, the C 202 * run-time library does not yet contain all of the C99 functions. 203 * Update the C RTL version string when the RTL has C99 support. 204 * The V9.0 version is just a guess; we're at V8.4 (80400000) now. 205 */ ****** File DKA100:[LIBXML2-2_7_7]triodef.h;1 199 # if (__CRTL_VER < 80000000) 200 /* 201 * Although the compiler supports C99 language constructs, the C 202 * run-time library does not contain all C99 functions. 203 * 204 * This was the case for 70300022. Update the 80000000 value when 205 * it has been accurately determined what version of the library 206 * supports C99. 207 */ ************ ************ File DKA100:[LIBXML2-2_7_7]triodef.h;7 209 # else 210 # pragma message ("check C99 compiler assumptions with this OpenVMS version") 211 # endif ****** File DKA100:[LIBXML2-2_7_7]triodef.h;1 211 # endif ************ Number of difference sections found: 2 Number of difference records found: 10 DIFFERENCES /IGNORE=()/MERGED=1- DKA100:[LIBXML2-2_7_7]triodef.h;7- DKA100:[LIBXML2-2_7_7]triodef.h;1 $
Correction: this is based on 2.7.7, and not 2.2.7.
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.