question about xfreerdp and vncviewer in freebsd14.3 ?

dear all:
i have run "pkg upgrade " in freebsd14.3 . now the xfreerdp and vncviewer can't work normal . error was below .
$xfreerdp
ld-elf.so.1: /usr/local/lib/libswscale.so.7: version LIBSWSCALE_7 required by /usr/local/lib/libfreerdp2.so.2 not defined

$ vncviewer
ld-elf.so.1: /usr/local/lib/libavcodec.so.60: version LIBAVCODEC_60 required by /usr/local/bin/vncviewer not defined

$pkg info ffmpeg
ffmpeg-6.1.2_16,1
Name : ffmpeg
Version : 6.1.2_16,1
Installed on : Wed Oct 8 09:25:51 2025 CST
Origin : multimedia/ffmpeg
Architecture : FreeBSD:14:amd64
Prefix : /usr/local
Categories : audio multimedia net
Licenses : GPLv3+, LGPL3+
Maintainer : multimedia@FreeBSD.org
WWW : https://ffmpeg.org/
Comment : Realtime audio/video encoder/converter and streaming
Shared Libs provided:
libavcodec.so.60
libavdevice.so.60
libavfilter.so.9
libavformat.so.60
libavutil.so.58
libpostproc.so.57
libswresample.so.4
libswscale.so.7

we lost libavcodec.so.60 and libswscale.so.7 , right ?
if yes, how to install those dll in freebsd14.3 ? thanks.
 
we lost libavcodec.so.60 and libswscale.so.7 , right ?
Nope.

Verify that they are in ldconfig(8) path and try again.
Code:
# service ldconfig start
...
# ldconfig -r | grep -E 'lib(avcodec|swscale)'
    729:-lswscale.7 => /usr/local/lib/libswscale.so.7
    822:-lavcodec.60 => /usr/local/lib/libavcodec.so.60

If they are and it doesn't solve, try pkg install -Rf xfreerdp tigervnc-viewer
 
This doesn't look like a dynamic linker search path issue. The shared libraries are missing the embedded version definition.

The version of multimedia/ffmpeg I have installed on my system is the same as fff2024g has, but from a previous "latest" repo build batch (around Oct 13, minus a few days, 2025), which contains the embedded version definition:
Rich (BB code):
% pkg info -E ffmpeg
ffmpeg-6.1.2_16,1

% strings /usr/local/lib/libavcodec.so.60 | grep LIBAVCODEC_60
LIBAVCODEC_60

% strings /usr/local/lib/libswscale.so.7 | grep LIBSWSCALE_7
LIBSWSCALE_7
The current version of those ffmpeg shared libraries from 2025-Oct-29 "latest" [1], and 2025-Oct-30, "quarterly" [2] don't have the version defined.


I have a similar problem with x11-toolkits/libadwaita, upgraded on Oct 13, 2025:
Code:
% gnome-calculator
ld-elf.so.1: /usr/local/lib/libadwaita-1.so.0: version LIBADWAITA_1_0 required by /usr/local/bin/gnome-calculator not defined
Indeed, the libadwaita shared library is missing the embedded version definition:
Rich (BB code):
% pkg info -E libadwaita
libadwaita-1.7.7

% strings /usr/local/lib/libadwaita-1.so.0 | grep LIBADWAITA_1_0

A previous version, extracted from it's package, contains the embedded version definition:
Rich (BB code):
% cat +COMPACT_MANIFEST
{"name":"libadwaita","origin":"x11-toolkits/libadwaita","version":"1.7.2", ...

% strings /tmp/libadwaita/usr/local/lib/libadwaita-1.so.0 | grep LIBADWAITA_1_0
LIBADWAITA_1_0
These issues have not been reported in problem reports or mailing lists recently either, at least I couldn't find any. I'm still trying to determine what might be the cause of the missing version definitions.

If someone has an idea, please step forward.


[1] https://pkg.freebsd.org/FreeBSD:14:amd64/latest/All/ffmpeg-6.1.2_16,1.pkg
[2] https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/All/ffmpeg-6.1.2_16,1.pkg
 
These issues have not been reported in problem reports or mailing lists recently either, at least I couldn't find any. I'm still trying to determine what might be the cause of the missing version definitions.
There is a multitude of PR-s on this topic.
Multiple ports were / are affected, many have a common theme related to environ and __progname.

I think that PR 285401 with 68 comments is the most prominent.
Another informative one (and a slightly different but related issue) is PR 281440
.
 
thanks for all :
i think my question was : ffmpeg upgrade cause.
if i want to return old ffmpeg version. how to do that ?
1. which command can list all ffmpeg old version ,and can be install with pkg command
thanks.
 
Back
Top