Re: Error on GNUTLS when compiling MPlayer

The Wanderer <[email protected]>
Newsgroups gmane.comp.video.mplayer.user
Organization This space intentionally left blank.
Message-ID <[email protected]>
On 2021-02-13 at 13:48, Reimar Döffinger wrote:

>> On 13 Feb 2021, at 19:40, Stephane Ascoet <[email protected]>
>> wrote:

>>> Most likely, however, what you need to do is to configure
>>> MPlayer without '--*-gnutls' and review the config.log output to
>>> see why autodetection is failing, then see what you can do to let
>>> it find what it's looking for.
>> 
>> I've done it initially. There was missing libraries for various
>> functions I need in MPlayer, so I've spent hours installing the
>> necessary packages. But for TLS support, there is only "no"
>> displayed next to "checking for GNUTLS", without any additional
>> information, so I have no clues at all to guess what's missing.
>> Could you give me some more of these last ones so I can go
>> forward?
> 
> You need to check config.log, the parts relating to GNUTLS. It should
> say (in more or less cryptic messages) exactly why it says “no”
> there. Note that only one of OpenSSL and GNUTLS can be used, but if
> your issue is missing functionality that should not be the issue.

Specifically, you need to search config.log (when compiled with neither
'--enable-gnutls' nor '--disable-gnutls') for the string 'GnuTLS';
that's the way it's capitalized in the relevant location.

In my case, from the last time I compiled MPlayer (rather a while ago
now), I see:


============ Checking for GnuTLS ============

#include <gnutls/gnutls.h>
int main(void) { gnutls_global_init(); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Werror=format-security -Wstrict-prototypes
-Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99
-Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
-fno-asynchronous-unwind-tables /tmp/mplayer-configure--24235/tmp.c
-fpie -DPIC -D_REENTRANT   -ffast-math -fpie -pie   -lncurses -lrt   -o
/tmp/mplayer-configure--24235/tmp -I/usr/include/p11-kit-1 -lgnutls -lm


Result is: yes
##########################################


which tells me that the file it's looking for is named 'gnutls.h', in a
directory named 'gnutls'.

From there, if I run 'apt-file search gnutls/gnutls.h', I find that
there's a package named libgnutls28-dev, which contains
/usr/include/gnutls/gnutls.h. (Depending on which Debian repository
you're tracking, the package name may be different in your case.)

If the file were missing (such that the configure result had been 'no'),
the next thing I'd do is to install that package, then try to configure
again.

If it still fails, I'd look at the error messages in the same section of
configure.log and try to figure out the problem. In some cases it's
because, although the header is present, the lib*.a or lib*.la or
lib*.so files aren't; in other cases it's because the header file (etc.)
is of a version which doesn't match what the version of MPlayer you're
compiling expects.

Neither of those is likely to apply with GnuTLS, so all you should need
to do is identify the exact package name which contains the file you're
after, install it, and move forward.


(I used to spend quite a bit of time going through the configure results
that came up as "no" and figuring out what packages I needed to install
to get them to be detected as "yes". I don't bother as much anymore, but
the process is still kind of fun, from my perspective.)

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmAoJlkACgkQBKk1jTQo
MmugrQ/7B8VSzq/0NRzpKEu9z4zFGRF6VcdNlLtTeYY8c+KqM+wukGUf1EQFVByU
ZrKY940AjWaTbU7LkozmoWfTBkLx185QOqbuumw1os6PQZxFDJe2GsYwgzvoeHSv
FCUJjc30OCEJKiWG6Z79Lwt44CFn6dOFxuJMl4HYdc+jea3tv3iQzDs5/Wvo50dE
CYZCqPeZ4ecM5jd63V7IAyAOxnR0MQUCp7duH42bIpU74SleMOlfBqoguP/O9z1E
G9DWs272SIrFt9vJzYkm7QeTn6qQ6RImlolND2T82e8xBVNZ6EIrTAl/oNBCmdZH
nCYlrJ41m7ltoiWQOwjTrAsTEP63cgwMGkeS1LKfhLWvZGTWbaCI71jfR5XjP1TG
bzG6rvgWRTxKkuve6iftREH8iRtvuvM/yOEMNmCPU5iI8s+Je0lN3RmXDIQp814e
CjmPrEFiqiPLYfDYixRwlHGA2Y8/sGFwS4vFAGuy+TPBaGig5jp41ORTGmlz9fxA
FSHGxBmwHb/PTeobx565R8A7xKvFKvHORyIlV8C5VNq51pO/EhLUbid9TmlsTjqt
9MPt2MYLhfbi7Ptzv2zt3VkcoNjx5Gg9FDNPwE/WPAqyfgwbNc+nUU7jph30DBM4
e/FkfAWTNyDWtY2ShEgFcMjMA9OPvVg3jXxE5yFGmMJSLLh2Bgs=
=z2Hm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.