From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 697 invoked by alias); 28 Nov 2016 22:41:58 -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 669 invoked by uid 89); 28 Nov 2016 22:41:57 -0000 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 Received: from mail-io0-f179.google.com (HELO mail-io0-f179.google.com) (209.85.223.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Nov 2016 22:41:47 +0000 Received: by mail-io0-f179.google.com with SMTP id c21so247079314ioj.1 for ; Mon, 28 Nov 2016 14:41:47 -0800 (PST) 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) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id e35sm20596458iod.32.2016.11.28.14.41.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 14:41:44 -0800 (PST) Subject: Re: python 2.7.12 pip install with extensions fails with warning: "__BSD_VISIBLE" redefined To: cygwin@cygwin.com References: <20161128195259.GA2570@fedora.wp.comcast.net> From: cyg Simple Message-ID: Date: Tue, 29 Nov 2016 11:50:00 -0000 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 X-SW-Source: 2016-11/txt/msg00317.txt.bz2 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