Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A38E2D1.D7A65C46@delcomsys.com>
Date: Thu, 14 Dec 2000 10:10:09 -0500
From: Patrick Doyle <wpd@delcomsys.com>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en,zh,zh-CN,zh-TW
MIME-Version: 1.0
To: Josifovski Ljubomir-BLJ01Z <Ljubomir_Josifovski-BLJ01Z@email.mot.com>
CC: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
Subject: Re: Q: apache: logresolve.c: undefined reference to `h_errno'
References: <D1F0002F0A8FD411ACEC00805FE675CE260E7C@zuk02exm02.comm.mot.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Not knowing any better, when I tried to compile wget, I just changed the
reference to `h_errno' from:

extern int h_errno;

to

/* extern  */ int h_errno;

in one place (ftp.c) and wget compiled fine.  Having just read
http://www.cygwin.com/ml/cygwin/2000-01/msg00452.html, I expect that was
not the most correct thing to do, but it did allow me to compile and use
wget.  Perhaps you could do the same with apache.

It's a hack, but it might be just enough to allow you to get your simple
files-via-http service running.

--wpd

Josifovski Ljubomir-BLJ01Z wrote:
> 
> I'm trying to compile apache from
> 
> http://www.student.uni-koeln.de/cygwin/Distribution/Source/apache/
> 
> and I get an error:
> 
> ===> src/support
> make[2]: Entering directory `/home/sysop/apache_1.3.9-cygwin/src/support'
> gcc  -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite `../apaci` logresolve.o
> -o logresolve   -L../os/cygwin -L../ap -lap -los  -lcrypt -lcrypt
> logresolve.o(.text+0x13a):logresolve.c: undefined reference to `h_errno'
> logresolve.o(.text+0x14d):logresolve.c: undefined reference to `h_errno'
> logresolve.o(.text+0x167):logresolve.c: undefined reference to `h_errno'
> collect2: ld returned 1 exit status
> make[2]: *** [logresolve] Error 1
> make[2]: Leaving directory `/home/sysop/apache_1.3.9-cygwin/src/support'
> <=== src/support
> make[1]: Leaving directory `/home/sysop/apache_1.3.9-cygwin'
> <=== src
> 
> I found a message ragarding compiling wget and link error involving h_errno
> at
> 
> http://www.cygwin.com/ml/cygwin/2000-01/msg00452.html
>

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

