id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
22147 pyport.h from python2.7 sometimes clashes with c++ functions on OS X fbissey "The recent upgrade to `pynac-0.7.3` brought a flurry of compiling problem on OS X with the following kind of message
{{{
CXX libpynac_la-sum.lo
In file included from /Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc2/local/include/c++/5.4.0/bits/basic_ios.h:37:0,
from /Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc2/local/include/c++/5.4.0/ios:44,
from /Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc2/local/include/c++/5.4.0/ostream:38,
from /Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc2/local/include/c++/5.4.0/iostream:39,
from class_info.h:31,
from registrar.h:30,
from basic.h:40,
from numeric.h:49,
from inifcns.h:26,
from sum.cpp:13:
/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc2/local/include/c++/5.4.0/bits/locale_facets.h:247:53: error: macro ""toupper"" passed 2 arguments, but takes just 1
toupper(char_type *__lo, const char_type* __hi) const
}}}
This is caused by definition of macros for `toupper` and other functions in `pyport.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.
" defect closed blocker sage-duplicate/invalid/wontfix packages: standard fixed François Bissey N/A u/fbissey/pyport 502aff0910d7983e7dd849d614e84cf97307e576