[Home]

Summary:ASTERISK-29970: Use pkg-config to find libxml2 headers and libraries
Reporter:Hugh McMaster (hmc)Labels:
Date Opened:2022-03-15 04:54:06Date Closed:2022-03-25 14:25:38
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:GIT 18.0.0 19.0.0 Frequency of
Occurrence
Related
Issues:
is related toASTERISK-30059 menuselect: libxml include fails under Gentoo
Environment:Attachments:
Description:Debian will stop packaging xml2-config in the Bookworm development cycle. Once this occurs, Ubuntu and other derivatives will follow, as they track Debian packages.

Asterisk currently fails to build from source without xml2-config, so we need to detect libxml2 via pkg-config, falling back to xml2-config for systems without pkg-config.
Comments:By: Asterisk Team (asteriskteam) 2022-03-15 04:54:06.789-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Friendly Automation (friendly-automation) 2022-03-25 14:25:39.578-0500

Change 18243 merged by Friendly Automation:
configure.ac: Use pkg-config to detect libxml2

[https://gerrit.asterisk.org/c/asterisk/+/18243|https://gerrit.asterisk.org/c/asterisk/+/18243]

By: Friendly Automation (friendly-automation) 2022-03-25 14:26:53.015-0500

Change 18242 merged by Friendly Automation:
configure.ac: Use pkg-config to detect libxml2

[https://gerrit.asterisk.org/c/asterisk/+/18242|https://gerrit.asterisk.org/c/asterisk/+/18242]

By: Friendly Automation (friendly-automation) 2022-03-25 15:10:47.909-0500

Change 18254 merged by Kevin Harwell:
configure.ac: Use pkg-config to detect libxml2

[https://gerrit.asterisk.org/c/asterisk/+/18254|https://gerrit.asterisk.org/c/asterisk/+/18254]

By: Friendly Automation (friendly-automation) 2022-03-25 15:11:17.671-0500

Change 18241 merged by Kevin Harwell:
configure.ac: Use pkg-config to detect libxml2

[https://gerrit.asterisk.org/c/asterisk/+/18241|https://gerrit.asterisk.org/c/asterisk/+/18241]

By: Sebastian Kemper (skemper) 2022-08-19 13:38:41.098-0500

Hi all,

This will not work when libxml2 is static, because Asterisk doesn't call pkg-config with the "--static" argument, so it'll miss out on some flags (the flags are provided when using xml2-config). Any thoughts on this?

Kind regards,
Seb