Re: ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg" and others
Date: Sun, 02 Jul 2023 10:51:21 UTC
Hello Tomoaki, Yes, It was a mistake of mine doing it knowing that there were not pkgs available yet. But it was a nice error to test out BE :) I will take a look at your script and I will start building my own pkgs so they can be in sync with src. Thanks, Tomoaki AOKI <junchoon@dec.sakura.ne.jp> escreveu no dia domingo, 2/07/2023 à(s) 08:57: > On Sun, 02 Jul 2023 14:41:55 +0900 (JST) > Yasuhiro Kimura <yasu@FreeBSD.org> wrote: > > > From: Nuno Teixeira <eduardo@freebsd.org> > > Subject: ld-elf.so.1: Shared object "libssl.so.111" not found, required > by "pkg" and others > > Date: Sun, 2 Jul 2023 06:22:48 +0100 > > > > > Hello all, > > > > > > I'm returning to current and installed from > 20230622-b95d2237af40-263748-bootonly.iso and upgraded to cab2d43b83b > (amd64). > > > > > > Did a magnific delete-old and delete-old-libs and now a lot of > packages complain about "ld-elf.so.1: Shared object "libssl.so.111" not > found, > > > required by..." > > > > > > To fix it I rebooted with BE from first instalation since I used > beinstall.sh for upgrade. > > > > > > I know that a lot of things happened in the last days with > llvm15->llvm16, openssl3, etc. > > > > > > My question is when can I do a delete-old{-libs}? > > > I'm thinking building pkgs with a updated current on poudriere and > then clean up libs? > > > > > > Thanks, > > > > The source of the issue is the migration from OpenSSL 1.1.1 to 3.0. > > > > So if you use packages built by yourself (e,g. by using poudriere, > > portmaster, porupgrade, etc. or simply 'make install'), then you > > should rebuild and reinstall all packages and then should do > > `make delete-old-libs`. > > > > If you use official binary packages, then you should wait until all > > packages are built with OpenSSL 3.0. > > > > HTH. > > > > --- > > Yasuhiro Kimura > > FYI: > I basically never `make delete-old-libs` blindly. > > First, run `make check-old-libs` and record the result. > Then, create an ad-hoc script to check for affected ports installed and > generate updating script. > Then, look into the temporary list generated (or generated script) if > any port should be actually rebuilt. > Run the generated script if needed. > > Attached is the quick and ugly ad-hoc script I used this time. > Beware! This generates updating script requiring ports-mgmt/pkg_replace. > Edit it to use whatever you want. > > > If you're using poudriere[-devel], it should rebuild everything. > I don't use poudriere on main, as it should force me tooo many full > rebuilds than on stable/* branches. > > If letting poudriere to rebuild everything and configured local repo, > `pkg upgrade` would do the right thing, maybe. > > > -- > Tomoaki AOKI <junchoon@dec.sakura.ne.jp> > -- Nuno Teixeira FreeBSD Committer (ports)