Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Josifovski Ljubomir-BLJ01Z To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: FW: Q: apache: logresolve.c: undefined reference to `h_errno' Date: Thu, 14 Dec 2000 15:40:35 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain 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 AT sourceware DOT cygwin DOT 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 DOT Josifovski AT dcs DOT shef DOT ac DOT uk,blj01z AT email DOT mot DOT com > http://www.dcs.shef.ac.uk/~ljupco > > > > -----Original Message----- > > From: Patrick Doyle [mailto:wpd AT delcomsys DOT com] > > Sent: 14 December 2000 15:10 > > To: Josifovski Ljubomir-BLJ01Z > > Cc: 'cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com