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/

Reply via email to