[FFmpeg-user] gnutls compilation error
Moritz Barsnick
barsnick at gmx.net
Tue May 11 12:43:06 EEST 2021
Hi Uros,
On Wed, May 05, 2021 at 19:29:43 -0400, Uros Kolar wrote:
> pkg-config can find gnutls if I run it manually:
>
> $ pkg-config gnutls --cflags
> -I/usr/local/include
>
> I also exported GNUTLS_CFLAGS and GNUTLS_LIBS. I am not sure if the
> undefined references are related with this error or not.
It appears to be using the static gnutls, so this fails:
> /usr/local/lib/libgnutls.a(kx.o): In function `_gnutls_nss_keylog_write':
> /home/ec2-user/ffmpeg-libfdk_aac/src/gnutls-3.6.15/lib/kx.c:153: undefined reference to `pthread_mutex_lock'
> /home/ec2-user/ffmpeg-libfdk_aac/src/gnutls-3.6.15/lib/kx.c:163: undefined reference to `pthread_mutex_unlock'
because the linker should be using the output of
$ pkg-config --libs --static gnutls
not
$ pkg-config --libs gnutls
Did you read these very last lines of your config.log?:
> ERROR: gnutls not found using pkg-config
> Note: When building a static binary, add --pkg-config-flags="--static".
That's what you should be doing.
Cheers,
Moritz
More information about the ffmpeg-user
mailing list