X-Spam-Check-By: sourceware.org Message-ID: From: Bas van Gompel Subject: Re: Call for testing Cygwin snapshot References: <20051202104049 DOT GN2999 AT calimero DOT vinschen DOT de> Reply-To: cygwin mailing-list Organisation: Ehm... User-Agent: slrn/0.9.8.1 (Win32) Hamster/2.0.7.0 KorrNews/4.2 To: cygwin AT cygwin DOT com In-Reply-To: <20051202104049.GN2999@calimero.vinschen.de> Lines: 77 Date: Fri, 2 Dec 2005 23:25:21 +0100 (MET) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Op Fri, 2 Dec 2005 11:40:49 +0100 schreef Corinna Vinschen in <20051202104049.GN2999calimero.vinschen.de>: : On Dec 2 01:27, Bas van Gompel wrote: [gethostbyname on w95] : > if (gethostbyname ("localhost")) : > puts ("Could get host by name (localhost)"); : > else : > perror ("Could NOT get host by name (localhost)"); : : errno isn't meaningful after a call to gethostbyname, you should look at : h_errno instead: Ah. : fprintf (stderr, "Could NOT get host by name (localhost): %d <%s>\n", : h_errno, hstrerror (h_errno)); : : Would result in: : : Could NOT get host by name (localhost): herrno: 1 ``Could NOT get host by name (localhost): 1 '' Yes, so it does. [...] : I have no w95, only w98 SE. Works for me: : : $ ./tghbn : Could get a host by name (localhost) No surprises there... : The difference between the snapshot and 1.5.18 is that we dropped : winsock 1 support entirely, and that we now load the symbols from : ws2_32.dll instead of from wsock32.dll. Maybe there's a bug in w95's : WinSock2 implementation? I don't know. I don't see anything in : Microsoft's KB. However, does it work for no hostname or just for : localhost? If only for localhost, what happens if you add a matching : entry to C:/WINDOWS/HOSTS: : : 127.0.0.1 localhost Any host. (That line is already in my hosts-file.) [...] : > 1191806 1834791 [main] tghbn 758909 __set_errno: void __set_winsock_errno(const char*, int):278 val 1 : > 997 1835788 [main] tghbn 758909 __set_winsock_errno: __dup_ent:378 - winsock error 11001 -> errno 1 : : Winsock error 11001: "No such host". : : Hmm. Are you set up to build your own Cygwin DLL? If so, could you : try if it suddenly works again (remove the above entry from the hosts : file first, don't change anything else!), if you make this change: : : Index: autoload.cc I just tried it. It doesn't help. Oh, I just found a build of September 15, and it shows the failure, so the change should be somewhere between Sep 2 and then. Also: Did you notice it works when invoked from strace or DOS command? Could this have to do with env-vars? Any other things I should try/report? L8r, Buzz. -- ) | | ---/ ---/ Yes, this | This message consists of true | I do not -- | | / / really is | and false bits entirely. | mail for ) | | / / a 72 by 4 +-------------------------------+ any1 but -- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/