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]

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



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

Mine libcygwin.a has:

sysop@ZUK02-0544 ~/apache_1.3.9-cygwin
$ nm /usr/lib/libcygwin.a |grep h_errno
00000000 I __imp__h_errno

and the lines in netdb.h are

#ifdef  __INSIDE_CYGWIN_NET__
extern int h_errno;
#else
extern __declspec(dllimport) int h_errno;
#endif

I see that

sysop@ZUK02-0544 ~/apache_1.3.9-cygwin
$ nm src/support/logresolve.o | grep h_errno
         U _h_errno

and 

$ nm /usr/lib/libcygwin.a | grep h_errno
00000000 I __imp__h_errno

Or better, does anyone know of a simple and easy httpd (I don't need
anything but simple files-via-http service - no cgi or php or anything
else)?

thanks in advance,
Ljubomir

-- 
Ljubomir Josifovski
mailto:L.Josifovski@dcs.shef.ac.uk,blj01z@email.mot.com
http://www.dcs.shef.ac.uk/~ljupco


--
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]