I rename the GETALL to GETALLJJ as to avoid the
conflict.  Now I get linker errors:

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/jason/Documents/wget-1.9.1/src'
make: *** [src] Error 2


--- JASON JESSO <[EMAIL PROTECTED]> wrote:
> I am running GENTOO Linux.  I get a compile error
> when
> trying to build wget 1.9.1.
> 
> [EMAIL PROTECTED] wget-1.9.1 $ make
> cd src && make CC='gcc' CPPFLAGS=''
> DEFS='-DHAVE_CONFIG_H
> -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\"
> -DLOCALEDIR=\"/usr/local/share/locale\"' CFLAGS='-O2
> -Wall -Wno-implicit' LDFLAGS='' LIBS='-lssl -lcrypto
> -ldl ' prefix='/usr/local' exec_prefix='/usr/local'
> bindir='/usr/local/bin' infodir='/usr/local/info'
> mandir='/usr/local/man' manext='1'
> make[1]: Entering directory
> `/home/jason/Documents/wget-1.9.1/src'
> gcc -I. -I.    -DHAVE_CONFIG_H
> -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -Wall
> -Wno-implicit -c ftp.c
> In file included from ftp.c:52:
> ftp.h:81: error: parse error before numeric constant
> make[1]: *** [ftp.o] Error 1
> make[1]: Leaving directory
> `/home/jason/Documents/wget-1.9.1/src'
> make: *** [src] Error 2
> [EMAIL PROTECTED] wget-1.9.1 $
> 
> I found that GETALL conflicts with other headers on
> the system.
> 
> [EMAIL PROTECTED] wget-1.9.1 $  find /usr/include/ -name
> '*.h' -exec grep -l GETALL {} \;
> /usr/include/linux/sem.h
> /usr/include/bits/sem.h
> 
> Other people don't have this problem with the same
> system.
> 
> Any ideas?
> 

Reply via email to