python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] multiprocessing source not "Unix clean" Jesse Noller Mon Jul 14 20:50:17 2008
I don't know where the windows line endings came from honestly - I'm on mac and linux boxes. Yes, they should be stripped. The solaris issue should be addressed in the setup.py section casing the various sem implementations for the platforms On Fri, Jun 13, 2008 at 12:21 PM, <[EMAIL PROTECTED]> wrote: > In trying to solve a build problem with the multiprocessing code on > Solaris10 I visited multiprocessing.c in XEmacs and noticed the files all > appear to have Windows line endings. Should those maybe be stripped to > conform to the other Python source? > > FWIW, it appears that Solaris doesn't define SEM_VALUE_MAX but does define > _SEM_VALUE_MAX in sys/params.h. > > .../Modules/_multiprocessing/multiprocessing.c: In function > 'init_multiprocessing': > .../Modules/_multiprocessing/multiprocessing.c:253: error: 'SEM_VALUE_MAX' > undeclared (first use in this function) > .../Modules/_multiprocessing/multiprocessing.c:253: error: (Each > undeclared identifier is reported only once > .../Modules/_multiprocessing/multiprocessing.c:253: error: for each > function it appears in.) > > On Windows the author simple #defines SEM_VALUE_MAX to be LONG_MAX. I used > a little cpp action to define it: > > #ifndef SEM_VALUE_MAX > # ifdef _SEM_VALUE_MAX > # define SEM_VALUE_MAX _SEM_VALUE_MAX > # else > # define SEM_VALUE_MAX INT_MAX > # endif > #endif > > Skip > _______________________________________________ > Python-Dev mailing list > [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/jnoller%40gmail.com > _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- Re: [Python-Dev] multiprocessing source not "Unix clean", (continued)
- Re: [Python-Dev] multiprocessing source not "Unix clean" Guido van Rossum
- Re: [Python-Dev] multiprocessing source not "Unix clean" Benjamin Peterson
- Re: [Python-Dev] multiprocessing source not "Unix clean" Guido van Rossum
- Re: [Python-Dev] multiprocessing source not "Unix clean" Benjamin Peterson
- Re: [Python-Dev] multiprocessing source not "Unix clean" Guido van Rossum
- Re: [Python-Dev] multiprocessing source not "Unix clean" Benji York
- Re: [Python-Dev] multiprocessing source not "Unix clean" Benji York
Re: [Python-Dev] multiprocessing source not "Unix clean" skip
- Re: [Python-Dev] multiprocessing source not "Unix clean" Benjamin Peterson
- Re: [Python-Dev] multiprocessing source not "Unix clean" Jesse Noller
Re: [Python-Dev] multiprocessing source not "Unix clean" Jesse Noller <=