Re: GSDL Compile Error

From John R. McPherson
DateThu, 10 Apr 2003 10:32:43 +1200
Subject Re: GSDL Compile Error
In-Reply-To (JKEKLBFIKBMGJMJCLNFJAEFPCDAA-wfarrell-starnetsys-com)
Will Farrell wrote:

> 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.

> ftp.o(.text+0x3ca): In function `getftp':
> : undefined reference to `h_errno'
> http.o(.text+0x431): In function `gethttp':
> : undefined reference to `h_errno'

this looks like a programming error by the wget authors :)

In packages/wget/wget-1.5.3/src/ there are 2 files, ftp.c and http.c
that have the line
extern int h_errno;
when they should probably get the definition from one of the header
files by doing:
#include <netdb.h>

If you don't feel confident editing the source code, you could install
your distribution's package of wget, and not use the bundled version
by editing the gsdl/packages/Makefile file and removing the reference
to "wget/wget-1.5.3" in the PACKAGEDIRS variable.

Hope this helps
John McPherson