This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FW: Q: apache: logresolve.c: undefined reference to `h_errno'



I got the CC to the group wrong in the previos massage, I'm forwarding the
message to the list separately - sorry.

> -----Original Message-----
> From: Josifovski Ljubomir-BLJ01Z 
> Sent: 14 December 2000 15:38
> To: 'Patrick Doyle'
> Cc: 'cygwin@sourceware.cygwin.com'
> Subject: RE: Q: apache: logresolve.c: undefined reference to `h_errno'
> 
> 
> 
> Thanks.
> 
> In the end I commented out 
> 
> //#ifndef h_errno
> //extern int h_errno; /* some machines don't have this in 
> their headers */
> //#endif
> 
> in apache_1.3.9-cygwin/src/support/logresolve.c, hoping that 
> althoug h_errno might not be #defined, it's declared 
> somewhere in the headers, and whatever function uses it 
> includes the proper header. (I also see 
> 
> /usr/include/w32api/winsock.h:#define h_errno WSAGetLastError()
> 
> - maybe that does it...)
> 
> That helped and httpd linked ok.
> 
> Another hitch I got was on make install (in case someone else 
> is making apache) - apache's install.sh got picked up on make 
> install, and it doesn't know about .exe extesnion, so, no 
> binaries are installed. I did
> 
> #INSTALL         = $(TOP)/$(AUX)/install.sh -c
> INSTALL         = /usr/bin/install
> 
> in the apache_1.3.9-cygwin/Makefile.
> 
> cheers,
> 
> -- 
> Ljubomir Josifovski
> mailto:L.Josifovski@dcs.shef.ac.uk,blj01z@email.mot.com
> http://www.dcs.shef.ac.uk/~ljupco
> 
> 
> > -----Original Message-----
> > From: Patrick Doyle [mailto:wpd@delcomsys.com]
> > Sent: 14 December 2000 15:10
> > To: Josifovski Ljubomir-BLJ01Z
> > Cc: 'cygwin@sourceware.cygnus.com'
> > Subject: Re: Q: apache: logresolve.c: undefined reference 
> to `h_errno'
> > 
> > 
> > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]