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:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; q=dns; s=default; b=PqL aDewomyBpRZ7ghHaC/tvhybk7ygU0Y9YJaklX1FqQVxnETQkC8KwjkLqvAztyP3t xx0OPoLTEyCxYbh1jxXlUq09Tb0MmD77guz/kuyoe4PSzrOPOCQlrQt/KEByp4Xt MPYjtV4N+dGomel9nv8Oov5XQVQC9wI9L3wz+Q9c= 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:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; s=default; bh=vLtjIzGkj sqazEXWUglbJVf0Goc=; b=lFPRz8J4Sf9bq47WE1pyNsTsnR3lpyhfULy+zajJj p/YvJoTSxpF6YWEFa55GwuFzdXwvKLT7hLQk2W1f+Xah7WnsZxNzUfuu/MqOVnds 6KSGcG6g/TNZpcnonm/i4PvgIXPZHFrSt4gtE2rN/+rcvnJ4KJAYFrF6YGBKcd1j bA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*c:alternative, creep, 749 X-HELO: mail-it0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=keOpC1m0yERrnh7eV7XKBCfFshzM2fj72Uz4XqHUvKk=; b=lHhGcs2wB71YkG2nH4kXNSTPg0zjkSZ1zhnL9dhiBWaLwubFlmP58jExu8C7MdWh4k todzfYVztMCPM5YMyOw83zZHQdnbEs+OTXxXMUuyGnudr2Hqn/R/FV6nEgpY4VS45tVI px9AUsuZ3LWj2DodFD6pIJfm1amqbixPRNhmpQ7F1IsuM6zDpq7XYhuyDRvYsbPn6k5S Y05O4fvICdCrSqITyleFOXVcx3eqtqYlLNFwomqlLFFA6mXhnFPEj3A1mfwoqHCH7RIm YVsygvL0cK84lLJGIMAQncfw6iYTSq9HBD6VGxwYjehVrpppSkXw+MIhzXQq0du6ygJt 3vWg== X-Gm-Message-State: AHPjjUh5Dks5BWVJEM24AWG0P92bRH2yNl+cpvRr6/2MQrCMxr+mz3aR ZHpCnAhvlmf2632oaWoNiXAGkj2dTnq1QOvLASNKF/y+ X-Google-Smtp-Source: AOwi7QBktBROISvc5hk5EvWaeHqws9jlE/sUtkPcUYt1xh4UxVFMqPCkLFmA4H43TJIeEE9Lzrib5UCMkz6K6ZbOB3s= X-Received: by 10.36.48.80 with SMTP id q77mr3464474itq.65.1506390106650; Mon, 25 Sep 2017 18:41:46 -0700 (PDT) MIME-Version: 1.0 From: Ian Fette Date: Mon, 25 Sep 2017 21:41:46 -0400 Message-ID: Subject: GCC-6.4 sys/select.h build failures with std=c++14 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v8Q1g0qG006951 I tried compiling a very simple program with curl using -std=c++14 under 64-bit cygwin with gcc 6.4.0. When compiling with just g++ main.cpp -lcurl everything is fine, however if I try to use c++14 as the dialect (g++ main.cpp -lcurl -std=c++14) familiar problems creep up In file included from /usr/include/curl/curl.h:2547:0, from main.cpp:10: /usr/include/curl/multi.h:155:40: error: ‘fd_set’ has not been declared fd_set *read_fd_set, ^~~~~~ /usr/include/curl/multi.h:156:40: error: ‘fd_set’ has not been declared fd_set *write_fd_set, ^~~~~~ /usr/include/curl/multi.h:157:40: error: ‘fd_set’ has not been declared fd_set *exc_fd_set, ^~~~~~ This is resolved by manually including before including This was discussed in the curl project in the past ( https://github.com/curl/curl/issues/749) where it was determined that it was caused by a cygwin bug which was addressed in https://cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/libc/include/sys/types.h;h=c9f0fc7f3a9ca420c2372c9af42ce2a0e63e3b1c;hb=ee97c4b22491b205fd3b7697e03c909e02b652d3 If anyone has thoughts, I'd greatly appreciate it. Compiling the following is sufficient to reproduce. #include #include using namespace std; int main() { CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_cleanup(curl); } } -- 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