ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Cannot launch ImHex-1.28.0 due to mbedtls lookup errors

Open xoores opened this issue 1 year ago • 5 comments

Operating System

Linux

What's the issue you encountered?

ImHex is using (probably deprecated) functions from mbedtls: imhex: symbol lookup error: imhex: undefined symbol: mbedtls_md4_ret

See: https://github.com/Mbed-TLS/mbedtls/issues/4280

How can the issue be reproduced?

Run imhex on a system with new mbedtls (net-libs/mbedtls-2.28.1)

ImHex Version

1.28.0

ImHex Build Type

  • [ ] Nightly or built from sources

Installation type

DEB

Additional context?

No response

xoores avatar Apr 21 '23 20:04 xoores

Hm interesting. Those functions are only used by libcurl where we use the latest release. What Linux distro are you using? The .deb file we provide exclusively supports Ubuntu 22.04, everything else will not work due to similar version issues.

WerWolv avatar Apr 21 '23 22:04 WerWolv

Gentoo - I grabbed the *.deb because I initially tried to create an ebuild for imhex but unfortunately it tries to pull something from GIT during build 🤷 That fails due to the Gentoo system creating no-network sandbox for building.

After that I opted out for creating a "bin" ebuild (for pre-built package). Should I rather use RPM for this?

edit: Or perhaps Full sources? I just now noticed that there is also this archive available 🙂

xoores avatar Apr 21 '23 22:04 xoores

The RPMs are for various versions of Fedora and Red Hat so they will probably not work for you either.

You can try making an ebuild again though but with the IMHEX_OFFLINE_BUILD cmake option set to ON. That will disable all network access during the build process. Alternatively the AppImage and Flatpak version of ImHex should generally run on all platforms.

WerWolv avatar Apr 21 '23 22:04 WerWolv

As long as Fedora/RH uses (relatively) recent packages, it may just work. But of course it's not the best solution.

Neat, I will try that and report back 🙂 I tried to extract some variables and look for configuring cmake but I failed miserably 😁

xoores avatar Apr 21 '23 22:04 xoores

Worked like a charm!

This can be closed, attached is an ebuild file for the most recent version (original from GURU overlay, tweaked so it can be compiled). Just remove the .txt - added because GitHub would not allow me to upload .ebuild directly 🙂 This ebuild should work as long as you keep naming schemes intact by simply renaming it to correct version.

imhex-1.28.0.ebuild.txt

Thanks for your quick reaction! Jan

xoores avatar Apr 22 '23 20:04 xoores

This issue is marked stale as it has been open for 11 months without activity. Please try the latest ImHex version. (Avaiable here: https://imhex.download/ for release and https://imhex.download/#nightly for development version) If the issue persists on the latest version, please make a comment on this issue again

Without response, this issue will be closed in one month.

github-actions[bot] avatar Aug 03 '24 16:08 github-actions[bot]