From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27974 invoked by alias); 28 Nov 2016 19:53:20 -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 27930 invoked by uid 89); 28 Nov 2016 19:53:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=BAYES_50,FAKE_REPLY_C,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Education, school, bear, School X-HELO: elasmtp-kukur.atl.sa.earthlink.net Received: from elasmtp-kukur.atl.sa.earthlink.net (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Nov 2016 19:53:09 +0000 Received: from [173.164.243.238] (helo=fedora.localdomain) by elasmtp-kukur.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1cBRz2-00073t-Rx for cygwin@cygwin.com; Mon, 28 Nov 2016 14:53:00 -0500 Received: by fedora.localdomain (Postfix, from userid 510) id 38819409FE; Mon, 28 Nov 2016 11:53:00 -0800 (PST) Date: Tue, 29 Nov 2016 00:01:00 -0000 From: Stephen Paul Carrier To: cygwin@cygwin.com Subject: Re: python 2.7.12 pip install with extensions fails with warning: "__BSD_VISIBLE" redefined Message-ID: <20161128195259.GA2570@fedora.wp.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-ELNK-Trace: ac59ebca7c9aed3bd4c20f6b8d69d888b92c5f0aecc81b51203e467fcb1706c6eceb4c60bce85257350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00314.txt.bz2 >> 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 This seemed like the right thing to do since Cygwin isn't FreeBSD, and the problem went away. Is this an oversight in python-devel package? Issue doesn't occur in 32-bit version. Stephen Carrier Systems Administrator BEAR (Berkeley Evaluation & Assessment Research) Center Graduate School of Education University of California, Berkeley http://BEARcenter.Berkeley.EDU/ -- 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