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:date:from:to:subject:message-id:mime-version :content-type:in-reply-to; q=dns; s=default; b=jC0+w5F6Hk158k/y1 5iSBafigNcNGJIJLRwiWuFlpsmcIsJ3afVbIAnRGwQRvYMiob+kYkxxx56XJvWEb gpR2rUwRG/WSAZwa8cL1OA5AqoOXHoUvGT9T8zx4r+DjbabRzrCGTA7SLsoy+2AA xlwYaVUqpJZDoySAyUe60e+4fo= 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:date:from:to:subject:message-id:mime-version :content-type:in-reply-to; s=default; bh=XMgcEESjlTV0qW9Tp4F7AF/ r2VA=; b=Cy4hR+CPU/y1KXB3QS+NNcZ6qzy/wSvW5pTANudnagRc8k9Q4mK4uBN WMiVX5K8K7oIWygE7VWMw5iCpM5N9AxZ/s4IAIGxCRulAf5m0TVhopg2Y6TthUwZ +qKfCaSrCPYR6X7n8jTVKU62DtOQyQzk52eKK2zEPfle8ST5yYiA= 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=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 Date: Mon, 28 Nov 2016 11:53:00 -0800 From: Stephen Paul Carrier To: cygwin AT cygwin DOT 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 >> 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