ximion / appstream

Tools and libraries to work with AppStream metadata
http://www.freedesktop.org/wiki/Distributions/AppStream/
GNU Lesser General Public License v2.1
210 stars 115 forks source link

Appstreamcli validate error on Fedora #627

Closed minosimo closed 5 months ago

minosimo commented 5 months ago

Hello, when I attempt to run appstreamcli validate /path/to/com.app.metainfo.xml, I get the error:

appstreamcli: symbol lookup error: appstreamcli: undefined symbol: as_validator_set_check_urls

This is on Fedora 40, which has ApPStream CLI 1.0.0 ApPStream library version 1.0.2

I am guessing this is likely an issue with the fedora package? I tried to build from source to compare but got stuck with gobject-introspection-1.0 not recognized as installed.

razzeee commented 5 months ago

You probably need to also include your metainfo file

minosimo commented 5 months ago

Sure, here it is. It validates ok with AppStream CLI 0.16.2 from Ubuntu 23.10 ee.ria.qdigidoc4.metainfo.zip

ximion commented 5 months ago

This is on Fedora 40, which has ApPStream CLI 1.0.0 ApPStream library version 1.0.2

This is wrong, the library version and the CLI version must match in this case. The lookup error indicates that you are likely loading an even older version of libappstream from somewhere than 1.0 is... Please double-check your environment that you have no older version around somewhere (and also check the usual suspects like LD_LIBRARY_PATH & Co.), and if there is none, please report this to Fedora!

minosimo commented 5 months ago

Apologies! I did have an older version floating in /usr/local/bin.