[package - main-amd64-default][multimedia/emby-server] Failed for emby-server-4.8.3.0_3 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Wed, 17 Apr 2024 07:55:36 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     driesm@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/pac25ee445c95_s605a00660ea/logs/emby-server-4.8.3.0_3.log
Build URL:      https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=pac25ee445c95_s605a00660ea
Log:

=>> Building multimedia/emby-server
build started at Wed Apr 17 07:47:13 UTC 2024
port directory: /usr/ports/multimedia/emby-server
package name: emby-server-4.8.3.0_3
building for: FreeBSD main-amd64-default-job-01 15.0-CURRENT FreeBSD 15.0-CURRENT 1500018 amd64
maintained by: driesm@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 4753 Apr 16 01:01 /usr/ports/multimedia/emby-server/Makefile
Ports top last git commit: ac25ee445c9
Ports top unclean checkout: no
Port dir last git commit: 76692294c4a
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-1-g1e9f97d6
Host OSVERSION: 1500006
Jail OSVERSION: 1500018
Job Id: 01




!!! Jail is newer than host. (Jail: 1500018, Host: 1500006) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500018
UNAME_v=FreeBSD 15.0-CURRENT 1500018
UNAME_r=15.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-1-g1e9f97d6
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/main-amd64-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-1-g1e9f97d6
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for emby-server-4.8.3.0_3:
     LAME=on: LAME MP3 audio encoder support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
driesm@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--cc="cc"  --disable-alsa  --disable-doc  --disable-ffplay  --disable-libxcb  --disable-outdev=xv  --disable-sdl2  --disable-shared  --disable-sndio  --disable-v4l2-m2m  --disable-vdpau  --disable-vulkan  --disable-xlib  --enable-chromaprint  --enable-fontconfig  --enable-gpl  --enable-iconv  --enable-libaribb24  --enable-libass  --enable-libdav1d  --enable-libdrm  --enable-libfreetype  --enable-libfribidi  --enable-libmfx  --enable-libopus  --enable-libtesseract  --enable-libtheora  --enable-libvorbis  --enable-libvpx  --enable-libwebp  --enable-libx264  --enable-libx265  --enable-libzvbi  --enable-mbedtls  --enable-opencl  --enable-optimizations  --enable-static  --enable-vaapi  --enable-version3 --enable-libmp3lame
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work/.cache  HOME=/wrkdirs/usr/ports/multimedia/emby-server/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/multimedia/emby-server/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/multimedia/emby-server/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
--End CONFIGURE_ENV--

--MAKE_ENV--
V=1 OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/multimedia/emby-server/work/.cache  HOME=/wrkdirs/usr/ports/multimedia/emby-server/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/multimedia/emby-server/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/multimedia/emby-server/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG -isystem /usr/local/include"  LDFLAGS="  -L/usr/local/lib " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -isyste
m /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
 OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/emby-server"  EXAMPLESDIR="share/examples/emby-server"  DATADIR="share/emby-server"  WWWDIR="www/emby-server"  ETCDIR="etc/emby-server"
--End PLIST_SUB--

