Bug 233225 - libssl.so.8 not found by pkg
Summary: libssl.so.8 not found by pkg
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-STABLE
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 17:07 UTC by Alfredo Dal'Ava Junior
Modified: 2024-09-28 09:43 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alfredo Dal'Ava Junior freebsd_committer freebsd_triage 2018-11-14 17:07:13 UTC
I did a fresh FREEBSD 12 BETA 4 install and executed 'pkg'.
The binary was downloaded automatically, but it doesn't work as libssl.so.8 is not found.

I created a symlinks to libssl.so.8 -> libssl.so and libcrypto.so.8 -> libcrypto.so manually and found the following issue:

# pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
ld-elf.so.1: /usr/local/lib/libpkg.so.4: Undefined symbol "SSL_load_error_strings"
Comment 1 Nathan 2018-11-14 17:58:42 UTC
(In reply to alfredo.junior@eldorado.org.br from comment #0)
Install OpenSSL 1.1.0 or 1.1.1 and links the libs like you did
Comment 2 Nathan 2018-11-14 17:59:25 UTC
(In reply to Nathan from comment #1)
I forgot to mention. Install OpenSSL via ports
Comment 3 Alfredo Dal'Ava Junior freebsd_committer freebsd_triage 2018-11-19 13:19:41 UTC
(In reply to Nathan from comment #2)

Nathan,

I verified with /usr/ports/security/openssl111 and it doesn't work.

libssl.so.111 also doesn't contains 'SSL_load_error_strings' symbol
Comment 4 Alfredo Dal'Ava Junior freebsd_committer freebsd_triage 2018-11-19 13:29:03 UTC
(In reply to alfredo.junior@eldorado.org.br from comment #3)

worked with the one from /usr/ports/security/openssl, retrieved using portsnap tool (It uses openssl-1.0.2p_2,1).

And I created the following symlink:

ln -s /usr/local/lib/libssl.so.9 /usr/lib/libssl.so.8



# pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
Fetching packagesite.txz: 100%  130 KiB 132.8kB/s    00:01    
Processing entries: 100%
FreeBSD repository update completed. 541 packages processed.
All repositories are up to date.
#


Thanks !
Comment 5 Dennis Clarke 2019-02-09 08:57:48 UTC
This is still a problem in the RELEASE 12.0 version for ppc64.

hydra# uname -aU
FreeBSD hydra 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  powerpc 1200086
hydra# 

hydra# pkg query
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:powerpc64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.10.5_3...
Extracting pkg-1.10.5_3: 100%
ld-elf.so.1: Shared object "libssl.so.8" not found, required by "pkg"
hydra# 

The average user will simply see this is plain jane broken.


-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
Comment 6 Dennis Clarke 2019-02-09 18:38:17 UTC
Clearly a problem for arm also : see 234481
Comment 7 xq 2019-03-17 05:42:57 UTC
For what it's worth, I found the following workaround:

# pkg-static install -f pkg
Comment 8 ykla 2020-01-02 12:08:08 UTC
Same issue for FreeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz

# ldd /usr/local/sbin/pkg
/usr/local/sbin/pkg:
...
    libssl.so.8 => not found (0)
    libcrypto.so.8 => not found (0)
...
    libssl.so.8 => not found (0)
    libcrypto.so.8 => not found (0)
...

--------------------------------------
How to deal with it:
Just,
pkg-static install security/openssl
pkg-static install -f pkg

Please release a new img to repair it.
Comment 9 ykla 2020-02-17 05:55:12 UTC
This issue still on FreeBSD-12.1-STABLE-arm64-aarch64-RPI3-20200206-r357605.
-----------------
ld-elf.so.1: Shared object "libssl.so.8" not found, required by "pkg"
Comment 10 Fatih 2020-09-14 23:11:42 UTC
freebsd is running on raspberry pi 3+ and i try to run postfix but i always getting same error 
"ld-elf.so.1: Shared object "libcrypto.so.8" not found, required by "postfix""
 could you please provide me if if this problem can be solved in a shot time ?

thanks.
Comment 11 ykla 2020-09-15 06:23:08 UTC
NO,use 13.0
Comment 12 Alexander Mishin 2020-09-15 08:38:51 UTC
You can make soft links for both libs from which You have installed ones in base. If I remember it right:
ln -s /usr/lib/libssl.so.111 /usr/lib/libssl.so.8;
ln -s /lib/libcrypto.so.111 /lib/libcrypto.so.8;
In my case it worked fine. It makes the 'pkg update|upgrade' possible.

...and, yes, I use 13.0 now - no updates for packages too long.
Comment 13 Fatih 2020-09-15 09:47:52 UTC
Thank Alexander, it is working now.

ln -s /usr/lib/libssl.so.111 /usr/lib/libssl.so.8;
ln -s /lib/libcrypto.so.111 /lib/libcrypto.so.8;
Comment 14 kynes.liet 2020-11-18 21:59:56 UTC
'pkg bootstrap -f' worked for me
then 'pkg update|upgrade'