[greenstone-devel] RV: GSDL Compile Error

From Will Farrell
DateFri, 11 Apr 2003 12:27:04 -0500
Subject [greenstone-devel] RV: GSDL Compile Error
Thanks John,

GSDL now compiles! We downloaded wget-1.8.2 and removed the reference
to "wget/wget-1.5.3" in the PACKAGEDIRS variable. Not that we don't feel
confident editing the source though!

May be the next version of GSDL should fix the naughty "extern int h_errno;"
line.

Once again thanks for your help and quick response,

Will.

-----Mensaje original-----
De: owner-greenstone-devl@colosys.net
[mailto:owner-greenstone-devl@colosys.net]En nombre de John R. McPherson
Enviado el: miercoles, 09 de abril de 2003 17:33
Para: Will Farrell
CC: greenstone_devl@colosys.net
Asunto: Re: GSDL Compile Error


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'

Hi,
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