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 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 17:07 UTC by alfredo.junior@eldorado.org.br
Modified: 2019-03-17 05:42 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alfredo.junior@eldorado.org.br 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.junior@eldorado.org.br 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.junior@eldorado.org.br 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