This is the mail archive of the cygwin@sourceware.cygnus.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]

RE: Strange problem trying to compile tcpd


-----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@snoopy.vinschen.de [mailto:corinna@snoopy.vinschen.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]