Re: wget-1.7 does not compile with glibc1 (libc5)

2001-06-14 Thread Hrvoje Niksic

Parsons, Donald [EMAIL PROTECTED] writes:
[...]

Thanks for the report; this will be fixed in the next release.

Until then, you can simply #define MAP_FAILED to -1.



Re: wget-1.7 does not compile with glibc1 (libc5)

2001-06-08 Thread Andre Majorel

On 2001-06-08 17:57 -0400, Parsons, Donald wrote:
 Previous versions up to 1.6 compiled fine.
 
 cd src  make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H 
-DSYSTEM_WGETRC=\/usr/etc/wgetrc\ -DLOCA
 LEDIR=\/usr/share/locale\' CFLAGS='-O2 -fomit-frame-pointer -march=pentium 
-mcpu=pentium -pipe' LD
 FLAGS='-s' LIBS='' prefix='/usr' exec_prefix='/usr' bindir='/usr/bin' 
infodir='/usr/info' mandir='/u
 sr/man' manext='1'
 make[1]: Entering directory `/usr/src/wget-1.7/src'
 gcc -I. -I.-DHAVE_CONFIG_H -DSYSTEM_WGETRC=\/usr/etc/wgetrc\ 
-DLOCALEDIR=\/usr/share/locale\
  -O2 -fomit-frame-pointer -march=pentium -mcpu=pentium -pipe -c utils.c
 utils.c: In function `read_file':
 utils.c:980: `MAP_FAILED' undeclared (first use in this function)
 utils.c:980: (Each undeclared identifier is reported only once
 utils.c:980: for each function it appears in.)
 make[1]: *** [utils.o] Error 1
 make[1]: Leaving directory `/usr/src/wget-1.7/src'
 make: *** [src] Error 2

Quick and dirty fix : insert the following in utils.c before the
reference to MAP_FAILED :

#ifndef MAP_FAILED
#  define MAP_FAILED -1
#endif

-- 
André Majorel [EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/