[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] wget is not installing properly.

From: Giuseppe Scrivano
Subject: Re: [Bug-wget] wget is not installing properly.
Date: Fri, 06 Sep 2013 14:40:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

"R.T.Waghmare" <address@hidden> writes:

> wget 1.14 is not installing properly. giving error shown in make .output file.
> i have earlier version 1.10 worked better. I want to shift to latest version.
> Kindly help 
> thanks in advance.
> thanks and regards
> Ravi Waghmare
> gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" 
> -DLOCALEDIR=\"/usr/local/share/locale\" -I.  -I../lib -I../lib   -O2 -Wall 
> -MT gnutls.o -MD -MP -MF .deps/gnutls.Tpo -c -o gnutls.o gnutls.c
> gnutls.c: In function 'ssl_connect_wget':
> gnutls.c:394: warning: cast to pointer from integer of different size
> gnutls.c:427: error: 'GNUTLS_TLS1_2' undeclared (first use in this function)
> gnutls.c:427: error: (Each undeclared identifier is reported only once
> gnutls.c:427: error: for each function it appears in.)
> make[3]: *** [gnutls.o] Error 1
> make[3]: Leaving directory `/home/ravi/wget-1.14/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/ravi/wget-1.14/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/ravi/wget-1.14'
> make: *** [all] Error 2

it seems you are using an old version of GNU TLS.

I suggest you to upgrade it.

Does this patch fix the build error?


diff --git a/src/gnutls.c b/src/gnutls.c
index 0499a25..9134bb0 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -460,7 +460,9 @@ ssl_connect_wget (int fd, const char *hostname)
     case secure_protocol_tlsv1:
       allowed_protocols[0] = GNUTLS_TLS1_0;
       allowed_protocols[1] = GNUTLS_TLS1_1;
+#ifdef GNUTLS_TLS1_2
       allowed_protocols[2] = GNUTLS_TLS1_2;
       err = gnutls_protocol_set_priority (session, allowed_protocols);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]