delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/14/09:50:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <D1F0002F0A8FD411ACEC00805FE675CE260E7C@zuk02exm02.comm.mot.com>
From: Josifovski Ljubomir-BLJ01Z
<Ljubomir_Josifovski-BLJ01Z AT email DOT mot DOT com>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Q: apache: logresolve.c: undefined reference to `h_errno'
Date: Thu, 14 Dec 2000 14:47:33 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

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 AT 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 AT 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 DOT Josifovski AT dcs DOT shef DOT ac DOT uk,blj01z AT email DOT mot DOT com
http://www.dcs.shef.ac.uk/~ljupco


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019