-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error with MSYS2 CLANG{64,32} environments #3851
Comments
These error didn't occur when libxml2-2.11.6 was used: |
It seems that MINGW{32,64} have another errors with libxml2-2.12.0. MINGW64:
MINGW32:
|
lixml2-2.12.0 in MSYS2 was built with Reference: msys2/MSYS2-packages@d8c83a4 the real cause is that diff --git a/main/lxpath.c b/main/lxpath.c
index 42e4a40e..275491a3 100644
--- a/main/lxpath.c
+++ b/main/lxpath.c
@@ -20,6 +20,7 @@
#include "xtag.h"
#ifdef HAVE_LIBXML
+#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/tree.h>
|
I will check it in tomorrow's daily build. |
Unfortunately, still failing. |
@k-takata Thank you. I'll look into this. |
|
In my understanding, @leleliu008 fixed the issue about the building. We must catch up on the newer API of libxml2. I'll work on this topic. |
Now the build error has been fixed. |
The error was reproduced with libxml2-2.12.1 + fedora:latest container.
libxml2-2.10.4 is installed as a package in 'fedora:latest' container. |
Git-bisect reported the following commit of libxml2 causes this issue:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/cb927e851959219da1fec49d1cf088aac5579949 |
The commit cb927e851959219da1fec49d1cf088aac5579949 is small, but many commits have been added after the commit. So, I could not fix the bug in HEAD. I reported the issue to https://gitlab.gnome.org/GNOME/libxml2/-/issues/628 with minimum reproducer. If I could fix the bug, we would have to add code to ctags not to use a broken version of libxml2. On the platform using configure for building ctags, AC_TRY_RUN with the minimum reproducer in configure can be used to decide whether we should link libxml-2.0 to ctags or not. |
It seems that the bug is fixed in https://gitlab.gnome.org/GNOME/libxml2/-/commit/43b511fa714df875dc4f40d108061eede0d4d76b. (Added) I verified that the test case is passed with the libxml2 with the commit. |
Close via #3858. As I reported, a bug in libxml2 caused the failure of the test case. I added code detecting the bug of libxml2 to configure.ac. The code doesn't link libxml2 to ctags if the code detects the bug. |
https://github.com/universal-ctags/ctags-win32/actions/runs/6924537331/job/18833909212
https://github.com/universal-ctags/ctags-win32/actions/runs/6924537331/job/18833909365
It seems that
xmlLineNumbersDefault
andxmlParseMemory
are deprecated.https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html
(Not sure why these errors don't occur with MSYS2 MINGW{32,64} environments, though. Both use libxml2-2.12.0.)
The text was updated successfully, but these errors were encountered: