GSDL Compile Error

From Will Farrell
DateWed, 9 Apr 2003 13:31:30 -0500
Subject GSDL Compile Error
G'day all.

Sorry to bother the group with such a mundane problem, but..

We've been succesfully using GSDL on a variety of Linux boxes since last
year with no major problems. Recently we installed Mandrake 9.1 on one of
our servers (since it comes with MySQL 4.11 which has transactions built
in). Now GSDL doesn't want to compile - that's versions 2.38 and 2.39. The
error seems to be with wget. We've tried looking for dependencies, etc. but
no luck.

Please help!!

Thanks,

Will Farrell.

Here's the tail end of the log:

http.c: In function `http_atotm':
http.c:1280: warning: passing arg 1 of `check_end' makes pointer from
integer without a cast
http.c:1283: warning: passing arg 1 of `check_end' makes pointer from
integer without a cast
http.c:1286: warning: passing arg 1 of `check_end' makes pointer from
integer without a cast
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c init.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c log.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c main.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c md5.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c netrc.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c rbuf.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c recur.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c retr.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c url.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c utils.c
gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wge
t/etc/wgetrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale" -O
2 -Wall -Wno-implicit -c version.c
gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o fnmatch.o ftp.o
ftp-basic.o ftp-ls.o ftp-opie.o getopt.o headers.o host.o html.o http.o
init.o log.o main.o md5.o netrc.o rbuf.o recur.o retr.o url.o utils.o
version.o
ftp.o(.text+0x3ca): In function `getftp':
: undefined reference to `h_errno'
ftp.o(.text+0x1010): In function `getftp':
: undefined reference to `h_errno'
ftp.o(.text+0x16de): In function `getftp':
: undefined reference to `h_errno'
http.o(.text+0x431): In function `gethttp':
: undefined reference to `h_errno'
collect2: ld returned 1 exit status
make[3]: *** [wget] Error 1
make[3]: Leaving directory `/usr/local/gsdl/packages/wget/wget-1.5.3/src'
make[2]: *** [src] Error 2
make[2]: Leaving directory `/usr/local/gsdl/packages/wget/wget-1.5.3'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/gsdl/packages'
make: *** [all] Error 1
for odir in packages packages/mg lib src/mgpp src/colservr src/recpt
src/txt2db src/db2txt src/hashfile src/getpw src/phind/generate; do
echo making all in $odir;
(cd $odir && make all) || exit 1;
done
making all in packages
make[1]: Entering directory `/usr/local/gsdl/packages'
for odir in wv/wv-gs rtftohtml/rtftohtml_src pdftohtml/pdftohtml_0_22
wget/wget-1.5.3 cpan/XML-Parser-2.27 xlhtml/xlhtml-0.4.9.0; do
echo making all in $odir;
(cd $odir && make all) || exit 1;
done
making all in wv/wv-gs
make[2]: Entering directory `/usr/local/gsdl/packages/wv/wv-gs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/gsdl/packages/wv/wv-gs'
making all in rtftohtml/rtftohtml_src
make[2]: Entering directory
`/usr/local/gsdl/packages/rtftohtml/rtftohtml_src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/usr/local/gsdl/packages/rtftohtml/rtftohtml_src'
making all in pdftohtml/pdftohtml_0_22
make[2]: Entering directory
`/usr/local/gsdl/packages/pdftohtml/pdftohtml_0_22'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/usr/local/gsdl/packages/pdftohtml/pdftohtml_0_22'
making all in wget/wget-1.5.3
make[2]: Entering directory `/usr/local/gsdl/packages/wget/wget-1.5.3'
cd src && make CC='gcc' CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/gsdl/packages/wget/etc/wg
etrc" -DLOCALEDIR="/usr/local/gsdl/packages/wget/share/locale"'
CFLAGS='-O2 -Wall -Wno-implicit' LDFLAGS='' LIBS=''
prefix='/usr/local/gsdl/packages/wget'
exec_prefix='/usr/local/gsdl/packages/wget'
bindir='/usr/local/gsdl/bin/linux'
infodir='/usr/local/gsdl/packages/wget/info'
mandir='/usr/local/gsdl/packages/wget/man' manext='1'
make[3]: Entering directory `/usr/local/gsdl/packages/wget/wget-1.5.3/src'
gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o fnmatch.o ftp.o
ftp-basic.o ftp-ls.o ftp-opie.o getopt.o headers.o host.o html.o http.o
init.o log.o main.o md5.o netrc.o rbuf.o recur.o retr.o url.o utils.o
version.o
ftp.o(.text+0x3ca): In function `getftp':
: undefined reference to `h_errno'
ftp.o(.text+0x1010): In function `getftp':
: undefined reference to `h_errno'
ftp.o(.text+0x16de): In function `getftp':
: undefined reference to `h_errno'
http.o(.text+0x431): In function `gethttp':
: undefined reference to `h_errno'
collect2: ld returned 1 exit status
make[3]: *** [wget] Error 1
make[3]: Leaving directory `/usr/local/gsdl/packages/wget/wget-1.5.3/src'
make[2]: *** [src] Error 2
make[2]: Leaving directory `/usr/local/gsdl/packages/wget/wget-1.5.3'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/gsdl/packages'
make: *** [all] Error 1