Making wget

Norling, Gunnar Gunnar.Norling@compaq.com
Wed Jan 26 01:39:00 GMT 2000


Hi,
Some days ago there where a discussion involving the wget program. One of
the mails (sorry, I've already deleted it) described the build process for
it. I followed it, but in the end of the process I receive the following
errors:

$ make
:
.
gcc -O2 -Wall -Wno-implicit  -o wget.exe  cmpt.o connect.o fnmatch.o ftp.o
ftp-basi
ers.o host.o html.o http.o init.o log.o main.o md5.o netrc.o rbuf.o recur.o
retr.o
ftp.o(.text+0x848):ftp.c: undefined reference to `h_errno'
ftp.o(.text+0x1378):ftp.c: undefined reference to `h_errno'
ftp.o(.text+0x1808):ftp.c: undefined reference to `h_errno'
http.o(.text+0x750):http.c: undefined reference to `h_errno'
collect2: ld returned 1 exit status
make[1]: *** [wget.exe] Error 1
make[1]: Leaving directory
`/cygdrive/v/Cygnus/cygwin-b20/local/src/wget-1.5.3/src'
make: *** [src] Error 2

For some reason the "h_errno' is not defined. Could there be some problems
with my include libraries. I use a standard installation (using the snapshot
cygwin-inst-20000119.tar.gz), with no include variable set.

In the ftp.c file the following is defined:

---<start snip>---
#include <config.h>

#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
# include <string.h>
#else
# include <strings.h>
#endif
#include <ctype.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <sys/types.h>
#include <assert.h>
#include <errno.h>

#include "wget.h"
#include "utils.h"
#include "url.h"
#include "rbuf.h"
#include "retr.h"
#include "ftp.h"
#include "html.h"
#include "connect.h"
#include "host.h"
#include "fnmatch.h"
#include "netrc.h"

#ifndef errno
extern int errno;
#endif
#ifndef h_errno
extern int h_errno;
#endif
---<end snip>---



This is my versions:
gcc --version: 2.95.2
uname -a: CYGWIN_NT-4.0 <machine> 1.1.0(0.16/3/2) 2000-01-20 00:22:41 i686
unknown




/Gunnar Norling 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list