delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/08/22:20:58

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:resent-from:resent-date:resent-message-id
:resent-to:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=iZW
iJtIKel8rxVt0O9WCdF9A+s6queu4ftvXT8/ge4wkbwpQiBZa6nyrED6nUqLFJTT
2fiCgAoQEoBNbxKn8rdWCnqjuAJzri5UPzTGw7+hgt9v33KZpsAw78MTS2r8zCtd
E4P3E7eAotlVXdRFlbdIokuzOLxp9NcI/Yjjbduc=
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:resent-from:resent-date:resent-message-id
:resent-to:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=XUt1Lo/U6
tkE0cdRd8664eCBbsg=; b=paDZustaQv1KO80fDVnlkdsWeRTm5kTKAMiM2kSrO
HSRjlhkB1ps2WfQX9CsAinXO3aOZbAr+R5dAvarzYJbPvQTh0JHdRGQgcoxf9YSS
bofAmpoO2ey5rOxdwhzw4LfuKeNqqU73mLpz8T5VJKOZqnNn6vcey2uJzNTOxQOx
Vs=
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: Yes, score=5.6 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: csmailer.cs.nctu.edu.tw
Resent-From: =?UTF-8?B?s6+ts6X0?= Wei-Jen Chen <chenwj AT cs DOT nctu DOT edu DOT tw>
Resent-Date: Tue, 9 Dec 2014 11:20:01 +0800
Resent-Message-ID: <20141209032001 DOT GA88514 AT cs DOT nctu DOT edu DOT tw>
Resent-To: cygwin AT cygwin DOT com
Date: Tue, 9 Dec 2014 10:48:24 +0800
From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= <chenwj DOT cs97g AT nctu DOT edu DOT tw>
To: cygwin AT cygwin DOT com
Subject: Question about using MinGW GCC on Cygwin
Message-ID: <20141209024824.GA81841@cs.nctu.edu.tw>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sB93KsQx025336

Hi All,

  I am trying to build gdbserver [1] on cygwin with mingw-gcc, since
I want to build native windows executable and cygwin-gcc doesn't
support "-mno-cygwin" any more. Here is how I do the config,

$ cd gdb-7.8.1/gdb/gdbserver
$ CC=i686-pc-mingw32-gcc ./configure

After `make`, I get the error message below,

--------
i686-pc-mingw32-gcc -g -O2    -I. -I. -I./../common -I./../regformats -I./.. -I./../../include -I./../gnulib/import
-Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
-DGDBSERVER -c -o remote-utils.o -MT remote-utils.o -MMD -MP -MF .deps/remote-utils.Tpo remote-utils.c
remote-utils.c: In function 'handle_accept_event':
remote-utils.c:161:22: error: storage size of 'sockaddr' isn't known
--------

It seems that mingw-gcc fails to find struct sockaddr due to the
incorrect include search path. What am I missing here, or should
I fall back to use MingGW instead?

Thanks. :-) 


[1] http://www.gnu.org/software/gdb/

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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