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

linux shared library error #6

Open
christian-heusel opened this issue Mar 29, 2023 · 5 comments
Open

linux shared library error #6

christian-heusel opened this issue Mar 29, 2023 · 5 comments

Comments

@christian-heusel
Copy link
Contributor

christian-heusel commented Mar 29, 2023

$ ./flemozi
flemozi: error while loading shared libraries: libsuper_native_extensions.so: cannot open shared object file: No such file or directory

Steps to reproduce

  1. Download the binary & unpack it into a folder
    $ wget https://github.com/KRTirtho/flemozi/releases/download/v0.1.0/flemozi-linux-0.1.0-x86_64.tar.xz
    $ mkdir test
    $ cd test
    $ tar -xvf ../flemozi-linux-0.1.0-x86_64.tar.xz 
    
  2. execute the binary
    $./flemozi                                                                                                                                                                                                                                                   
    ./flemozi: error while loading shared libraries: libsuper_native_extensions.so: cannot open shared object file: No such file or directory
    

Details

$ strace -e openat -f ./flemozi                                                                                                                                                                                                                               
openat(AT_FDCWD, "/home/chris/test/lib/glibc-hwcaps/x86-64-v3/libhotkey_manager_plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/chris/test/lib/glibc-hwcaps/x86-64-v2/libhotkey_manager_plugin.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/chris/test/lib/libhotkey_manager_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libirondash_engine_context_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libpasteboard_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libscreen_retriever_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libsuper_native_extensions_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libsystem_theme_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/liburl_launcher_linux_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libwindow_manager_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libwindow_size_plugin.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libflutter_linux_gtk.so", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/lib/libgtk-3.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libgdk-3.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libpangocairo-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libpangocairo-1.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libpango-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libpango-1.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libatk-1.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libatk-1.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libcairo-gobject.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libcairo-gobject.so.2", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libcairo.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libcairo.so.2", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/chris/test/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/linux/flutter/ephemeral/glibc-hwcaps/x86-64-v3/libkeybinder-3.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/linux/flutter/ephemeral/glibc-hwcaps/x86-64-v2/libkeybinder-3.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/linux/flutter/ephemeral/libkeybinder-3.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libkeybinder-3.0.so.0", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/build/linux/x64/release/plugins/super_native_extensions/glibc-hwcaps/x86-64-v3/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/build/linux/x64/release/plugins/super_native_extensions/glibc-hwcaps/x86-64-v2/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/runner/work/flemozi/flemozi/build/linux/x64/release/plugins/super_native_extensions/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v3/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v2/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libsuper_native_extensions.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
./flemozi: error while loading shared libraries: libsuper_native_extensions.so: cannot open shared object file: No such file or directory
+++ exited with 127 +++
@KRTirtho
Copy link
Owner

KRTirtho commented Mar 30, 2023

Try using LD_LIBRARY_PATH=lib ./flemozi
There was a mistake in packaging .tar caused by the RPM packager. It's using flutter_distributor to package, which is using patchelf to fix flutter's issue with absolute RPATHs but that's only a problem for RPM not for traditional tar files 😅

@KRTirtho
Copy link
Owner

KRTirtho commented Mar 30, 2023

The ./lib directory contains all the shared_libraries used by flemozi. LD_LIBRARY_PATH will force flemozi to look for libs there

@christian-heusel
Copy link
Contributor Author

Yeah that makes it work, but IMO this is not really a fix for the bug ^^

@Antik79
Copy link

Antik79 commented Apr 27, 2023

Bug still there in v0.1.1 released today. At least in the x86_64 debian version. Having to add the LD_LIBRARY_PATH is indeed not a real fix.

@yllekz
Copy link

yllekz commented Apr 30, 2023

Hello, I downloaded the .deb from the main page and installed it but am also getting this error. App does not launch on Linux Mint 21.1. Can you check again?

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

4 participants