Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-19 Thread Tim Rühsen
On 19.05.20 21:15, Stephen Kirby wrote: > Hi, > > One additional piece that may/may not be relevant: > > When I use secure protocol, i.e., https instead of http, it says: > > "Reading HSTS entries from .wget-hsts file in com.example.myapplication dir" > > Should I create a .wget-hsts file?  I

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-19 Thread Tim Rühsen
On 19.05.20 20:55, Stephen Kirby wrote: > Tim, > > Thanks for that.  I like the idea of rebuilding GnuTLS so I don't have > to add the --ca-directory flag, but will hold on that until I can > resolve the connecting problem. > > I added the --ca-directory=/system/etc/security/cacerts flag to the

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-19 Thread Stephen Kirby
Hi, One additional piece that may/may not be relevant: When I use secure protocol, i.e., https instead of http, it says: "Reading HSTS entries from .wget-hsts file in com.example.myapplication dir" Should I create a .wget-hsts file? I don't see one yet. If so, can someone please help me with

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-19 Thread Stephen Kirby
Tim, Thanks for that. I like the idea of rebuilding GnuTLS so I don't have to add the --ca-directory flag, but will hold on that until I can resolve the connecting problem. I added the --ca-directory=/system/etc/security/cacerts flag to the wget call and now see this (still not connecting and

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-19 Thread Tim Rühsen
Stephen, you should use the --ca-directory=directory options for this. That one loads all PEM files in that directory into the internal GnuTLS cert store. The file naming doesn't matter, only the content must be PEM. You wouldn't have that hassle if GnuTLS would have been built with the correct

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-18 Thread Stephen Kirby
Tim, Thanks for that clarification. You are correct -- I checked the x86-based Google Pixel emulator and there is no /etc/ssl/certs directory. Rather it appears this OS puts certificates in: /system/etc/security/cacerts. There the files are named (hash #'s).0. Do I need to tell wget to look

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-17 Thread Tim Rühsen
-1250 is a GnuTLS failure "GNUTLS_E_UNIMPLEMENTED_FEATURE" returned by gnutls_certificate_set_x509_system_trust(). Due to a bug, this is output instead of the real number of certs loaded. The fallback code tries to open /etc/ssl/certs to search for certificates. But it seems, this doesn't exist

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-16 Thread Stephen Kirby
Hi all, Tim let me know I only responded to him instead of the list. My bad and thanks for noticing! So here is what I sent Tim the other day -- Thanks all for you inputs! I just tried adding the --debug flag and get one more piece of info: certificates loaded: -1250 I am not seeing this

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-15 Thread Tim Rühsen
On 15.05.20 19:08, Stephen Kirby wrote: > Petr/Everyone, > > Thanks so much for your detailed recommendations on how to proceed. You > were spot on regarding gnutls_priority_set_direct. I looked at config.log > and noticed configure was failing due to a missing pthread lib. I inserted > that,

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-15 Thread Jeffrey Walton
On Fri, May 15, 2020 at 1:09 PM Stephen Kirby wrote: > ... > on the emulated phone, I am trying: > > wget -O filename http://###.##.###.## (i.e., here I use the IP address > found via nslookup on the named URL) > > Then, I get: > HTTP request sent, awaiting response... 302 object moved >

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-15 Thread Stephen Kirby
Petr/Everyone, Thanks so much for your detailed recommendations on how to proceed. You were spot on regarding gnutls_priority_set_direct. I looked at config.log and noticed configure was failing due to a missing pthread lib. I inserted that, then had to fix some other missing symbols. Anyway,

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-12 Thread Petr Pisar
On Tue, May 12, 2020 at 05:34:22PM -0600, Stephen Kirby wrote: > I'm using GnuTLS version 3.6.13. I believe it is the latest. If anyone > knows otherwise please let me know. > > Sorry for the delay in getting back to you Tim (was swamped this morning) > and thanks for your fast response! I

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-12 Thread Stephen Kirby
Hi Tim, I'm using GnuTLS version 3.6.13. I believe it is the latest. If anyone knows otherwise please let me know. Sorry for the delay in getting back to you Tim (was swamped this morning) and thanks for your fast response! I double-checked the versions of GnuTLS and wget I am using. Both

Re: Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-12 Thread Tim Rühsen
Which version of GnuTLS are you using ? I saw this issue two or three weeks ago on OSS-Fuzz, which builds wget and it's dependencies from master. But the build failure is gone now - and i never cared much for it, so can't tell you anything but "try with latest GnuTLS". Regards, Tim On 12.05.20

Undefined reference to gnutls_protocol_set_priority() when compiling latest wget version

2020-05-11 Thread Stephen Kirby
Hi all, I am trying to cross-compile wget using the target=x86_64-linux-gnueabi. It makes it almost all the way through but is dying at the link stage with the error I name in the subject line. It looks as if wget is trying to use a function in gnutls that has been deprecated/deleted. Is