1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00
Nick Wellnhofer bbb2b8f136 Remove symbols from version script
The version script didn't account for symbols disabled by configuration
options. This has caused problems on some OSs in the past and breaks
lld 16 which enables --no-undefined-version by default.

A proper fix would be rather involved, so we simply remove all symbols
from the version script. This is an ELF-only feature and libxml2 never
made use of symbol versioning anyway. Ultimately, this removes the need
for a lot of bookkeeping without tangible benefits.

We have to keep the version nodes to avoid errors when running binaries
linked against older versions of libxml2.

Fixes #473.
2023-01-17 16:18:48 +01:00
2023-01-17 16:18:48 +01:00
2022-04-03 14:08:43 +02:00
2022-05-06 10:44:03 +02:00
2022-12-21 22:30:25 +01:00
2022-12-07 13:21:12 +00:00
2022-11-22 17:01:21 +01:00
2020-07-23 20:46:42 +02:00
2022-11-20 21:16:03 +01:00
2022-09-02 18:33:35 +02:00
2022-12-07 13:21:12 +00:00
2022-12-08 04:24:57 +01:00
2022-12-08 00:24:53 +01:00
2022-11-25 15:12:56 +01:00
2022-12-21 20:19:10 +01:00
2022-12-27 14:41:19 +01:00
2022-12-08 04:24:57 +01:00
2022-11-25 15:12:56 +01:00
2022-09-01 02:33:57 +02:00
2022-04-07 12:01:23 -07:00
2022-03-01 17:18:56 +01:00
2022-02-20 21:49:04 +01:00
2022-12-21 22:30:25 +01:00
2022-09-01 02:33:57 +02:00
2022-12-08 00:54:13 +01:00
2019-09-30 18:04:38 +02:00
2022-02-20 21:49:04 +01:00
2022-12-22 15:35:28 +01:00
2022-12-08 02:43:17 +01:00
2022-11-22 16:03:05 +01:00
2022-03-04 22:56:21 +01:00
2022-12-08 19:44:09 +01:00
2022-11-22 15:49:27 +01:00
2022-03-04 22:11:49 +01:00
2022-03-04 22:11:49 +01:00
2022-11-22 16:03:05 +01:00
2022-12-08 02:43:17 +01:00
2019-09-30 18:04:38 +02:00
2022-03-02 00:43:54 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2020-03-08 17:41:53 +01:00
2022-12-13 01:43:49 +01:00
2022-12-08 02:43:17 +01:00
2022-03-04 22:11:49 +01:00
2022-12-08 04:24:57 +01:00
2022-08-26 02:11:56 +02:00
2022-09-02 18:33:35 +02:00
2022-12-08 02:43:17 +01:00
2022-04-07 12:01:23 -07:00
2022-12-08 02:43:17 +01:00
2022-11-27 02:11:07 +01:00

libxml2

libxml2 is an XML toolkit implemented in C, originally developed for the GNOME Project.

Official releases can be downloaded from https://download.gnome.org/sources/libxml2/

The git repository is hosted on GNOME's GitLab server: https://gitlab.gnome.org/GNOME/libxml2

Bugs should be reported at https://gitlab.gnome.org/GNOME/libxml2/-/issues

Documentation is available at https://gitlab.gnome.org/GNOME/libxml2/-/wikis

License

This code is released under the MIT License, see the Copyright file.

Build instructions

libxml2 can be built with GNU Autotools, CMake, or several other build systems in platform-specific subdirectories.

Autotools (for POSIX systems like Linux, BSD, macOS)

If you build from a Git tree, you have to install Autotools and start by generating the configuration files with:

./autogen.sh

If you build from a source tarball, extract the archive with:

tar xf libxml2-xxx.tar.gz
cd libxml2-xxx

To see a list of build options:

./configure --help

Also see the INSTALL file for additional instructions. Then you can configure and build the library:

./configure [possible options]
make

Note that by default, no optimization options are used. You have to enable them manually, for example with:

CFLAGS='-O2 -fno-semantic-interposition' ./configure

Now you can run the test suite with:

make check

Please report test failures to the mailing list or bug tracker.

Then you can install the library:

make install

At that point you may have to rerun ldconfig or a similar utility to update your list of installed shared libs.

CMake (mainly for Windows)

Another option for compiling libxml is using CMake:

cmake -E tar xf libxml2-xxx.tar.gz
cmake -S libxml2-xxx -B libxml2-xxx-build [possible options]
cmake --build libxml2-xxx-build
cmake --install libxml2-xxx-build

Common CMake options include:

-D BUILD_SHARED_LIBS=OFF            # build static libraries
-D CMAKE_BUILD_TYPE=Release         # specify build type
-D CMAKE_INSTALL_PREFIX=/usr/local  # specify the install path
-D LIBXML2_WITH_ICONV=OFF           # disable iconv
-D LIBXML2_WITH_LZMA=OFF            # disable liblzma
-D LIBXML2_WITH_PYTHON=OFF          # disable Python
-D LIBXML2_WITH_ZLIB=OFF            # disable libz

You can also open the libxml source directory with its CMakeLists.txt directly in various IDEs such as CLion, QtCreator, or Visual Studio.

Dependencies

Libxml does not require any other libraries. A platform with somewhat recent POSIX support should be sufficient (please report any violation to this rule you may find).

However, if found at configuration time, libxml will detect and use the following libraries:

  • libz, a highly portable and widely available compression library.
  • liblzma, another compression library.
  • libiconv, a character encoding conversion library. The iconv function is part of POSIX.1-2001, so libiconv isn't required on modern UNIX-like systems like Linux, BSD or macOS.
  • ICU, a Unicode library. Mainly useful as an alternative to iconv on Windows. Unnecessary on most other systems.

Contributing

The current version of the code can be found in GNOME's GitLab at at https://gitlab.gnome.org/GNOME/libxml2. The best way to get involved is by creating issues and merge requests on GitLab. Alternatively, you can start discussions and send patches to the mailing list. If you want to work with patches, please format them with git-format-patch and use plain text attachments.

All code must conform to C89 and pass the GitLab CI tests. Add regression tests if possible.

Authors

  • Daniel Veillard
  • Bjorn Reese
  • William Brack
  • Igor Zlatkovic for the Windows port
  • Aleksey Sanin
  • Nick Wellnhofer
Description
Анализатор XML и инструментарий
Readme 52 MiB
Languages
C 85.3%
HTML 7%
Python 4%
POV-Ray SDL 1.2%
CMake 0.6%
Other 1.8%