This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: python 2.7.12 pip install with extensions fails with warning: "__BSD_VISIBLE" redefined
- From: Stephen Paul Carrier <carrier at Berkeley dot EDU>
- To: cygwin at cygwin dot com
- Date: Mon, 28 Nov 2016 11:53:00 -0800
- Subject: Re: python 2.7.12 pip install with extensions fails with warning: "__BSD_VISIBLE" redefined
- Authentication-results: sourceware.org; auth=none
>> 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