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=FC1pZJ6j6g90U5RB rb/EroGRBG/ziQ1lsE7BTkf3xR/UFtNNJK1eOskgO1JEtkTHfi29Ua9hOo46yeYK /L199NGArKcnX06ksnIx3Dd5RDAzLwumruVgQnGKn/ejY0AZcLBiPAbOw2FqfKyz pPefsQ3SvH+nkTRfvDxwgEr+qCU= 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=m4a85WoJaTXHCjUVG1DSTB Xnzj4=; b=oEuRYsvN4MSbjL92SvfWF/AyA9GsYYDJAxBqUNegWdAvUCbMJfg6fI bPuxfwOgKzJm1VwMXmYG8BbixfDV24OjyVwQHODTxXRhi8DZjcat9mnPmfZqXteg reFLqAGVtG4BURC4+zBwKnzk4UTRxpkbre/fUlbh3evk3dux1gBCg= 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=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=deeper, cyg, H*r:ip*192.168.0.6, highly X-HELO: mail-io0-f179.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=/lvYR21CbA+ZpxAMY12uqRNbkrznqNq/JguAJx646xM=; b=Tw7DZQA73x215JST2HzGg5CxQF+5fn5uN0svAW85MafasanTOfuMu02vPFZiCQvrXf 8i+5oL03zpKEJtNRs2ZMPx+lk1KDxrwmgdSyxik0/GKbkVCI4Wquf8w1yQzfRdNPyRah yITPCe4lGxECZm1jU0LOiX9nAQOMZRnDflA6ArNbCUeoQLekaQ/TU4SNcre0ZLdN7XCS hDD5eVl8ckatrKIZnZvbhekfgX1Ms8wnECs1nIU9exUK0O4ckRaV5crKCmmXlZ0YJcpn 7E0zHUXa+ERDjYkizK6fYCY3aRMeGhlW3m87txRFRgvU9IzMAwON134eYl3w3b02Jq+7 dhtQ== X-Gm-Message-State: AKaTC03UlKL/t25d3p9hGmyKXo+uDPmHRS9DGRZIPLhPjKQ8c0NWQ+guM2LDunieOXStQQ== X-Received: by 10.107.192.194 with SMTP id q185mr19604411iof.129.1480372905264; Mon, 28 Nov 2016 14:41:45 -0800 (PST) Subject: Re: python 2.7.12 pip install with extensions fails with warning: "__BSD_VISIBLE" redefined To: cygwin AT cygwin DOT com References: <20161128195259 DOT GA2570 AT fedora DOT wp DOT comcast DOT net> From: cyg Simple Message-ID: Date: Mon, 28 Nov 2016 17:41:28 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161128195259.GA2570@fedora.wp.comcast.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 11/28/2016 2:53 PM, Stephen Paul Carrier wrote: >>> Hi - >>> >>> The newest version of cygwin with python 2.7.12-1 fails when pip >>> installing packages that require compilation. For example, pycrypto >>> fails: >> >> FWIW this patch to pycrypto also fixes it: >> >> https://git.sagemath.org/sage.git/tree/build/pkgs/pycrypto/patches/cygwin/disable-std-c99.patch?id=aaa9b7fc887b64ba1dba7cba16061f598a097b75 >> >> The problem only occurs when trying to build with the C99 standard if >> Python itself was not. > > I fixed this issue by editing /usr/include/python2.7/pyconfig.h to comment > out the second line of: > > /* Define on FreeBSD to activate all library features */ > #define __BSD_VISIBLE 1 > The use of a __PRIVATE_DEFINE is highly discouraged. In sys/features.h you'll find a comment to that effect. Python should have used _BSD_SOURCE but even that is deprecated in favor of _DEFAULT_SOURCE. > This seemed like the right thing to do since Cygwin isn't FreeBSD, and > the problem went away. > No but that doesn't mean the functions do not exist. > Is this an oversight in python-devel package? Issue doesn't occur in > 32-bit version. > The oversight would be the use of the private define instead of the public one. If you remove the __BSD_VISIBLE and use _DEFAULT_SOURCE instead does it help? If not then there is a deeper issue. -- cyg Simple -- 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