--SUB_LIST--
GROUP=emby  PORTNAME=emby-server  RC_NAME=emby_server  USER=emby PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/emby-server DOCSDIR=/usr/local/share/doc/emby-server EXAMPLESDIR=/usr/local/share/examples/emby-server  WWWDIR=/usr/local/www/emby-server ETCDIR=/usr/local/etc/emby-server
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License UNKNOWN accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   emby-server-4.8.3.0_3 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.2.pkg
[main-amd64-default-job-01] Installing pkg-1.21.2...
[main-amd64-default-job-01] Extracting pkg-1.21.2: .......... done
===>   emby-server-4.8.3.0_3 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of emby-server-4.8.3.0_3
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License UNKNOWN accepted by the user
=> ffdetect-2023_06_25-x64_freebsd14.tar.xz doesn't seem to exist in /portdistfiles/emby-server.
=> Attempting to fetch https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.3.0/ffdetect-2023_06_25-x64_freebsd14.tar.xz
fetch: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.3.0/ffdetect-2023_06_25-x64_freebsd14.tar.xz: Not Found
=> Attempting to fetch https://mediabrowser.github.io/embytools/ffdetect-2023_06_25-x64_freebsd14.tar.xz
ffdetect-2023_06_25-x64_freebsd14.tar.xz                84 kB   14 MBps    00s
=> ffmpeg-2023_06_25-u1.tar.gz doesn't seem to exist in /portdistfiles/emby-server.
=> Attempting to fetch https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.3.0/ffmpeg-2023_06_25-u1.tar.gz
fetch: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.3.0/ffmpeg-2023_06_25-u1.tar.gz: Not Found
=> Attempting to fetch https://mediabrowser.github.io/embytools/ffmpeg-2023_06_25-u1.tar.gz
ffmpeg-2023_06_25-u1.tar.gz                             13 MB   90 MBps    00s
===> Fetching all distfiles required by emby-server-4.8.3.0_3 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License UNKNOWN accepted by the user
===> Fetching all distfiles required by emby-server-4.8.3.0_3 for building
=> SHA256 Checksum OK for emby-server/emby-server-freebsd14_4.8.3.0_amd64.tar.xz.
=> SHA256 Checksum OK for emby-server/ffdetect-2023_06_25-x64_freebsd14.tar.xz.
=> SHA256 Checksum OK for emby-server/ffmpeg-2023_06_25-u1.tar.gz.
=> SHA256 Checksum OK for emby-server/license.docx.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License UNKNOWN accepted by the user
===> Fetching all distfiles required by emby-server-4.8.3.0_3 for building
===>  Extracting for emby-server-4.8.3.0_3
=> SHA256 Checksum OK for emby-server/emby-server-freebsd14_4.8.3.0_amd64.tar.xz.
=> SHA256 Checksum OK for emby-server/ffdetect-2023_06_25-x64_freebsd14.tar.xz.
=> SHA256 Checksum OK for emby-server/ffmpeg-2023_06_25-u1.tar.gz.
=> SHA256 Checksum OK for emby-server/license.docx.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for emby-server-4.8.3.0_3
===========================================================================
<snip>
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:62 (libavformat/tls_mbedtls.c:62)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:62 (libavformat/tls_mbedtls.c:62)
>>>               tls_mbedtls.o:(tls_close) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_exp_mod
>>> referenced by rtmpdh.c:242 (libavformat/rtmpdh.c:242)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:307 (libavformat/rtmpdh.c:307)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:258 (libavformat/rtmpdh.c:258)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_read_string
>>> referenced by rtmpdh.c:358 (libavformat/rtmpdh.c:358)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:403 (libavformat/rtmpdh.c:403)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:333 (libavformat/rtmpdh.c:333)
>>>               rtmpdh.o:(ff_dh_init) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_lset
>>> referenced by rtmpdh.c:290 (libavformat/rtmpdh.c:290)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:337 (libavformat/rtmpdh.c:337)
>>>               rtmpdh.o:(ff_dh_init) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_cmp_mpi
>>> referenced by rtmpdh.c:291 (libavformat/rtmpdh.c:291)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:297 (libavformat/rtmpdh.c:297)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_copy
>>> referenced by rtmpdh.c:295 (libavformat/rtmpdh.c:295)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_sub_int
>>> referenced by rtmpdh.c:296 (libavformat/rtmpdh.c:296)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_cmp_int
>>> referenced by rtmpdh.c:311 (libavformat/rtmpdh.c:311)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_write_binary
>>> referenced by rtmpdh.c:385 (libavformat/rtmpdh.c:385)
>>>               rtmpdh.o:(ff_dh_write_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:262 (libavformat/rtmpdh.c:262)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_read_binary
>>> referenced by rtmpdh.c:398 (libavformat/rtmpdh.c:398)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a

ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
ld: error: undefined symbol: mbedtls_entropy_init
>>> referenced by tls_mbedtls.c:182 (libavformat/tls_mbedtls.c:182)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_ctr_drbg_init
>>> referenced by tls_mbedtls.c:183 (libavformat/tls_mbedtls.c:183)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_x509_crt_init
>>> referenced by tls_mbedtls.c:184 (libavformat/tls_mbedtls.c:184)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_pk_init
>>> referenced by tls_mbedtls.c:185 (libavformat/tls_mbedtls.c:185)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_x509_crt_parse_file
>>> referenced by tls_mbedtls.c:189 (libavformat/tls_mbedtls.c:189)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:197 (libavformat/tls_mbedtls.c:197)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_entropy_func
>>> referenced by tls_mbedtls.c:204 (libavformat/tls_mbedtls.c:204)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_ctr_drbg_seed
>>> referenced by tls_mbedtls.c:204 (libavformat/tls_mbedtls.c:204)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_pk_free
>>> referenced by tls_mbedtls.c:56 (libavformat/tls_mbedtls.c:56)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:56 (libavformat/tls_mbedtls.c:56)
>>>               tls_mbedtls.o:(tls_close) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_x509_crt_free
>>> referenced by tls_mbedtls.c:57 (libavformat/tls_mbedtls.c:57)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:58 (libavformat/tls_mbedtls.c:58)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:57 (libavformat/tls_mbedtls.c:57)
>>>               tls_mbedtls.o:(tls_close) in archive libavformat/libavformat.a
>>> referenced 1 more times

ld: error: undefined symbol: mbedtls_ctr_drbg_free
>>> referenced by tls_mbedtls.c:61 (libavformat/tls_mbedtls.c:61)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:61 (libavformat/tls_mbedtls.c:61)
>>>               tls_mbedtls.o:(tls_close) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_entropy_free
>>> referenced by tls_mbedtls.c:62 (libavformat/tls_mbedtls.c:62)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by tls_mbedtls.c:62 (libavformat/tls_mbedtls.c:62)
>>>               tls_mbedtls.o:(tls_close) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_pk_parse_keyfile
>>> referenced by tls_mbedtls.c:214 (libavformat/tls_mbedtls.c:214)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_ctr_drbg_random
>>> referenced by tls_mbedtls.c:237 (libavformat/tls_mbedtls.c:237)
>>>               tls_mbedtls.o:(tls_open) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_free
>>> referenced by rtmpdh.c:273 (libavformat/rtmpdh.c:273)
>>>               rtmpdh.o:(ff_dh_free) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:274 (libavformat/rtmpdh.c:274)
>>>               rtmpdh.o:(ff_dh_free) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:275 (libavformat/rtmpdh.c:275)
>>>               rtmpdh.o:(ff_dh_free) in archive libavformat/libavformat.a
>>> referenced 7 more times

ld: error: undefined symbol: mbedtls_mpi_bitlen
>>> referenced by rtmpdh.c:227 (libavformat/rtmpdh.c:227)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:379 (libavformat/rtmpdh.c:379)
>>>               rtmpdh.o:(ff_dh_write_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_init
>>> referenced by rtmpdh.c:231 (libavformat/rtmpdh.c:231)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:236 (libavformat/rtmpdh.c:236)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:358 (libavformat/rtmpdh.c:358)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced 6 more times

ld: error: undefined symbol: mbedtls_mpi_fill_random
>>> referenced by rtmpdh.c:234 (libavformat/rtmpdh.c:234)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_exp_mod
>>> referenced by rtmpdh.c:242 (libavformat/rtmpdh.c:242)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:307 (libavformat/rtmpdh.c:307)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:258 (libavformat/rtmpdh.c:258)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_read_string
>>> referenced by rtmpdh.c:358 (libavformat/rtmpdh.c:358)
>>>               rtmpdh.o:(ff_dh_generate_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:403 (libavformat/rtmpdh.c:403)
>>>               rtmpdh.o:(ff_dh_compute_shared_secret_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:333 (libavformat/rtmpdh.c:333)
>>>               rtmpdh.o:(ff_dh_init) in archive libavformat/libavformat.a

ld: error: undefined symbol: mbedtls_mpi_lset
>>> referenced by rtmpdh.c:290 (libavformat/rtmpdh.c:290)
>>>               rtmpdh.o:(dh_is_valid_public_key) in archive libavformat/libavformat.a
>>> referenced by rtmpdh.c:337 (libavformat/rtmpdh.c:337)
>>>               rtmpdh.o:(ff_dh_init) in archive libavformat/libavformat.a

ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:131: ffmpeg_g] Error 1
gmake: *** Waiting for unfinished jobs....
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:131: ffprobe_g] Error 1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/emby-server