"R.T.Waghmare" <[email protected]> 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?

Giuseppe


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;
+#endif
       err = gnutls_protocol_set_priority (session, allowed_protocols);
       break;
 

Reply via email to