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

libgio-2.0.so.0 undefined symbol (AppImage) #8

Closed
ReenigneArcher opened this issue Jan 12, 2022 · 17 comments
Closed

libgio-2.0.so.0 undefined symbol (AppImage) #8

ReenigneArcher opened this issue Jan 12, 2022 · 17 comments
Labels
help wanted Extra attention is needed

Comments

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Jan 12, 2022

There have been reports in the moonlight discord that the AppImage does not run on all linux distros.
See here: loki-47-6F-64/sunshine#267 (comment)

Most likely the AppImage is missing runtime dependencies.

This may be useful: https://bbs.archlinux.org/viewtopic.php?pid=1994258#p1994258

@ReenigneArcher
Copy link
Member Author

ReenigneArcher commented Mar 15, 2022

According to this comment, linuxdeploy excludes any libraries in the excludelist from pkg2appimage: linuxdeploy/linuxdeploy#107 (comment)

This commit may fix the issue, as libgio-2.0.so.0 is no longer excluded: AppImageCommunity/pkg2appimage@1e3ecde

@ReenigneArcher ReenigneArcher changed the title Include run time dependencies with AppImage libgio-2.0.so.0 undefined symbol (AppImage) Mar 15, 2022
@ReenigneArcher ReenigneArcher changed the title libgio-2.0.so.0 undefined symbol (AppImage) libgio-2.0.so.0 undefined symbol (AppImage) Mar 15, 2022
@ReenigneArcher
Copy link
Member Author

@thatsysadmin Could you test this build of the AppImage to see if it's still complaining about missing libgio-2.0.so.0?

https://github.com/SunshineStream/Sunshine/suites/5676028598/artifacts/186354212

@thatsysadmin
Copy link
Contributor

@ReenigneArcher

It complains of libgobject-2.0.so.0. Had an exit code of 127.

sudo ./sunshine.AppImage

[sudo] password for h: 
Setting $HOME to /home/h/Downloads/sunshine-AppImage/sunshine-appimage/sunshine/sunshine.AppImage.home
Setting $XDG_CONFIG_HOME to /home/h/Downloads/sunshine-AppImage/sunshine-appimage/sunshine/sunshine.AppImage.config
./sunshine.AppImage: symbol lookup error: /lib64/libgobject-2.0.so.0: undefined symbol: g_uri_ref

@ReenigneArcher
Copy link
Member Author

@ReenigneArcher

It complains of libgobject-2.0.so.0. Had an exit code of 127.

sudo ./sunshine.AppImage

[sudo] password for h: 
Setting $HOME to /home/h/Downloads/sunshine-AppImage/sunshine-appimage/sunshine/sunshine.AppImage.home
Setting $XDG_CONFIG_HOME to /home/h/Downloads/sunshine-AppImage/sunshine-appimage/sunshine/sunshine.AppImage.config
./sunshine.AppImage: symbol lookup error: /lib64/libgobject-2.0.so.0: undefined symbol: g_uri_ref

Okay thanks... Slightly different than before.
loki-47-6F-64/sunshine#267 (comment)

@ReenigneArcher
Copy link
Member Author

@thatsysadmin sorry for being a pain... any chance you could test this one? Apparently linuxdeploy binaries were rebuilt recently which resolves this issue (same issue I believe): linuxdeploy/linuxdeploy#197

https://github.com/SunshineStream/Sunshine/suites/5689951680/artifacts/187155592

@thatsysadmin
Copy link
Contributor

thatsysadmin commented Mar 17, 2022

@ReenigneArcher

Nope. Same error.

sudo ./sunshine.AppImage

[sudo] password for h: 
Setting $HOME to /tmp/MicrosoftEdgeDownloads/7c5f79ff-31b3-49b5-ad6b-79cf3548f32f/sunshine-appimage (1)/sunshine/sunshine.AppImage.home
Setting $XDG_CONFIG_HOME to /tmp/MicrosoftEdgeDownloads/7c5f79ff-31b3-49b5-ad6b-79cf3548f32f/sunshine-appimage (1)/sunshine/sunshine.AppImage.config
./sunshine.AppImage: symbol lookup error: /lib64/libgobject-2.0.so.0: undefined symbol: g_uri_ref

BTW, The file the CI spat out that you gave me is compressed twice.

@ReenigneArcher
Copy link
Member Author

@thatsysadmin okay thanks. I will open an issue against linuxdeploy tomorrow to see if they can assist.

I'm aware of the double archive, and I know it's annoying. The reason for that is if the individual files are uploaded to artifacts directly, they lose any execution permissions.

@ReenigneArcher
Copy link
Member Author

There is a new commit to pkg2appimage that I believe will resolve this issue.

AppImageCommunity/pkg2appimage@5c8ea76

@ReenigneArcher
Copy link
Member Author

@thatsysadmin
Copy link
Contributor

thatsysadmin commented Mar 28, 2022

@ReenigneArcher
Nope. Same issue as before.

image

@thatsysadmin
Copy link
Contributor

thatsysadmin commented Mar 28, 2022

Thought I'd try my laptop which isn't as used heavily (the install is "cleaner" so to speak), to rule out my desktop OS install; same error.

image

@ReenigneArcher
Copy link
Member Author

@ReenigneArcher
Copy link
Member Author

According to this workflow run, a new release has been published for linuxdeploy. Note that the release date doesn't get updated on the releases page.

https://github.com/linuxdeploy/linuxdeploy/runs/5780897623?check_suite_focus=true#step:4:23

I will try to build again to see if it's resolved now.

@ReenigneArcher
Copy link
Member Author

Based on these warnings, I am not sure if the issue is fixed or not. https://github.com/SunshineStream/Sunshine/runs/5839581100?check_suite_focus=true#step:7:740

If you could try again that would be great. https://github.com/SunshineStream/Sunshine/actions/runs/2098245926

@thatsysadmin
Copy link
Contributor

image

Different error this time. symbol lookup error: /lib64/libpango-1.0.so.0: undefined symbol: g_memdup2

@ReenigneArcher
Copy link
Member Author

I guess that's progress, haha.

At this point, I'm guessing the missing libraries need to be manually added to the AppImage. If anyone would like to take on this issue, that would be appreciated. AppImage build is completely done inside the CI.yml workflow file.

@cazzoo
Copy link
Contributor

cazzoo commented May 7, 2022

Just tried to add libpango-1.0 to the appImage but the issue is the same.
Workflow reported that libpango is already installed.

libpango-1.0-0 is already the newest version (1.44.7-2ubuntu4).
libpango-1.0-0 set to manually installed.

After starting the AppImage, the error is the same

cazzoo added a commit to cazzoo/Sunshine that referenced this issue May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants