New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyport.h from python2.7 sometimes clashes with c++ functions on OS X #22147
Comments
Author: François Bissey |
Branch: u/fbissey/pyport |
comment:1
Python3 should be checked over as well. New commits:
|
Commit: |
comment:2
I note that the upstream python issue http://bugs.python.org/issue10910 is marked closed while there was never really a good solution in my opinion. |
comment:3
The Python issue was fixed in Python 2.7.13, so could it be that #22037 also fixes the problem? |
comment:4
Replying to @jdemeyer:
Depends what's in |
comment:5
I just checked the python 2.7.13 tarball and the fix is in. So yes #22037 will fix the issue. |
comment:6
I won't be able to deal with this since I'll be off for a week. I am ok for this ticket to be marked duplicate and #22037 to be marked blocker instead. I see it is needing review so I am guessing it is good to go. |
Reviewer: François Bissey |
Changed author from François Bissey to none |
comment:8
Still don't understand why it works on the OSX buildbot, oh well... |
The recent upgrade to
pynac-0.7.3
brought a flurry of compiling problem on OS X with the following kind of messageThis is caused by definition of macros for
toupper
and other functions inpyport.h
specifically on OS X. This is unsafe with C++ and the issue has been known in MacPort for years: https://trac.macports.org/ticket/44288.We should adopt their patch for python.
Component: packages: standard
Branch/Commit: u/fbissey/pyport @
502aff0
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/22147
The text was updated successfully, but these errors were encountered: