Hrvoje Niksic wrote:
This patch should fix the problem. Please let me know if it works for you:
I would like to check it out, but I'm afraid I'm not able to compile it.
Why not? What error are you getting?
I have not that much experience with compiling source code ... When I try to build WGET.EXE (w/o SSL) using MinGW then I get many warnings and errors in "utils.c" and "log.c", i.e.:
-- gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -c -o log.o log.c log.c:498:26: macro "va_start" requires 2 arguments, but only 1 given log.c: In function `logprintf': log.c:498: `va_start' undeclared (first use in this function) log.c:498: (Each undeclared identifier is reported only once log.c:498: for each function it appears in.) log.c:524:30: macro "va_start" requires 2 arguments, but only 1 given log.c: In function `debug_logprintf': log.c:524: `va_start' undeclared (first use in this function) mingw32-make: *** [log.o] Error 1 --
Regards, Axel Pettinger
I just posted a patch to wget-patches that, hopefully, will fix the mingw build. In the meantime try adding the following lines to config.h.mingw:
#define WGET_USE_STDARG #define HAVE_SIG_ATOMIC_T
HTH, Cheers