Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 18:49:08 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>, Thomas Mueller <mueller6724@bellsouth.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Shared library version bump?
Message-ID:  <569ECB74.5010901@FreeBSD.org>
In-Reply-To: <C737C407-2AC7-4AFB-A2BF-DB7C60B785E8@FreeBSD.org>
References:  <206770.43295.bm@smtp113.sbc.mail.ne1.yahoo.com> <C737C407-2AC7-4AFB-A2BF-DB7C60B785E8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 01/19/16 06:05 PM, Dimitry Andric wrote:
> On 19 Jan 2016, at 23:32, Thomas Mueller
> <mueller6724@bellsouth.net> wrote:
>> 
>> Has there recently been a version bump in the shared libraries?
>> I saw no warning on this in the src or ports UPDATING files.
> 
> This was already answered in reply to your previous post on this
> same issue.  As mentioned in the reply, OpenSSL has been upgraded,
> and both of its shared libraries have been bumped, e.g. they are
> now named libcrypto.so.8 and libssl.so.8.
> 
> (Apparently you deleted the old libcrypto.so.7 and libssl.so.7,
> even though you should never do so until your ports are upgraded.)
> 
> 
>> I can no longer startx and can no longer run many other ports,
>> getting errors like
>> 
>> Shared object "libcrypto.so.7" not found, required by "X" xinit:
>> giving up xinit: unable to connect to X server: Connection
>> refused xinit: server error
>> 
>> and
>> 
>> root@amelia:~ # pkg info -f xserver Shared object "libssl.so.7"
>> not found, required by "pkg"
>> 
>> Is this due to a version bump,
> 
> Yes.
> 
> 
>> or is it related to the messages I got in yesterday's kernel
>> installation like "unknown metadata record 4 ..."?
> 
> No, that is something entirely different.  It is mainly cosmetic,
> and you can ignore it, it will go away at the next kernel update,
> if your kldxref executable is new enough.
> 
> 
>> What do I do?  Make buildworld and kernel again, or rebuild all
>> ports?  How do I find which ports need updating, or rebuild all
>> except portmaster and pkg which I rebuilt after getting the
>> errors?
> 
> It is easiest to use pkg-static to reinstall your ports, e.g.:
> 
> pkg-static update pkg-static upgrade
> 
> Alternatively, rebuild all ports depending on OpenSSL.

A crude way to find almost all the ports depending on old OpenSSL is:

find /usr/local -type f -exec file '{}' ';' | \
awk -F: '{ if ($2~/ELF/) print $1 }' | \
xargs egrep -l 'lib(crypto|ssl)\.so\.7' | \
xargs pkg-static which -oq | sort -u

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWnstwAAoJEHyflib82/FGXboH+wdNOXZ7i5z140BEbMlFeAH9
OCKq7fgwqyEzWjw73yiTcyTHir8nIuaFKkljMJFahEWR2/HMdFmBEoUheCWiscjx
cN+Ek2ICTD/ghgz1LGLVQtXw9EAGvAfqCSz+iGaSgSu1AHxwuirk3GMORRXoBWNv
eSrWfcP0bFDfb9p9zVNiMTnsMX4yKvuvDuXUxPsZSJyqb5vcctedIgwgV/L3Tq/X
vY/Nx+xvX/nJMRzePje9/9IziWlGZCK0ZI+aBnYcFb4y8OWg5gYvkr/XdBXSb+Ke
sgZrMAfdmyxDHv7AxDyVRgykHP00UIs3q5tvIDNxp47BEhu++niejX7+UsNHjNU=
=8Jb1
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?569ECB74.5010901>