Fixes the compile error, but fails at linking stage.
[EMAIL PROTECTED]:~/wget-1.9$ make
cd src && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app
/wget-1.9/etc/wgetrc\" -DLOCALEDIR=\"/app/wget-1.9/share/locale\"'
CFLAGS='-O2 -
Wall -Wno-implicit' LDFLAGS='' LIBS='-lssl -lcrypto -ldl '
prefix='/app/wget-1.9
' exec_prefix='/app/wget-1.9' bindir='/app/wget-1.9/bin'
infodir='/app/wget-1.9/
info' mandir='/app/wget-1.9/man' manext='1'
make[1]: Entering directory `/home/war/wget-1.9/src'
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\" -DLO
CALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c ftp.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\" -DLO
CALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
ftp-basic.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\" -DLO
CALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c ftp-ls.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
ftp-opie.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
hash.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
headers.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
host.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
html-parse.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
html-url.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
http.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
init.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
log.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
main.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
gen-md5.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
netrc.c
[EMAIL PROTECTED]:~/wget-1.9$ make
cd src && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\"' CFLAGS='-O2 -Wall
-Wno-implicit' LDFLAGS='' LIBS='-lssl -lcrypto -ldl '
prefix='/app/wget-1.9' exec_prefix='/app/wget-1.9'
bindir='/app/wget-1.9/bin' infodir='/app/wget-1.9/info'
mandir='/app/wget-1.9/man' manext='1'
make[1]: Entering directory `/home/war/wget-1.9/src'
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
cmpt.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
connect.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
convert.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
cookies.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c ftp.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
ftp-basic.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
ftp-ls.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
ftp-opie.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
hash.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
headers.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
host.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
html-parse.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
html-url.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
http.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
init.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
log.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
main.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
gen-md5.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
netrc.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
progress.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
rbuf.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
recur.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
res.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
retr.c
retr.c:135:1: warning: "MIN" redefined
In file included from /vapp/include/ap_config.h:1054,
from /vapp/include/fnmatch.h:38,
from sysdep.h:230,
from wget.h:86,
from retr.c:46:
/usr/include/sys/param.h:58:1: warning: this is the location of the
previous definition
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
safe-ctype.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
snprintf.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
gen_sslfunc.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
url.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
utils.c
gcc -I. -I. -DHAVE_CONFIG_H
-DSYSTEM_WGETRC=\"/app/wget-1.9/etc/wgetrc\"
-DLOCALEDIR=\"/app/wget-1.9/share/locale\" -O2 -Wall -Wno-implicit -c
version.c
/bin/sh ../libtool --mode=link gcc -O2 -Wall -Wno-implicit -o wget
cmpt.o connect.o convert.o cookies.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o
hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o
gen-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o
snprintf.o gen_sslfunc.o url.o utils.o version.o -lssl -lcrypto -ldl
mkdir .libs
gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o convert.o cookies.o
ftp.o ftp-basic.o ftp-ls.o ftp-opie.o hash.o headers.o host.o html-parse.o
html-url.o http.o init.o log.o main.o gen-md5.o netrc.o progress.o rbuf.o
recur.o res.o retr.o safe-ctype.o snprintf.o gen_sslfunc.o url.o utils.o
version.o -lssl -lcrypto -ldl
main.o(.text+0xbc5): In function `main':
: undefined reference to `ap_signal'
main.o(.text+0xbdd): In function `main':
: undefined reference to `ap_signal'
main.o(.text+0xbf4): In function `main':
: undefined reference to `ap_signal'
main.o(.text+0xc09): In function `main':
: undefined reference to `ap_signal'
main.o(.text+0xc1e): In function `main':
: undefined reference to `ap_signal'
main.o(.text+0x110f): more undefined references to `ap_signal' follow
collect2: ld returned 1 exit status
make[1]: *** [wget] Error 1
make[1]: Leaving directory `/home/war/wget-1.9/src'
make: *** [src] Error 2
[EMAIL PROTECTED]:~/wget-1.9$
On Thu, 23 Oct 2003, Hrvoje Niksic wrote:
> Hmm. It seems that one of the enums is clashing with something on the
> system -- I'm betting it's GETALL. I don't know why this never
> happened with older versions.
>
> Does it compile if you add the FTP_ prefix to the names of the
> constants, both in ftp.h and ftp.c?
>
>