delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/28/14:53:36

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <carrier AT Berkeley DOT EDU>
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
In-Reply-To: <CADUpaR3C4F3icCdztVKZQ9GxpMc=AM6KaujNuedmYDbjMeK6vA@mail.gmail.com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019