due to a conflict with an irix include file variable name the following
change had to be made to get it to compile (just renamed sa_len to
my_sa_len in src/connect.c):

/usr/local/src/wget-1.9/src# diff -u connect.c.orig connect.c 
--- connect.c.orig      Fri Oct 10 21:39:07 2003
+++ connect.c   Thu Jul 22 18:50:36 2004
@@ -327,8 +327,8 @@
   DEBUGP (("Master socket fd %d bound.\n", msock));
   if (!*port)
     {
-      socklen_t sa_len = sockaddr_len ();
-      if (getsockname (msock, &srv.sa, &sa_len) < 0)
+      socklen_t my_sa_len = sockaddr_len ();
+      if (getsockname (msock, &srv.sa, &my_sa_len) < 0)
        {
          CLOSE (msock);
          msock = -1;

----------------------------------------------

here is the cc error:

/usr/local/src/wget-1.9/src
        cc -I. -I. -I/opt/include   -DHAVE_CONFIG_H 
-DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLOCALEDIR=\"/usr/local/share/locale\" -O 
-c connect.c
"connect.c", line 330: error(1065): expected a ";"
        socklen_t sa_len = sockaddr_len ();
                  ^

"connect.c", line 331: error(1148): expression must have struct or union type
        if (getsockname (msock, &srv.sa, &sa_len) < 0)
                                          ^
2 errors detected in the compilation of "connect.c".
*** Error code 2 (bu21)
*** Error code 1 (bu21)

----------------------------------------------

p.s. mucho thanx for wget - it is incredible!

it would be great if there could be a --forceretry option since --tries=n
will not retry if login fails (which is what happens when a wuftpd site
has maxed out the connections)

Reply via email to