On Mon, Dec 7, 2020 at 9:29 PM Tom Crane <tpcw...@mklab.ph.rhul.ac.uk> wrote: > > On Mon, 7 Dec 2020, Petr Pisar wrote: > > > V??Mon, Dec 07, 2020 at 03:44:32AM +0000,??Tom Crane napsal(a): > ... > > > > I suspect you use OpenSSL for TLS and wget is missing the fcntl() call from > > src/openssl.c. > > That was it. Checking the Slackware distro's build script > http://slackware.osuosl.org/slackware64-current/source/n/wget/wget.SlackBuild > shows it specifies, > > ./configure --with-ssl=openssl
There's also --with-libssl-prefix when OpenSSL is not in a standard location. I believe the same option is needed when using an updated GnuTLS. (I build against OpenSSL because OpenSSL is easier to update. OpenSSL has fewer dependencies than GnuTLS. I don't know how --with-libssl-prefix behaves with GnuTLS). You might need --with-libssl-prefix on a system like OS X. OS X provides an antique version OpenSSL 0.9.x, so you usually need to build and install OpenSSL 1.1.x. For example: # OS X 10.5 (PowerMac) $ /usr/bin/openssl version OpenSSL 0.9.7l 28 Sep 2006 # OS X 10.9 $ /usr/bin/openssl version OpenSSL 0.9.8zg 14 July 2015 # OS X 10.12 $ /usr/bin/openssl version OpenSSL 0.9.8zh 14 Jan 2016 Jeff