Skip to content
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

Build failing #111

Closed
aleixpol opened this issue Apr 30, 2017 · 4 comments
Closed

Build failing #111

aleixpol opened this issue Apr 30, 2017 · 4 comments

Comments

@aleixpol
Copy link
Collaborator

Failing here, didn't have time to investigate, hopefully someone familiar with gir can figure it out.

FAILED: src/AppStream-1.0.gir 
cd /home/apol/build-devel/frameworks/appstream/src && /usr/bin/g-ir-scanner --identifier-prefix=As --symbol-prefix=as --warn-all --add-include-path=/home/apol/devel/frameworks/appstream/src --namespace=AppStream --nsversion=1.0 --no-libtool --library=appstream --include=GObject-2.0 --include=Gio-2.0 --pkg-export=appstream --c-include appstream.h --cflags-begin -I/home/apol/devel/frameworks/appstream/src/ -DAS_COMPILATION --cflags-end /home/apol/devel/frameworks/appstream/src/as-utils.c /home/apol/devel/frameworks/appstream/src/as-xmldata.c /home/apol/devel/frameworks/appstream/src/as-yamldata.c /home/apol/devel/frameworks/appstream/src/as-desktop-entry.c /home/apol/devel/frameworks/appstream/src/as-cache-file.c /home/apol/devel/frameworks/appstream/src/as-distro-extras.c /home/apol/devel/frameworks/appstream/src/as-stemmer.c /home/apol/devel/frameworks/appstream/src/as-spdx.c /home/apol/devel/frameworks/appstream/src/as-metadata.c /home/apol/devel/frameworks/appstream/src/as-component.c /home/apol/devel/frameworks/appstream/src/as-enums.c /home/apol/devel/frameworks/appstream/src/as-provided.c /home/apol/devel/frameworks/appstream/src/as-bundle.c /home/apol/devel/frameworks/appstream/src/as-pool.c /home/apol/devel/frameworks/appstream/src/as-category.c /home/apol/devel/frameworks/appstream/src/as-distro-details.c /home/apol/devel/frameworks/appstream/src/as-screenshot.c /home/apol/devel/frameworks/appstream/src/as-image.c /home/apol/devel/frameworks/appstream/src/as-release.c /home/apol/devel/frameworks/appstream/src/as-checksum.c /home/apol/devel/frameworks/appstream/src/as-validator.c /home/apol/devel/frameworks/appstream/src/as-validator-issue.c /home/apol/devel/frameworks/appstream/src/as-icon.c /home/apol/devel/frameworks/appstream/src/as-translation.c /home/apol/devel/frameworks/appstream/src/as-suggested.c /home/apol/devel/frameworks/appstream/src/as-content-rating.c /home/apol/devel/frameworks/appstream/src/as-launchable.c /home/apol/devel/frameworks/appstream/src/appstream.h /home/apol/devel/frameworks/appstream/src/as-utils.h /home/apol/devel/frameworks/appstream/src/as-spdx.h /home/apol/devel/frameworks/appstream/src/as-metadata.h /home/apol/devel/frameworks/appstream/src/as-component.h /home/apol/devel/frameworks/appstream/src/as-pool.h /home/apol/devel/frameworks/appstream/src/as-enums.h /home/apol/devel/frameworks/appstream/src/as-provided.h /home/apol/devel/frameworks/appstream/src/as-bundle.h /home/apol/devel/frameworks/appstream/src/as-category.h /home/apol/devel/frameworks/appstream/src/as-distro-details.h /home/apol/devel/frameworks/appstream/src/as-screenshot.h /home/apol/devel/frameworks/appstream/src/as-image.h /home/apol/devel/frameworks/appstream/src/as-release.h /home/apol/devel/frameworks/appstream/src/as-checksum.h /home/apol/devel/frameworks/appstream/src/as-validator.h /home/apol/devel/frameworks/appstream/src/as-validator-issue.h /home/apol/devel/frameworks/appstream/src/as-icon.h /home/apol/devel/frameworks/appstream/src/as-translation.h /home/apol/devel/frameworks/appstream/src/as-suggested.h /home/apol/devel/frameworks/appstream/src/as-content-rating.h /home/apol/devel/frameworks/appstream/src/as-launchable.h --output /home/apol/build-devel/frameworks/appstream/src/AppStream-1.0.gir
/home/apol/build-devel/frameworks/appstream/src/tmp-introspectzfwe5gcr/AppStream-1.0: symbol lookup error: /home/apol/build-devel/frameworks/appstream/src/tmp-introspectzfwe5gcr/AppStream-1.0: undefined symbol: as_content_rating_get_type
Command '['/home/apol/build-devel/frameworks/appstream/src/tmp-introspectzfwe5gcr/AppStream-1.0', '--introspect-dump=/home/apol/build-devel/frameworks/appstream/src/tmp-introspectzfwe5gcr/functions.txt,/home/apol/build-devel/frameworks/appstream/src/tmp-introspectzfwe5gcr/dump.xml']' returned non-zero exit status 127.
@ximion
Copy link
Owner

ximion commented Apr 30, 2017

Hmm, is your build environment clean? (remove the build folder and try again)
Could also be that for whatever reason the build process tries to link with an old libappstream (should never happen...)

@aleixpol aleixpol closed this as completed May 2, 2017
@aleixpol aleixpol reopened this May 2, 2017
@aleixpol
Copy link
Collaborator Author

aleixpol commented May 2, 2017

Yes, I removed the find . -name "*appstream*" | xargs rm on the prefix and now it builds. It seems like the install prefix libraries take preference when running gir?

@ximion
Copy link
Owner

ximion commented May 2, 2017

So far that never happened to me... LD_PRELOAD stuff takes preference, the system wide stuff however so far never did...
Odd thing...

I might be switching the project to use the Meson build system at some point, which will change things again and likely make the build process simpler than it is today (likely unrelated to this bug though).

@ximion ximion closed this as completed May 7, 2017
@purinchu
Copy link

While I realize this has already been closed, I had the same issue. But I think it should be reported against gobject-introspection, as even manually running that program with what appears to be the appropriate command line gives build errors if an old libappstream.so is present in the install prefix (at least, I think that's where my old library was). Maybe the --no-libtool flag that appstream uses has something to do with it, I didn't test with the use of --libtool or playing around with --library-path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants