delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/16/13:16:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
:references:subject:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=JBVAiYxLmrHg3hMS
o7/qMfu4QKNeuMr5ymoPZQkFRR763AVtIhB0bFAOTTZ+WHakMXKfrPoIM9KoJQLW
x921fcfTUv2qu7WTnCw+7GWSfPiS4P03O9s3XZVUoA5u8dLfTupYDgShoKHVMv4u
a1ezFg8n2rMhhKHEWG4l5rwlMhQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
:references:subject:mime-version:content-type
:content-transfer-encoding; s=default; bh=YW2/Pi7Xa+Aq71s3TYKBqn
YjEI4=; b=O56qooIO4L1YTU2nwGID3cj+vrDZCviHSNasCTCYfYqk158vKPIlrC
oi4IGAgTNzoKmePy5PN/eCkLofzG6ufrKCMFvBu2NvUGWV40eage6wk5pIoQMbce
V/LlMd1kbwQV9Mu7u3xOEXSkrX87ZOyk39+kF70D9s9FNoFfm7Mec=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Sat, 16 Jan 2016 18:16:15 +0000 (UTC)
From: Glen L <ambirgris AT yahoo DOT com>
Reply-To: Glen L <ambirgris AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1645435954.1234364.1452968175143.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <956984971.4908269.1452966941574.JavaMail.yahoo@mail.yahoo.com>
References: <956984971 DOT 4908269 DOT 1452966941574 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT com> <956984971 DOT 4908269 DOT 1452966941574 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com>
Subject: Need tips to open a socket and to debug it
MIME-Version: 1.0

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

- Raw text -


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