Problems compiling wget 1.6!!!
Hi, I have problems in compiling the recent version wget-1.6. Attached the log files for "./configure" and "make". If you have further questions, feel free to ask me. Hope this helps. Pedro Note: I'd like to be cc'd in replies to my post because I am not subscribed. Thanks. ./configure creating cache ./config.cache configuring for GNU Wget 1.6 checking host system type... sparc-sun-solaris2.6 checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ./install-sh -c checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for gcc option to accept ANSI C... checking for function prototypes... yes checking for working const... yes checking for size_t... yes checking for pid_t... yes checking whether byte ordering is bigendian... yes checking size of long... 4 checking size of long long... 8 checking for string.h... yes checking for stdarg.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for utime.h... yes checking for sys/utime.h... yes checking for sys/select.h... yes checking for sys/utsname.h... yes checking for pwd.h... yes checking for signal.h... yes checking whether time.h and sys/time.h may both be included... yes checking return type of signal handlers... void checking for struct utimbuf... yes checking for working alloca.h... yes checking for alloca... yes checking for strdup... yes checking for strstr... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for gettimeofday... yes checking for mktime... yes checking for strptime... yes checking for strerror... yes checking for snprintf... yes checking for vsnprintf... yes checking for select... yes checking for signal... yes checking for symlink... yes checking for access... yes checking for isatty... yes checking for uname... yes checking for gethostname... yes checking for gethostbyname... no checking for gethostbyname in -lnsl... yes checking for socket in -lsocket... yes checking whether NLS is requested... yes language catalogs: cs da de el et fr gl hr it ja nl no pl pt_BR ru sk sl sv zh checking for msgfmt... /bin/msgfmt checking for xgettext... /bin/xgettext checking for gmsgfmt... /bin/msgfmt found xgettext programs is not GNU xgettext; ignore it checking for locale.h... yes checking for libintl.h... yes checking for gettext... yes checking for makeinfo... no checking for emacs... no checking for xemacs... xemacs updating cache ./config.cache creating ./config.status creating Makefile creating src/Makefile creating doc/Makefile creating util/Makefile creating po/Makefile.in creating src/config.h generating po/POTFILES from ./po/POTFILES.in creating po/Makefile make cd src make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLOCALEDIR= \"/usr/local/share/locale\"' CFLAGS='-O2 -Wall -Wno-implicit' LDFLAGS='' LIBS='-lsocket -lnsl' prefix='/usr/local' exec_prefix='/usr/local' bindir='/usr/local/bin' infodir='/usr/local/info' mandir='/usr/local/man' manext='1' gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c cmpt.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c connect.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c fnmatch.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c ftp.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c ftp-basic.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c ftp-ls.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c ftp-opie.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c getopt.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c headers.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c host.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c html.c gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO
Re: [Patch] LC_CTYPE not defined
Philipp Thomas [EMAIL PROTECTED] writes: * R.I.P. Deaddog ([EMAIL PROTECTED]) [20010329 23:12]: I have checked out the cvs version (both 1.6.1-dev and 1.7-dev), and found no related modification... and nothing mentioned in Changelog. Is it that I missed something? Well, then it hasn't been checked into the 1.7 CVS yet. If you like, I can send you the diff I sent to wget-patches. Correct. The patch has been approved, and will likely be applied this weekend.
Re: [Patch] LC_CTYPE not defined
Backported Philipp's patch to 1.6.1-dev and is attached here. This patch can be used again 1.6 too. Not sure if this is a useless patch? :) Abel Cheung On 30 Mar 2001, Hrvoje Niksic wrote: Philipp Thomas [EMAIL PROTECTED] writes: * R.I.P. Deaddog ([EMAIL PROTECTED]) [20010329 23:12]: I have checked out the cvs version (both 1.6.1-dev and 1.7-dev), and found no related modification... and nothing mentioned in Changelog. Is it that I missed something? Well, then it hasn't been checked into the 1.7 CVS yet. If you like, I can send you the diff I sent to wget-patches. Correct. The patch has been approved, and will likely be applied this weekend. diff -urN wget-1.6/src/Makefile.in wget-1.6-new/src/Makefile.in --- wget-1.6/src/Makefile.inSun Nov 5 06:49:45 2000 +++ wget-1.6-new/src/Makefile.inFri Mar 30 09:36:55 2001 @@ -59,7 +59,7 @@ OBJ = $(ALLOCA) cmpt$o connect$o fnmatch$o ftp$o ftp-basic$o \ ftp-ls$o $(OPIE_OBJ) getopt$o headers$o host$o html$o \ http$o init$o log$o main$o $(MD5_OBJ) netrc$o rbuf$o\ - recur$o retr$o snprintf$o url$o utils$o version$o + recur$o retr$o snprintf$o url$o utils$o version$o safe-ctype$o .SUFFIXES: .SUFFIXES: .c .o ._c ._o @@ -154,5 +154,6 @@ rbuf$o: config.h wget.h sysdep.h options.h rbuf.h connect.h recur$o: config.h wget.h sysdep.h options.h url.h recur.h utils.h retr.h rbuf.h ftp.h fnmatch.h host.h retr$o: config.h wget.h sysdep.h options.h utils.h retr.h rbuf.h url.h recur.h ftp.h host.h connect.h +safe-ctype$o: safe-ctype.h url$o: config.h wget.h sysdep.h options.h utils.h url.h host.h html.h utils$o: config.h wget.h sysdep.h options.h utils.h fnmatch.h diff -urN wget-1.6/src/ansi2knr.c wget-1.6-new/src/ansi2knr.c --- wget-1.6/src/ansi2knr.c Thu Dec 2 15:42:26 1999 +++ wget-1.6-new/src/ansi2knr.c Fri Mar 30 09:40:29 2001 @@ -83,7 +83,6 @@ #endif #include stdio.h -#include ctype.h #if HAVE_CONFIG_H diff -urN wget-1.6/src/cmpt.c wget-1.6-new/src/cmpt.c --- wget-1.6/src/cmpt.c Wed Apr 12 21:23:34 2000 +++ wget-1.6-new/src/cmpt.c Fri Mar 30 09:40:29 2001 @@ -26,7 +26,6 @@ #else # include strings.h #endif /* HAVE_STRING_H */ -#include ctype.h #include sys/types.h #ifdef HAVE_UNISTD_H @@ -657,9 +656,9 @@ { /* A white space in the format string matches 0 more or white space in the input string. */ - if (isspace (*fmt)) + if (ISSPACE (*fmt)) { - while (isspace (*rp)) + while (ISSPACE (*rp)) ++rp; ++fmt; continue; @@ -851,7 +850,7 @@ case 'n': case 't': /* Match any white space. */ - while (isspace (*rp)) + while (ISSPACE (*rp)) ++rp; break; case 'p': diff -urN wget-1.6/src/ftp-basic.c wget-1.6-new/src/ftp-basic.c --- wget-1.6/src/ftp-basic.cFri Mar 30 09:23:53 2001 +++ wget-1.6-new/src/ftp-basic.cFri Mar 30 09:40:29 2001 @@ -26,7 +26,6 @@ #else # include strings.h #endif -#include ctype.h #ifdef HAVE_UNISTD_H # include unistd.h #endif diff -urN wget-1.6/src/ftp-ls.c wget-1.6-new/src/ftp-ls.c --- wget-1.6/src/ftp-ls.c Sat Nov 11 02:01:35 2000 +++ wget-1.6-new/src/ftp-ls.c Fri Mar 30 09:40:29 2001 @@ -30,7 +30,6 @@ # include unistd.h #endif #include sys/types.h -#include ctype.h #include errno.h #include "wget.h" diff -urN wget-1.6/src/ftp.c wget-1.6-new/src/ftp.c --- wget-1.6/src/ftp.c Fri Mar 30 09:23:53 2001 +++ wget-1.6-new/src/ftp.c Fri Mar 30 09:40:29 2001 @@ -26,7 +26,6 @@ #else # include strings.h #endif -#include ctype.h #ifdef HAVE_UNISTD_H # include unistd.h #endif diff -urN wget-1.6/src/headers.c wget-1.6-new/src/headers.c --- wget-1.6/src/headers.c Wed Apr 12 21:23:34 2000 +++ wget-1.6-new/src/headers.c Fri Mar 30 09:40:29 2001 @@ -26,7 +26,6 @@ #else # include strings.h #endif -#include ctype.h #include "wget.h" #include "connect.h" diff -urN wget-1.6/src/host.c wget-1.6-new/src/host.c --- wget-1.6/src/host.c Mon Nov 13 08:46:13 2000 +++ wget-1.6-new/src/host.c Fri Mar 30 09:40:29 2001 @@ -21,7 +21,6 @@ #include stdio.h #include stdlib.h -#include ctype.h #ifdef HAVE_STRING_H # include string.h #else diff -urN wget-1.6/src/html.c wget-1.6-new/src/html.c --- wget-1.6/src/html.c Thu Nov 2 09:50:03 2000 +++ wget-1.6-new/src/html.c Fri Mar 30 09:40:29 2001 @@ -19,7 +19,6 @@ #include config.h -#include ctype.h #ifdef HAVE_STRING_H # include string.h #else diff -urN wget-1.6/src/http.c wget-1.6-new/src/http.c --- wget-1.6/src/http.c Fri Mar 30 09:23:53 2001 +++ wget-1.6-new/src/http.c Fri Mar 30 09:40:29 2001 @@ -27,7 +27,6 @@ #else # include strings.h #endif -#include ctype.h #ifdef HAVE_UNISTD_H # include unistd.h #endif diff -urN wget-1.6/src/init.c
Windows binary
New version up at http://www.geocities.com/heiko_herold Heiko -- -- PREVINET S.p.A.[EMAIL PROTECTED] -- Via Ferretto, 1 ph x39-041-5907073 -- I-31021 Mogliano V.to (TV) fax x39-041-5907087 -- ITALY
Re: wget causes Microsoft IIS crash ?!
Jan Prikryl wrote: Quoting Fredy Kuenzler ([EMAIL PROTECTED]): Actually it happens that wget 1.5.3 (SuSE Distribution) and also the self-compiled wget 1.6 seems to crash Microsofts IIS 5.0. Nothing new for me, given the quality of the IIS. After about 100 to 150 requests and a pause from 5 to 30 seconds between each request, the server dies and does not allow anymore http requests. I do not suppose this has something to do with wget. I guess it's either the IIS being misconfigured or indeed a bug in the server itself. Try it with some other tool (pavuk, for example). Thanks for the hint. In fact, with pavuk the same thing happend. Therefore it's proven that wget has no bug. I tried it also with the current wget cvs version ... again same result. We can reproduce the error on the IIS ... it's definately a M$ problem or a misconfiguration of the ASP config. Thanks anyway ... another reason not to use IIS (unfortunately in this case it's not our choice). Regards Fredy -- http://www.fernsehen.ch/ - der aktuelle TV-Programmguide
Re: Bug when converting links in wget 1.6
Dan Harkless [EMAIL PROTECTED] writes: --- src/recur.c Sun Dec 17 20:28:20 2000 +++ src/recur.c.new Sun Mar 25 20:25:12 2001 @@ -165,7 +165,18 @@ first_time = 0; } else +{ +u = newurl (); +err = parseurl (this_url, u, 0); +if (err == URLOK) + { +ulist = add_slist (ulist, u-url, 0); /* ??? */ + urls_downloaded = add_url (urls_downloaded, u-url, file); + urls_html = add_slist (urls_html, file, NOSORT); + } +freeurl(u, 1); ++depth; +} if (opt.reclevel != INFINITE_RECURSION depth opt.reclevel) /* We've exceeded the maximum recursion depth specified by the user. */ Thanks for the patch, Carsten. Hopefully someone will have time to review it soon and apply it if it's appropriate. Does this look like the right fix, Hrvoje? I'm not completely sure. I suspect that it doesn't handle the HTML files that are downloaded but not followed recursively. To be sure that *all* HTML files are handled, I think the addition needs to be triggered from within retrieve_url, say by calling a "register_html_file_for_conversion()". I think I'll provide such a fix tonight. On a side note, I think it might be more useful to remove the first-step conversion as it seems to do cause more confusion than it benefits.
Re: Problems compiling wget 1.6!!!
"Pedro Montero" [EMAIL PROTECTED] writes: gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLO CALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c log.c log.c: In function `logprintf': log.c:382: `__builtin_va_alist' undeclared (first use this function) log.c:382: (Each undeclared identifier is reported only once log.c:382: for each function it appears in.) log.c:375: warning: `args' might be used uninitialized in this function log.c: In function `debug_logprintf': log.c:412: `__builtin_va_alist' undeclared (first use this function) log.c:406: warning: `args' might be used uninitialized in this function *** Error code 1 wget is known to compile fine on Solaris 2.6 with gcc, so I suspect you have the same problem another recent poster did. The "fixed" headers gcc uses are out-of-sync with your OS (was this machine upgraded to 2.6, by any chance?). Please re-install a current version of gcc -- your compile problem will almost certainly go away. --- Dan Harkless| To help prevent SPAM contamination, GNU Wget co-maintainer | please do not mention this email http://sunsite.dk/wget/ | address in Usenet posts -- thank you.
Re: Bug when converting links in wget 1.6
Hrvoje Niksic [EMAIL PROTECTED] writes: To be sure that *all* HTML files are handled, I think the addition needs to be triggered from within retrieve_url, say by calling a "register_html_file_for_conversion()". I think I'll provide such a fix tonight. Sounds good. Wonder if it should be more generically-worded, though? I can certainly envision other reasons besides conversion where we'd want a list of all HTML files downloaded. On a side note, I think it might be more useful to remove the first-step conversion as it seems to do cause more confusion than it benefits. I'd tend to agree. --- Dan Harkless| To help prevent SPAM contamination, GNU Wget co-maintainer | please do not mention this email http://sunsite.dk/wget/ | address in Usenet posts -- thank you.