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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=MnsYOV3qzqOiUTNk TCCOcRmq9vYmxzCSRIMP4dEt/xC9HASKVQ79TEWPLuWbvs/OX7AIOAEikvdRt0As z2iY5TYLma/VPFLQw1IOAWLU3Z7CELZbmYGRgJvmbfLZLiocNXgEeC8yHnkLNBbn RSRV5wXc2H/0ll2BMELwwoyaHSI= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=GrUC/kyxi3lHA78WDDQGQy q0pRY=; b=fRwtBK6LRHLFDY0iwGfPoZPF6a5lUcROur+eHaI0fgN6zkj3MKttEo KXVrTHRwKkMkj4wD8qVWqz7rNHUd76UMzuW1nxIdwiCJVydgUS3+V5QPpHV187ze yMT8o6ylWFa3nCfuSMl/EUuJCtuULtxSBPveViY3iK0EU6A4T+FcY= 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: =?ISO-8859-1?Q?No, score=1.1 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy==d0=b8=d0=b9, =d0=bc=d0=b8=d1, tcp, UD:io_service.hpp?= X-HELO: mail-qk0-f170.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=DWkHELILo5A3zkQrbdtWk9OM02D4Nae3kL+nhFlpa3I=; b=JAzMEI2E+0gpMaTQHuqi8UETlB4CXXXKnebkZrYJe7rEGgrKNBXFaPft9z+g0PRP5U sAn1tv9YiIKWPSuewHjo5GxSqbdKNUoNm/qM8AkcGWO1RkAHV6l+qUqxs/fN1bGr4w4D VlZ2a8Pu8Q+rHP4JWG4PYJycE6ITeNJPorxDI+sjABh/uGH+uiwb2y6AWQgayx4JnVvV 96fv6ZR/RwtbgYbOjddsksi+/JXPwT6uuWdfeMGLlsvhA2xFc31T/mk2LgkmPoOeg6AK hu+/0m9giiDGg34R0bSJPIxcJ2oev3IceRSH7jzBv/HdXbmQsbP4rQqZiomttO30IcU4 w7cQ== X-Gm-Message-State: AOPr4FUknu9Ei58C5JyYfjGJgiFyCj1pYHatVcgGfq/fSe4geKaURycvFhvNkct8KQnF9A== X-Received: by 10.55.5.23 with SMTP id 23mr18612076qkf.46.1461230470410; Thu, 21 Apr 2016 02:21:10 -0700 (PDT) Subject: Re: g++ don't build my project from last update To: cygwin AT cygwin DOT com References: <1461227815 DOT 667215524 AT f430 DOT i DOT mail DOT ru> From: Marco Atzeri Message-ID: <531977b9-fd8b-90bb-74ce-c2919ce62034@gmail.com> Date: Thu, 21 Apr 2016 11:21:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1461227815.667215524@f430.i.mail.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Note-from-DJ: This may be spam On 21/04/2016 10:36, Дмитрий Марков wrote: > Hello, > I updated my cygwin yesterday, because I found strange bug when using boost::asio::ip::tcp::socket for sending some text information(some information became broken). I haven't got such bug under my Linux OS, so I decide upgrade the cygwin. > After successful updating of cygwin I can't build my project. The cygwin header has been recently update and reshuffled. > The first error of compiler is: > > In file included from /usr/include/boost/thread/thread_time.hpp:10:0, > from /usr/include/boost/thread/lock_types.hpp:18, > from /usr/include/boost/thread/pthread/thread_data.hpp:12, > from /usr/include/boost/thread/thread_only.hpp:17, > from /usr/include/boost/thread/thread.hpp:12, > from ../src/DoubleChannelCalculations.hpp:21, > from ../src/DoubleChannelCalculations.cpp:14: > /usr/include/boost/date_time/microsec_time_clock.hpp: In static member function 'static time_type boost::date_time::microsec_clock::create_time(boost::date_time::microsec_clock::time_converter)': > /usr/include/boost/date_time/microsec_time_clock.hpp:84:26: error: there are no arguments to 'gettimeofday' that depend on a template parameter, so a declaration of 'gettimeofday' must be available [-fpermissive] > gettimeofday(&tv, 0); //gettimeofday does not support TZ adjust on Linux. The definition is in /usr/include/sys/time.h protected by #if __MISC_VISIBLE || __XSI_VISIBLE > The second error message: > /usr/include/boost/date_time/microsec_time_clock.hpp:84:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) > In file included from /usr/include/boost/asio/detail/signal_blocker.hpp:25:0, > from /usr/include/boost/asio/detail/impl/select_reactor.ipp:29, > from /usr/include/boost/asio/detail/select_reactor.hpp:212, > from /usr/include/boost/asio/detail/reactor.hpp:29, > from /usr/include/boost/asio/detail/impl/task_io_service.ipp:24, > from /usr/include/boost/asio/detail/task_io_service.hpp:198, > from /usr/include/boost/asio/impl/io_service.hpp:71, > from /usr/include/boost/asio/io_service.hpp:767, > from ../src/PrintPlots.hpp:17, > from ../src/DoubleChannelCalculations.cpp:19: > /usr/include/boost/asio/detail/posix_signal_blocker.hpp: In constructor 'boost::asio::detail::posix_signal_blocker::posix_signal_blocker()': > /usr/include/boost/asio/detail/posix_signal_blocker.hpp:42:25: error: 'sigfillset' was not declared in this scope > sigfillset(&new_mask); in /usr/include/sys/signal.h protected by #if __BSD_VISIBLE || __XSI_VISIBLE >= 4 > I have tried to use -fpermissive, but it's not help me. I also have tried to add define _GNU_SOURCE, _POSIX_C_SOURCE=200809L, _XOPEN_SOURCE=700. If I define _GNU_SOURCE or _XOPEN_SOURCE=700 the project build successful, but it's not work, because boost::asio::ip::tcp::socket raise exception that socket.available() is not supported(but it was). > I also try full reinstall of cygwin, but it's not help. I attached output of command "cygcheck -s -v -r". > > What it may be the problem and how I may resolve it? > try using __XSI_VISIBLE=4 -- 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