GNOME Bugzilla – Bug 142236
Severe namespace pollution
Last modified: 2021-07-05 13:25:50 UTC
"attribute", "characters", and "comment" are just a few of the functions that libxml2.so exports. I don't think it should export anything that generic. IMHO, those should be static or put into the xml namespace prefix.
Well known, there are in the legacy.c module, are deprecated, but maintained for obvious ABI and API compatibility reasons. This will be cleaned up if I ever release a non ABI compatible version which may be never, so at this point the answer is "Well known, isolated, but can''t fix" Daniel
Any chance of a configuration switch like --disable-legacy-api?
What about checking first before asking ;-) ? gnome:~/XML -> ./configure --help | grep legacy --with-legacy add deprecated APIs for compatibility (on) gnome:~/XML -> Daniel
Fine. It should have been --disable-foo [which refers to features] and not --with-foo [which refers to external stuff]. And it still muck with the namespace: [4786] | 174836| 80|FUNC |GLOB |0 |8 |initGenericErrorDefaultFunc [5192] | 156952| 368|FUNC |GLOB |0 |8 |initdocbDefaultSAXHandler [5360] | 156644| 308|FUNC |GLOB |0 |8 |inithtmlDefaultSAXHandler [4523] | 156184| 460|FUNC |GLOB |0 |8 |initxmlDefaultSAXHandler [4570] | 197796| 96|FUNC |GLOB |0 |8 |inputPop [4592] | 197648| 148|FUNC |GLOB |0 |8 |inputPush [5078] | 163472| 284|FUNC |GLOB |0 |8 |isolat1ToUTF8 [5552] | 198760| 96|FUNC |GLOB |0 |8 |namePop [5134] | 198588| 172|FUNC |GLOB |0 |8 |namePush [5400] | 198104| 96|FUNC |GLOB |0 |8 |nodePop [5155] | 197892| 212|FUNC |GLOB |0 |8 |nodePush [5315] | 1092012| 4|OBJT |GLOB |0 |13 |oldXMLWDcompatibility [5324] | 477188| 96|FUNC |GLOB |0 |8 |valuePop [4780] | 477284| 172|FUNC |GLOB |0 |8 |valuePush [4010] | 409060| 40|FUNC |GLOB |0 |8 |xlinkGetDefaultDetect [4943] | 408980| 40|FUNC |GLOB |0 |8 |xlinkGetDefaultHandler [4330] | 409140| 444|FUNC |GLOB |0 |8 |xlinkIsLink [4467] | 409100| 40|FUNC |GLOB |0 |8 |xlinkSetDefaultDetect [4434] | 409020| 40|FUNC |GLOB |0 |8 |xlinkSetDefaultHandler
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.