From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16842 invoked by alias); 24 Aug 2016 18:20:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 16809 invoked by uid 89); 24 Aug 2016 18:20:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HX-HELO:sk:mailout, H*M:online X-HELO: mailout11.t-online.de Received: from mailout11.t-online.de (HELO mailout11.t-online.de) (194.25.134.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 Aug 2016 18:20:18 +0000 Received: from fwd36.aul.t-online.de (fwd36.aul.t-online.de [172.20.26.137]) by mailout11.t-online.de (Postfix) with SMTP id BB0A1425193E for ; Wed, 24 Aug 2016 20:20:15 +0200 (CEST) Received: from [192.168.2.28] (XGLlzmZpohWYnMlIx-xYL0EK1uS4Q3kPCqw3MJAHgrEsYZEjki2Cz+1D1bH40-WQwx@[91.59.23.177]) by fwd36.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1bccmd-19TcBs0; Wed, 24 Aug 2016 20:20:15 +0200 Subject: Re: Native build fails in winsup/cygwin/libc/strptime.cc because of strtou?l_l() To: cygwin@cygwin.com References: <930c2619-1e9e-7275-c245-0a8c4bd92e6c@t-online.de> <20160824082813.GB1493@calimero.vinschen.de> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: <929a5346-a4e1-99f0-fe63-5c1bca7cdd30@t-online.de> Date: Wed, 24 Aug 2016 18:39:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160824082813.GB1493@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00465.txt.bz2 Am 24.08.2016 um 10:28 schrieb Corinna Vinschen: > On Aug 24 00:19, Hans-Bernhard Bröker wrote: >> Hello everyone, >> >> building the git version of cygwin natively on Cygwin-2.5.3, I'm running >> into a problem with strtoul_l / strtol_l. winsup/cygwin/libc/strptime.cc >> fails to build: >> [...] >> >> Looking at the .ii file, it appears __GNU_VISIBLE is not active for this C++ >> source file? > > Yes, we discussed this already yesterday on the Freenode #cygwin-developers > IRC channel. The reason is that sys/cdefs.h is included before winsup.h > is included, the latter defining _GNU_SOURCE. Ah, yes. That would do it. The build does indeed work now, with the fix in git. Thanks. [...] > That's pretty weird since _GNU_SOURCE is not supposed to be defined > by the compiler or C preprocessor at all. Well, it could be the specs file "contributing" it... -- 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