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

AUR wezterm-nightly-bin: Error loading shared library #2712

Closed
latipun7 opened this issue Nov 6, 2022 · 13 comments
Closed

AUR wezterm-nightly-bin: Error loading shared library #2712

latipun7 opened this issue Nov 6, 2022 · 13 comments
Labels
bug Something isn't working

Comments

@latipun7
Copy link

latipun7 commented Nov 6, 2022

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20221105-090535-a135f536

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

WezTerm can't start on Arch Linux. Recently Arch Linux updated openssl to version 3.0.7-2 which cause WezTerm from AUR failed to start with the following error:

wezterm: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
wezterm: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

/usr/lib now only contains libssl.so & libssl.so.3

To Reproduce

No response

Configuration

I think it's not relevant.

Expected Behavior

WezTerm launch.

Logs

No response

Anything else?

For now, as workaround, I extracted libssl.so.1.1 & libcrypto.so.1.1 from previous cache of openssl to /usr/lib and WezTerm can launch successfully.

@latipun7 latipun7 added the bug Something isn't working label Nov 6, 2022
@wez
Copy link
Owner

wez commented Nov 6, 2022

Please try https://aur.archlinux.org/packages/wezterm-git instead; the bin version uses binaries built on ubuntu and those don't seem to be compatible with arch any longer

@wez wez added the waiting-on-op Waiting for more information from the original poster label Nov 6, 2022
@latipun7
Copy link
Author

latipun7 commented Nov 6, 2022

Personally I didn't want to build wezterm-git yet since my PC is low end, but I suppose wezterm-git would works because it build againts our own machine.

I understand, you are free to close this since the workaround is simple enough only copy those libraries from the previous version of that library, and eventually the binaries from ubuntu would catch up. 😢

Thank you.

@github-actions github-actions bot removed the waiting-on-op Waiting for more information from the original poster label Nov 6, 2022
@wez wez changed the title Error loading shared library AUR wezterm-nightly-bin: Error loading shared library Nov 14, 2022
wez added a commit that referenced this issue Nov 14, 2022
I plan to retire that as it has ABI compatibility issues on arch

refs: #2712
@wez
Copy link
Owner

wez commented Nov 14, 2022

I have submitted a request to delete wezterm-nightly-bin as I don't think there is a way to "fix" it.

Here's the text I submitted in my request:

wez [1] filed a deletion request for wezterm-nightly-bin [2]:

This PKGBUILD works by unpacking an AppImage (that was built on ubuntu
18) and sticking the binaries on the filesystem.

The recent openssl upgrade in arch has rendered this completely broken
due to DSO version differences between Ubuntu and Arch.

I don't think there is a way to "fix" this, so let's remove this
package.

Alternatives for the user who wants pre-built binaries are:

* Use flatpak
* Use the full AppImage

Otherwise, building from source:

* Use the wezterm-git AUR
* Manually build from source

@latipun7
Copy link
Author

latipun7 commented Nov 15, 2022

TBH, you don't need to delete it. Just update the PKGBUILD if something is not right. For example, for my use case, I edit the PKGBUILD like this and it is working again:

 package() {
   install -Dm755 squashfs-root/usr/bin/wezterm -t "${pkgdir}/usr/bin/"
   install -Dm755 squashfs-root/usr/bin/wezterm-gui -t "${pkgdir}/usr/bin/"
   install -Dm755 squashfs-root/usr/bin/wezterm-mux-server -t "${pkgdir}/usr/bin/"
+  install -Dm755 squashfs-root/usr/lib/libcrypto.so.1.1 -t "${pkgdir}/usr/lib/"
+  install -Dm755 squashfs-root/usr/lib/libssl.so.1.1 -t "${pkgdir}/usr/lib/"
   install -Dm644 squashfs-root/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png \
     "${pkgdir}/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png"
   install -Dm644 squashfs-root/usr/share/applications/org.wezfurlong.wezterm.desktop \
     "${pkgdir}/usr/share/applications/org.wezfurlong.wezterm.desktop"
 }

I really need this because I tried full appimage and I have issue with symlink and multiple launch (mount) the appimage, one of them would freeze.

@wez
Copy link
Owner

wez commented Nov 15, 2022

Installing the openssl from an older version of ubuntu into the system /usr/lib location on arch feels unwise.

@sdrik
Copy link
Contributor

sdrik commented Nov 19, 2022

I think wezterm-nightly-bin should simply depends on openssl-1.1 which provides libssl.so.1.1 and libcrypto.so.1.1 for compatibility reason.

@vimpostor
Copy link
Contributor

Alternatives for the user who wants pre-built binaries are:

  • Use flatpak
  • Use the full AppImage

You forgot the most sane alternative, which is simply install the official Arch Linux wezterm package, which got automatically rebuilt once openssl 3 dropped.

@wez
Copy link
Owner

wez commented Nov 22, 2022

Can you tell the official package to build from main/git?

@latipun7
Copy link
Author

latipun7 commented Nov 22, 2022

ofc they are not. wezterm and other packages in official repo always pin to the latest version, not build from development repo. So yeah, wezterm official Arch repo is not alternative for nightly build.

https://github.com/archlinux/svntogit-community/blob/packages/wezterm/trunk/PKGBUILD#L4-L5

For me, the alternative is download the current PKGBUILD from wezterm-nightly-bin AUR, then edit and install myself, only in my machine.

@vimpostor
Copy link
Contributor

vimpostor commented Nov 22, 2022 via email

@vimpostor
Copy link
Contributor

vimpostor commented Nov 22, 2022 via email

@wez
Copy link
Owner

wez commented Nov 22, 2022

Honestly, I don't use arch and I view this wezterm-nightly-bin AUR as a support burden that I don't want to bear: it's trying to run stuff from ubuntu on arch and is destined to have a higher incidence of people reporting problems with it.
My preference is to delete it to avoid sinking my time into it, which is why I've already requested its removal.

If you need to run a nightly, you'll need to build it from git using the wezterm-git AUR, or by building it from source for yourself, or by using the full AppImage in its entirety.

Those are the options that I'm willing to support.

@wez wez closed this as completed Nov 22, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants