[Pythonmac-SIG] wxPython build issue

Bill Northcott w.northcott at unsw.edu.au
Fri Feb 3 21:13:07 CET 2006

On 04/02/2006, at 3:52 AM, Kevin Ollivier wrote:
>> So I added more alternative conditions to wx/string.h:46 thus:
>> 200112L || _XOPEN_SOURCE == 600
>> This definitely works on MacOS X 10.4 and I don't see how it can  
>> break on other systems.
> Out of curiosity, was there a problem with just doing defined 
> (_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) tests? Are these always  
> guaranteed to be set to those values?

As I read the Opengroup document, Posix 200112L and Xopen 600 have  
been converged.  Older standards would not be the same and certainly  
older versions of Xopen might have strcasecmp and friends in  
string.h.  OTOH higher versions are undefined.  So it would not be  
right to assume the code should work under them.  That was my take  
but it may be quite wrong.

>> PS  I still have the issue from my other posting which Adriano  
>> posted in September.
> Could you give me a thread to look up so that I can follow up?

There never was a thread because nobody replied to the original  
message.  The extract listed the errors other than those due to the  
strings.h/string.h issue.

Let me poke about on this some more.  The missing declarations in  
fp.h are conditional on
#if (!defined(__MWERKS__) || !defined(__cmath__)) && (! 
TARGET_RT_MAC_MACHO || !defined(__MATH__))
So maybe cmath has been included but failed to provide all the  
required symbols.


More information about the Pythonmac-SIG mailing list