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

Josifovski Ljubomir-BLJ01Z Ljubomir_Josifovski-BLJ01Z@email.mot.com
Thu Dec 14 06:47:00 GMT 2000

I'm trying to compile apache from


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


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

extern int h_errno;
extern __declspec(dllimport) int h_errno;

I see that

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


$ 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

thanks in advance,

Ljubomir Josifovski

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

More information about the Cygwin mailing list