https://issues.apache.org/ooo/show_bug.cgi?id=121496
--- Comment #8 from Pedro Giffuni <[email protected]> --- Hello; (In reply to comment #7) > There is a minor build problem on OSX if one is building for our base > platform there. The OSX10.4SDK contains an ancient python 2.3 version with a > matching modsupport.h header, where the second argument to > pyModule_AddObject is non-const, so the compiler complains about an invalid > conversion from const to non-const char in pyuno_type.cxx:297. > > I'm not sure what to do here. Change the build so that the modsupport.h from > our bundled python is found first? Use a const_cast for now? According to the python 2.7.3 documentation, the second argument for pyModule_AddObject should be constant: http://docs.python.org/2/c-api/module.html I guess the const cast would work but you may have to conditionalize it on the python version. On Mac OSX I think we have a bigger problem: we have been replacing some old python code to use 2.5 features so it may build but some things will not work. I understand modern MacOSX comes with python 2.7.3; no idea how this will interact with AOO built with older SDK. -- You are receiving this mail because: You are on the CC list for the bug.
