Only call libxml2's xmlNanoHTTPCleanup if libxml2's http support exists. https://www.gaia-gis.it/fossil/libspatialite/tktview?name=7c452740fe https://www.gaia-gis.it/fossil/libspatialite/tktview?name=e8f33aa9d8 https://www.gaia-gis.it/fossil/libspatialite/tktview?name=ac85f0fca3 https://groups.google.com/g/spatialite-users/c/FLBqJNIDkNQ https://github.com/NixOS/nixpkgs/blob/571c71e6f73af34a229414f51585738894211408/pkgs/by-name/li/libspatialite/xmlNanoHTTPCleanup.patch --- src/wfs/wfs_in.c.orig 2023-08-04 02:51:40.000000000 -0500 +++ src/wfs/wfs_in.c 2026-03-10 19:12:58.000000000 -0500 @@ -76,7 +76,9 @@ #ifdef ENABLE_LIBXML2 /* LIBXML2 enabled: supporting XML documents */ #include +#ifdef LIBXML_HTTP_ENABLED #include +#endif #define MAX_GTYPES 28 @@ -4636,8 +4638,10 @@ SPATIALITE_DECLARE void reset_wfs_http_connection (void) { +#ifdef LIBXML_HTTP_ENABLED /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */ xmlNanoHTTPCleanup (); +#endif } #else /* LIBXML2 isn't enabled */