From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id D34F23858D33 for ; Tue, 7 Feb 2023 04:46:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D34F23858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu Received: from [10.28.64.244] (unknown [150.203.68.81]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 571C0401D747; Mon, 6 Feb 2023 23:46:34 -0500 (EST) Message-ID: <72efd3b6-e7ab-d45d-d153-4fe410e2d7ab@cs.umass.edu> Date: Tue, 7 Feb 2023 15:46:32 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Reply-To: moss@cs.umass.edu Subject: Re: [FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin Content-Language: en-US To: Yeo Kai Wei , gs-cygwin.com@gluelogic.com Cc: cygwin@cygwin.com References: <36f2d54f-8515-42fb-e64c-86e348b8e902@cs.umass.edu> From: Eliot Moss In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,BODY_8BITS,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/7/2023 3:28 PM, Yeo Kai Wei wrote: > > On 7/2/2023 9:54 am, Eliot Moss wrote: >> On 2/7/2023 11:34 AM, Yeo Kai Wei wrote: >>> >>> On 7/2/2023 7:27 am, Eliot Moss wrote: >>>> On 2/7/2023 10:03 AM, Yeo Kai Wei via Cygwin wrote: >>>>> >>>>> On 7/2/2023 4:59 am, gs-cygwin.com@gluelogic.com wrote: >>>>>> On Tue, Feb 07, 2023 at 04:33:53AM +0800, Yeo Kai Wei wrote: >>>> >>>>> I updated Cygwin to 3.4.5-1.x86_64. >>>>> >>>>> $ uname -a >>>>> CYGWIN_NT-10.0-19045 DESKTOP-P3E71RB 3.4.5-1.x86_64 2023-01-19 19:09 UTC x86_64 Cygwin >>>>> >>>>> >>>>> However, the same problem occurs. >>>>> >>>>> Cygwn-devel doesn't seem to work. >>>>> >>>>> $ gcc -o selectStdIn selectStdIn.c >>>>> selectStdIn.c:9:10: fatal error: sys/select.h: No such file or directory >>>>>   #include >>>>>            ^~~~~~~~~~~~~~ >>>>> compilation terminated. >>>> >>>> Well, on my system cygcheck -f /usr/include/sys/select.h clearly says >>>> that the file came from cygwin-devel-3.4.3-1.  Maybe you misspelled >>>> cygwin-devel ?  You do have to select the package explicitly, too. >>>> >>>> EM >>> >>> >>> Hi Eliot, >>> >>> I just reinstalled Cygwin but I'm unsure of what I missed. >>> >>> I did "cygcheck -f /usr/include/sys/select.h" and it seems to tell me that I do have >>> cygwin-devel-3.4.5-1 >>> >>> Did I miss a step? >> >> What gcc are you running?  Maybe not cygwin's? >> >> EM > > > Hi Eliot, > > I think I'm running MinGW's gcc. > > I typed in "gcc --version" and this is what Cygwin returned. > > $ gcc --version > gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0 > Copyright (C) 2018 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > What should I do next? Install the relevant gcc and program building packages. But I think you're reaching the limit of the handholding the community may be prepared to offer ... Also, you never said what you're *really* trying to accomplish. EM