delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/03/08:27:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Prentis Brooks" <prentis AT aol DOT net>
To: "cygwin" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Strange problem trying to compile tcpd
Date: Wed, 3 May 2000 09:29:16 -0400
Message-ID: <BHEDKMMIDAOJJAGBAGOKEEEKCAAA.prentis@aol.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <39102613.639DE141@vinschen.de>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Importance: Normal

-----BEGIN PGP SIGNED MESSAGE-----

Cool... percent_m.c does use an extern call, I will try that...

btw, does someone have a working inetd.conf that I can look at?  one
does not ship on the CD and my only other refs are Solaris :)

- -----Original Message-----
From: corinna AT snoopy DOT vinschen DOT de [mailto:corinna AT snoopy DOT vinschen DOT de]On
Behalf Of Corinna Vinschen
Sent: Wednesday, May 03, 2000 9:14 AM
To: Prentis Brooks
Cc: cygwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> [...]
> Ok... that is not it... percent_m.c does include <errno.h>
> 
> I have a feeling that for some reason the error is occurring in the
> library.  The real frustrating part is that I got this work on b20,
> but inadvertently deleted my source in a system rebuild.  Anyone got
> any other ideas?

Did you search for extern declarations of sys_nerr and sys_errlist?
Some programs do a

	extern int sys_nerr;
	extern char *sys_errlist[]

which is wrong for Cygwin.

You'll have to do sth like that:

#ifdef __CYGWIN__
#  define sys_nerr _sys_nerr
#  define sys_errlist _sys_errlist
#else
   extern int sys_nerr;
   extern char *sys_errlist[]
#endif

Corinna

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORApmkXi2H7R/ZSxAQFgVAgAlfh3EqS+XdWJQ7oZUErQMw/ZKqHQdbus
7IQk9rB5xvb90gbDIh9odnvyWrGzASjbuxPxwU2xSVBSxB7ItcBNgcSfZaLsdpfP
F7OLkDq7T4h4ccbZJQUZ4pu+fCfbLgkMyTml+MYEaNKqYjHPbJuBoHoLpz43PQAL
yYCwKlMDDx8U63fSBJNybMeaYWYwtHayZwhEwHaeYGTQbMA0ME5jAxR/f3xgQX2S
TxHCaQJ4lJmlUbgCs0wJeoc2f9j8taKC+vSAkSjlDGd8vR3c4NPjb/5lOdlBEHeG
1bKNMQ7JPJadhlKn6FwBhLdPjY1Z5yZyu3FEv2AqlKkP4N0rIvSrng==
=EvLM
-----END PGP SIGNATURE-----


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