From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129214 invoked by alias); 16 Jan 2016 18:16:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 129195 invoked by uid 89); 16 Jan 2016 18:16:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1484, H*r:98.138.105, HX-Yahoo-Newman-Property:ymail-3, downloading X-HELO: nm23-vm5.bullet.mail.ne1.yahoo.com Received: from nm23-vm5.bullet.mail.ne1.yahoo.com (HELO nm23-vm5.bullet.mail.ne1.yahoo.com) (98.138.91.245) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 16 Jan 2016 18:16:17 +0000 Received: from [98.138.100.115] by nm23.bullet.mail.ne1.yahoo.com with NNFMP; 16 Jan 2016 18:16:15 -0000 Received: from [98.138.226.169] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 16 Jan 2016 18:16:15 -0000 Received: from [127.0.0.1] by omp1070.mail.ne1.yahoo.com with NNFMP; 16 Jan 2016 18:16:15 -0000 Received: by 98.138.105.200; Sat, 16 Jan 2016 18:16:15 +0000 Date: Sat, 16 Jan 2016 20:00:00 -0000 From: Glen L Reply-To: Glen L To: "cygwin@cygwin.com" Message-ID: <1645435954.1234364.1452968175143.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <956984971.4908269.1452966941574.JavaMail.yahoo@mail.yahoo.com> References: <956984971.4908269.1452966941574.JavaMail.yahoo.ref@mail.yahoo.com> <956984971.4908269.1452966941574.JavaMail.yahoo@mail.yahoo.com> Subject: Need tips to open a socket and to debug it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00202.txt.bz2 Greetings all, I'm moving a "C" program to 64-bit Windows 10 that worked previously in 32-bit Win7. It builds, compiles and runs (AFAIK) with the exception of being able to open a socket. Calling the socket thusly: if ((g->listen = socket(PF_LOCAL, SOCK_STREAM, 0)) < 0) { fprintf(stderr, "Can't create socket: %d %s", (int) errno, strerror(errno)); return -1; } The code is built for 64-bit windows using this: x86_64-pc-cygwin-gcc -g --std=gnu99 -O0 -DGLUT_DISABLE_ATEXIT_HACK -nostdinc -march=core2 -m64 The result, however, is ENOENT and "No such file or directory." uname -a : CYGWIN_NT-10.0 LAPTOP-B8KN061R 2.4.0(0.293/5/3) 2016-01-15 16:16 x86_64 Cygwin I've tried a few things with the firewall and looked for internet tips. No luck, clearly. So, I had the idea to step into the socket call and see what's going on. ENOENT seems a bit weird. I'm using Eclipse and gdb for this and it's working fine, with source, for the application. I can step around the machine code for the cygwin calls but no source. I've tried downloading the source files and debug info but I'm perplexed as to making that work. I don't seem to be finding the source files by hand that look like the machine code. Can someone point me to a good reference on how to debug the distributed cygwin libraries? I would seem to be supported but I'm just not getting how to point to the sources and debug info from gdb. Thanks for any and all support. Glen -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple