[FFmpeg-trac] #8810(undetermined:reopened): Compilation FFmpeg fails
FFmpeg
trac at avcodec.org
Sat Jan 2 03:37:27 EET 2021
#8810: Compilation FFmpeg fails
-------------------------------------+-------------------------------------
Reporter: | Owner:
johnaaronrose |
Type: defect | Status: reopened
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by danadam):
In my case (Debian Testing) I have:
{{{
/usr/bin/ld: cannot find -lunistring
collect2: error: ld returned 1 exit status
ERROR: gnutls not found using pkg-config
}}}
In `gnutls.pc` there is:
{{{
Libs: -L${libdir} -lgnutls
Libs.private: -pthread -lgmp -lunistring -latomic
}}}
The `--pkg-config-flags="--static"` option to `configure` makes it use
"Libs.private" line, so it tries to link with unistring. The problem is
that "libgnutls28-dev" does not depend on "libunistring-dev".
I removed the option and if fixed the issue. I suspect that manually
installing libunistring-dev would also fix it, although I found this
regarding static linking of gnutls:
https://gitlab.com/gnutls/gnutls/-/issues/203
Nikos Mavrogiannopoulos @nmav ยท 3 years ago
Note that static linking applications with gnutls is not something
supported. gnutls relies on library constructors and destructors which are
not loaded when linking statically.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8810#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list