The officially official Devuan Forum!

You are not logged in.

#1 2024-04-05 16:37:15

tlathm
Member
Registered: 2017-11-25
Posts: 103  

[SOLVED] libhcrypto.so.4 in Devuan Daedalus?

I'm trying to use an executable under Daedalus that needs the missing library libhcrypto.so.4.

Does anyone know if any package provides that? I'm seeing things about a "libhcrypto4" package in Bookworm but that doesn't appear to be available. Currently I have the daedalus, daedalus-security, and daedalus-updates repos enabled.

Thanks in advance!

Tom

Offline

#2 2024-04-05 17:12:31

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

On a related topic, I've installed binutils to get the ld command, but ls doesn't work on anything I try. It always fails with an error like this:

ld: cannot use executable file '<filename>' as input to a link

I've read some things about that though I can't make any sense out of it. I've seen suggestions to use "-r" but that doesn't help.

Any clue on that would be appreciated as well.

Thanks!
Tom

Offline

#3 2024-04-05 17:50:33

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

Use apt-file to find out which package libhcrypto4 is in, and install it.

ld doesn't do what you think it does; it's for linking object files into an executable as part of the process of compiling source code into executable form. You can't use it to specify libraries at runtime; that's part of the OS dynamic library system and it won't help you if you don't actually have the required library installed.

Offline

#4 2024-04-05 17:53:23

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

P.S. apt-file didn't find anything on my system. That probably means the required package isn't in Daedalus. However, it does show up in google in various rpm repos. Maybe what you want is to install `alien` and use it to install the needed rpm?  I'm not 100% sure this is the best approach, though, because this could mess with your system in a way that's hard to undo should you change your mind afterwards.

Offline

#5 2024-04-05 17:54:41

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

If it were up to me, I'd just compile the sources for libhcrypto4 myself (or download the binary from somewhere) and use LD_LIBRARY_PATH to get it to load at runtime.

Offline

#6 2024-04-05 18:01:24

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

@quickfur . . . Three posts in less than 5 minutes. Really? WHY when you could have edited your first post?

/me scratches head . . .

Offline

#7 2024-04-05 18:02:50

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

Sorry was too lazy to do it. Will do that next time.  My bad!

Offline

#8 2024-04-05 18:10:37

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

Thanks for the reply! I'll have to figure out how to best handle this one.

What I was hoping to use ld for was to see if there are any other missing libraries in the executable. That's something I'd always done in the past. Is that no longer possible?

Thanks!
Tom

Offline

#9 2024-04-05 18:14:25

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

This libhcrypto.so.4 has something to do with Heimdahl stuff. Maybe that's a hint ...

Offline

#10 2024-04-05 18:14:43

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

This is odd. So I was able to find that package for Debian Bookworm here:

https://packages.debian.org/bookworm/libmcrypt4

I installed the deb file libmcrypt4_2.5.8-7_amd64.deb. It's clearly installed:

dpkg-query -L libmcrypt4
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libmcrypt.so.4.4.8
/usr/share
/usr/share/doc
/usr/share/doc/libmcrypt4
/usr/share/doc/libmcrypt4/changelog.Debian.gz
/usr/share/doc/libmcrypt4/changelog.gz
/usr/share/doc/libmcrypt4/copyright
/usr/lib/x86_64-linux-gnu/libmcrypt.so.4

Yet my executable still says it's missing:

error while loading shared libraries: libhcrypto.so.4: cannot open shared object file: No such file or directory

What do you suppose that's all about?

Thanks!
Tom

Offline

#11 2024-04-05 18:16:48

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

libmcrypt is not libhcrypto!

Offline

#12 2024-04-05 18:21:08

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

OMG you're totally correct. That came up in a google search for "libhcrypto4 bookworm" and I didn't notice that difference. Thanks. Just uninstalled that.

Tom

Offline

#13 2024-04-05 18:25:20

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

This libhcrypto.so.4 has something to do with Heimdahl stuff. Maybe that's a hint ...

Yea I noticed that. There were some heimdal related packages also required by the same executable. So far I haven't been able to figure out if any others might provide that library.

Tom

Offline

#14 2024-04-05 18:42:30

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

OK. It turned out that that there was a newer version of that installed (libhcrypto.so.5.0.0). Creating a link to that named libhcrypto.so.4, plus a few other similar ones got the executable running. Seems like a somewhat ugly hack, but did in fact seem to work.

Thanks!
Tom

Offline

#15 2024-04-05 19:14:11

quickfur
Member
Registered: 2023-12-14
Posts: 431  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

That sounds dangerous. If the executable is linked against version 4 of the .so, substituting version 5 may introduce subtle errors or crashes due to ABI incompatibilities. If at all possible I'd recommend getting a new version of the executable that's linked against version 5 of the library, or compile it yourself against the right -dev package.

Offline

#16 2024-04-06 01:42:37

tlathm
Member
Registered: 2017-11-25
Posts: 103  

Re: [SOLVED] libhcrypto.so.4 in Devuan Daedalus?

Yea...agreed. I'll likely try to compile it from source using the newer libraries.

EDIT: One important thing to note about this post: No clue what I was thinking, but when I was referring the "ld" command I totally intended to be using "ldd". No wonder I got so confused on that.

Thanks!
Tom

Last edited by tlathm (2024-04-11 16:03:57)

Offline

Board footer