Alain Guibert <[EMAIL PROTECTED]> writes:

> On Debian Woody (kernel 2.4.18, gcc 2.95.4, Glibc 2.2.5), building
> Wget 1.10 alpha 3 fails:
[...]

Thanks for testing this.

> | gcc -I. -I.    -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" 
> -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c ptimer.c
> | ptimer.c: In function `posix_init':
> | ptimer.c:143: `CLOCK_MONOTONIC' undeclared (first use in this function)
> | ptimer.c:143: (Each undeclared identifier is reported only once
> | ptimer.c:143: for each function it appears in.)
> | ptimer.c:143: initializer element is not constant
> | ptimer.c:143: (near initialization for `clocks[0].id')
> | make[1]: *** [ptimer.o] Error 1
> | make[1]: Leaving directory `/tmp/wget-1.10-alpha3/src'
> | make: *** [src] Error 2

Does this this patch fix the problem?

2005-04-29  Hrvoje Niksic  <[EMAIL PROTECTED]>

        * ptimer.c (posix_init): Since we allow _POSIX_MONOTONIC_CLOCK==0,
        it is not enough to check for _POSIX_MONOTONIC_CLOCK-0, we must
        also check for defined(_POSIX_MONOTONIC_CLOCK).

Index: src/ptimer.c
===================================================================
RCS file: /pack/anoncvs/wget/src/ptimer.c,v
retrieving revision 1.9
diff -u -r1.9 ptimer.c
--- src/ptimer.c        2005/04/15 19:29:19     1.9
+++ src/ptimer.c        2005/04/29 11:27:53
@@ -139,7 +139,7 @@
     int id;
     int sysconf_name;
   } clocks[] = {
-#if _POSIX_MONOTONIC_CLOCK - 0 >= 0
+#if defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK - 0 >= 0
     { CLOCK_MONOTONIC, _SC_MONOTONIC_CLOCK },
 #endif
 #ifdef CLOCK_HIGHRES

> | checking for getaddrinfo... no
> | configure: Disabling IPv6 support: your system does not support 
> getaddrinfo(3)
> | checking for INET6 protocol support... yes
> | checking for struct sockaddr_in6... yes
> | checking for struct sockaddr_storage... no
> | checking for struct sockaddr_in6.sin6_scope_id... no

Apparently IPv6 disabling doesn't work well enough in your case.
(There is no sense in doing IPv6 if there is no getaddrinfo.)  I'll
look into it.

Does Wget build if you specify --disable-ipv6 on the command line?

Reply via email to